bisecting fixing commit since 3207316b3beec7e38e5dbe2f463df0cec71e0b97 building syzkaller on 79264ae39c1ef4b4875ab67d6f0c8c3e75aa6a34 testing commit 3207316b3beec7e38e5dbe2f463df0cec71e0b97 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 006fc781b17844f77a294436eb1f90c3e557db16ca6f3feb4cda8f25e0f6633e all runs: crashed: INFO: task hung in vfs_setxattr testing current HEAD 5c66974a63046780925e5d99b6dc6631fe2f9a31 testing commit 5c66974a63046780925e5d99b6dc6631fe2f9a31 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 79232c94b7791e885bc351508441e238dcced2a4dd90bc65c51b72e4da99c6d7 all runs: crashed: INFO: task hung in vfs_setxattr revisions tested: 2, total time: 27m52.34651097s (build: 15m56.954754595s, test: 11m32.312942701s) the crash still happens on HEAD commit msg: Linux 4.19.202 crash: INFO: task hung in vfs_setxattr Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout Bluetooth: hci3: command 0x0406 tx timeout INFO: task syz-executor.5:9873 blocked for more than 140 seconds. Not tainted 4.19.202-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D29528 9873 8452 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] vfs_setxattr+0xd6/0x280 fs/xattr.c:254 setxattr+0x1af/0x280 fs/xattr.c:520 __do_sys_fsetxattr fs/xattr.c:575 [inline] __se_sys_fsetxattr+0xff/0x160 fs/xattr.c:564 __x64_sys_fsetxattr+0xb9/0x140 fs/xattr.c:564 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4518618188 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007fff35e65b9f R14: 00007f4518618300 R15: 0000000000022000 INFO: task syz-executor.0:9872 blocked for more than 140 seconds. Not tainted 4.19.202-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29752 9872 8457 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] vfs_setxattr+0xd6/0x280 fs/xattr.c:254 setxattr+0x1af/0x280 fs/xattr.c:520 __do_sys_fsetxattr fs/xattr.c:575 [inline] __se_sys_fsetxattr+0xff/0x160 fs/xattr.c:564 __x64_sys_fsetxattr+0xb9/0x140 fs/xattr.c:564 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f33a34b6188 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffe188d3f0f R14: 00007f33a34b6300 R15: 0000000000022000 INFO: task syz-executor.1:9934 blocked for more than 140 seconds. Not tainted 4.19.202-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D29752 9934 8456 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] vfs_setxattr+0xd6/0x280 fs/xattr.c:254 setxattr+0x1af/0x280 fs/xattr.c:520 __do_sys_fsetxattr fs/xattr.c:575 [inline] __se_sys_fsetxattr+0xff/0x160 fs/xattr.c:564 __x64_sys_fsetxattr+0xb9/0x140 fs/xattr.c:564 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7625fa2188 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007fffaca1633f R14: 00007f7625fa2300 R15: 0000000000022000 INFO: task syz-executor.2:9951 blocked for more than 140 seconds. Not tainted 4.19.202-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D29752 9951 8448 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] vfs_setxattr+0xd6/0x280 fs/xattr.c:254 setxattr+0x1af/0x280 fs/xattr.c:520 __do_sys_fsetxattr fs/xattr.c:575 [inline] __se_sys_fsetxattr+0xff/0x160 fs/xattr.c:564 __x64_sys_fsetxattr+0xb9/0x140 fs/xattr.c:564 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4a8c4db188 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffe50372d1f R14: 00007f4a8c4db300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1561: #0: 00000000de64489a (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4443 1 lock held by kswapd0/1968: 1 lock held by kswapd1/1969: 1 lock held by in:imklog/7770: #0: 00000000d90ce4e4 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 3 locks held by syz-executor.5/9847: 2 locks held by syz-executor.5/9873: #0: 00000000551e7d84 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000551e7d84 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 00000000487734a5 (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000487734a5 (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 4 locks held by syz-executor.0/9843: 2 locks held by syz-executor.0/9872: #0: 00000000c6b3ae54 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000c6b3ae54 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 00000000f20a892c (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000f20a892c (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 3 locks held by syz-executor.1/9924: 2 locks held by syz-executor.1/9934: #0: 00000000b89d0545 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000b89d0545 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 00000000767c86da (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000767c86da (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 3 locks held by syz-executor.2/9933: 2 locks held by syz-executor.2/9951: #0: 00000000227a2b83 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000227a2b83 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 000000008f85cea7 (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000008f85cea7 (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 4 locks held by syz-executor.4/9967: 2 locks held by syz-executor.4/9973: #0: 00000000bb19dbf7 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000bb19dbf7 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 00000000897126fe (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000897126fe (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 4 locks held by syz-executor.3/9966: 2 locks held by syz-executor.3/9974: #0: 000000005b6e2361 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000005b6e2361 (sb_writers#14){.+.+}, at: mnt_want_write_file+0x67/0x110 fs/namespace.c:418 #1: 0000000014cbb389 (&type->i_mutex_dir_key#9){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000014cbb389 (&type->i_mutex_dir_key#9){+.+.}, at: vfs_setxattr+0xd6/0x280 fs/xattr.c:254 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1561 Comm: khungtaskd Not tainted 4.19.202-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 nmi_cpu_backtrace.cold.0+0x3c/0x78 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xf6/0x120 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x5c3/0xb40 kernel/hung_task.c:287 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9203 Comm: kworker/u4:6 Not tainted 4.19.202-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: phy14 ieee80211_iface_work RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:248 [inline] RIP: 0010:check_memory_region+0x0/0x1b0 mm/kasan/kasan.c:267 Code: 48 8d 47 0f 48 89 c6 48 c1 ee 03 0f b6 14 16 84 d2 74 d5 83 e0 07 38 c2 40 0f 9e c6 eb c5 66 66 2e 0f 1f 84 00 00 00 00 00 90 <48> 85 f6 0f 84 3a 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 0f b6 RSP: 0018:ffff88808f567490 EFLAGS: 00000246 RAX: ffffed10144ffba5 RBX: 0000000000000006 RCX: ffffffff8716dabd RDX: 0000000000000001 RSI: 0000000000000006 RDI: ffff88808f5675b0 RBP: ffff88808f5674b0 R08: ffffed10144ffba5 R09: ffffed10144ffba4 R10: ffffed10144ffba4 R11: ffff8880a27fdd25 R12: ffff88808f5675b0 R13: ffff8880a27fdd20 R14: ffff8880a27fdd10 R15: ffff88808f567698 FS: 0000000000000000(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7a4a899000 CR3: 00000000b42eb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memcpy include/linux/string.h:377 [inline] cfg80211_inform_bss_frame_data+0x32d/0xc30 net/wireless/scan.c:1269 ieee80211_bss_info_update+0x325/0x16c0 net/mac80211/scan.c:105 ieee80211_rx_bss_info net/mac80211/ibss.c:1125 [inline] ieee80211_rx_mgmt_probe_beacon+0x723/0x14c0 net/mac80211/ibss.c:1607 ieee80211_ibss_rx_queued_mgmt+0x1d4/0x1690 net/mac80211/ibss.c:1634 ieee80211_iface_work+0x4bc/0x6e0 net/mac80211/iface.c:1341 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415