syzbot


INFO: task hung in sock_ioctl

Status: auto-closed as invalid on 2020/08/10 12:43
Reported-by: syzbot+ffe7c6c4ec0323d2d9b2@syzkaller.appspotmail.com
First crash: 808d, last: 808d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in sock_ioctl (2) 1 280d 280d 0/22 auto-closed as invalid on 2021/12/21 20:14
upstream INFO: task hung in sock_ioctl 9 1262d 1619d 0/22 auto-closed as invalid on 2019/07/13 13:17
linux-4.14 INFO: task hung in sock_ioctl (2) 1 509d 509d 0/1 auto-closed as invalid on 2021/06/05 18:05

Sample crash report:
audit: type=1804 audit(1586695155.593:437): pid=26343 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir624020947/syzkaller.vzs3tH/1/bus" dev="sda1" ino=15761 res=1
INFO: task syz-executor.0:26344 blocked for more than 140 seconds.
      Not tainted 4.14.175-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D29424 26344  26048 0x00000004
Call Trace:
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3486
 __mutex_lock_common kernel/locking/mutex.c:833 [inline]
 __mutex_lock+0x73c/0x1470 kernel/locking/mutex.c:893
 sock_ioctl+0x239/0x450 net/socket.c:1036
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c889
RSP: 002b:00007ff6e6466c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff6e64676d4 RCX: 000000000045c889
RDX: 0000000020000100 RSI: 00000000000089a0 RDI: 0000000000000008
RBP: 000000000076bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000006ae R14: 00000000004c96ce R15: 000000000076bfac

Showing all locks held in the system:
1 lock held by khungtaskd/1056:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff81465bb3>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4544
2 locks held by agetty/6043:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff833af132>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff833a2d74>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by agetty/6045:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff833af132>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff833a2d74>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
3 locks held by kworker/0:12/25997:
 #0:  ("%s"("ipv6_addrconf")){+.+.}, at: [<ffffffff813b67f7>] work_static include/linux/workqueue.h:199 [inline]
 #0:  ("%s"("ipv6_addrconf")){+.+.}, at: [<ffffffff813b67f7>] set_work_data kernel/workqueue.c:619 [inline]
 #0:  ("%s"("ipv6_addrconf")){+.+.}, at: [<ffffffff813b67f7>] set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline]
 #0:  ("%s"("ipv6_addrconf")){+.+.}, at: [<ffffffff813b67f7>] process_one_work+0x727/0x1540 kernel/workqueue.c:2087
 #1:  ((addr_chk_work).work){+.+.}, at: [<ffffffff813b6831>] process_one_work+0x761/0x1540 kernel/workqueue.c:2091
 #2:  (rtnl_mutex){+.+.}, at: [<ffffffff8571c22a>] addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4408
1 lock held by syz-executor.2/26011:
 #0:  (rtnl_mutex){+.+.}, at: [<ffffffff83da4204>] tun_detach drivers/net/tun.c:585 [inline]
 #0:  (rtnl_mutex){+.+.}, at: [<ffffffff83da4204>] tun_chr_close+0x34/0x60 drivers/net/tun.c:2671
1 lock held by syz-executor.0/26344:
 #0:  (br_ioctl_mutex){+.+.}, at: [<ffffffff84f74a89>] sock_ioctl+0x239/0x450 net/socket.c:1036

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 1056 Comm: khungtaskd Not tainted 4.14.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x13e/0x194 lib/dump_stack.c:58
 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x139/0x17e lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
 watchdog+0x5e2/0xb80 kernel/hung_task.c:274
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 26343 Comm: syz-executor.0 Not tainted 4.14.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888076f18040 task.stack: ffff888047d28000
RIP: 0010:mark_lock+0xc/0x10b0 kernel/locking/lockdep.c:3158
RSP: 0000:ffff8880aeb07cb0 EFLAGS: 00000002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1100ede3130
RDX: 0000000000000008 RSI: ffff888076f18960 RDI: ffff888076f18040
RBP: ffff8880aeb07e68 R08: 0000000000000001 R09: 00000000000c48d2
R10: ffff888076f18960 R11: ffff888076f18040 R12: ffff88801a413f98
R13: 00000000000008d2 R14: 0000000000000004 R15: ffff888076f18982
FS:  00007ff6e6488700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000483bb888 CR3: 000000001aca0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 __lock_acquire+0x5f7/0x4620 kernel/locking/lockdep.c:3448
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3994
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x8c/0xbf kernel/locking/spinlock.c:160
 kill_fasync_rcu fs/fcntl.c:990 [inline]
 kill_fasync fs/fcntl.c:1011 [inline]
 kill_fasync+0x11e/0x3c0 fs/fcntl.c:1004
 perf_event_wakeup+0x20c/0x350 kernel/events/core.c:5569
 perf_pending_event+0xa5/0xd0 kernel/events/core.c:5593
 irq_work_run_list+0xf0/0x160 kernel/irq_work.c:156
 irq_work_run+0x4e/0xb0 kernel/irq_work.c:171
 smp_irq_work_interrupt+0xa3/0x4e0 arch/x86/kernel/irq_work.c:21
 irq_work_interrupt+0x8f/0xa0 arch/x86/entry/entry_64.S:823
 </IRQ>
RIP: 0010:qlist_free_all+0x101/0x140 mm/kasan/quarantine.c:161
RSP: 0000:ffff888047d2f8b8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff09
RAX: 0000000000000007 RBX: ffff8880771bec40 RCX: 1ffff1100ede3121
RDX: 0000000000000000 RSI: ffff888076f18910 RDI: 0000000000000282
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880771beb60
R13: ffff888047d2f8f0 R14: ffff88821f8c1b00 R15: 0000000000000282
 quarantine_reduce+0x140/0x170 mm/kasan/quarantine.c:259
 kasan_kmalloc+0x95/0xe0 mm/kasan/kasan.c:536
 slab_post_alloc_hook mm/slab.h:442 [inline]
 slab_alloc_node mm/slab.c:3333 [inline]
 kmem_cache_alloc_node+0x135/0x7a0 mm/slab.c:3640
 __alloc_skb+0x9a/0x4c0 net/core/skbuff.c:193
 alloc_skb include/linux/skbuff.h:980 [inline]
 nlmsg_new include/net/netlink.h:511 [inline]
 mpls_netconf_notify_devconf+0x41/0xf0 net/mpls/af_mpls.c:1158
 mpls_dev_notify+0x4ca/0x691 net/mpls/af_mpls.c:1544
 notifier_call_chain+0x107/0x1a0 kernel/notifier.c:93
 call_netdevice_notifiers net/core/dev.c:1687 [inline]
 rollback_registered_many+0x694/0xa70 net/core/dev.c:7205
 rollback_registered+0xd6/0x180 net/core/dev.c:7247
 unregister_netdevice_queue net/core/dev.c:8259 [inline]
 unregister_netdevice_queue+0x1a1/0x220 net/core/dev.c:8252
 br_del_bridge+0xa9/0xe0 net/bridge/br_if.c:419
 br_ioctl_deviceless_stub+0x1ff/0x5f0 net/bridge/br_ioctl.c:380
 sock_ioctl+0x254/0x450 net/socket.c:1038
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c889
RSP: 002b:00007ff6e6487c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff6e64886d4 RCX: 000000000045c889
RDX: 00000000200000c0 RSI: 00000000000089a1 RDI: 0000000000000008
RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000006b1 R14: 00000000004c9721 R15: 000000000076bf0c
Code: c3 0f 0b 48 c7 c7 48 67 d1 87 e8 90 d8 3d 00 eb 8a 48 c7 c7 00 0a 66 8a e8 72 d8 3d 00 eb c3 48 b8 00 00 00 00 00 fc ff df 41 57 <89> d1 41 89 d7 41 56 49 89 fe 41 55 4c 8d 6e 20 4c 89 ea 41 54 

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/04/12 12:42 linux-4.14.y 4520f06b03ae 36b0b050 .config log report