bisecting fixing commit since cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 building syzkaller on cdde748628a830b9236db9890a9fea0764bde4fb testing commit cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 with gcc (GCC) 8.4.1 20210217 kernel signature: a1bb834164b2d6b522303c38486ae327d635f78bcc25d23d49bb16afffeb9d40 all runs: crashed: INFO: task hung in do_exit testing current HEAD 2965db2e004cf9c92b87c1f559e9812c0ae878c1 testing commit 2965db2e004cf9c92b87c1f559e9812c0ae878c1 with gcc (GCC) 8.4.1 20210217 kernel signature: ad4f90192254529db8c9e486e5441841b4d784663fb5e7d462e52822e7f7810b all runs: crashed: INFO: task hung in do_exit revisions tested: 2, total time: 30m41.090322438s (build: 15m43.070382801s, test: 14m16.510030436s) the crash still happens on HEAD commit msg: Linux 4.19.188 crash: INFO: task hung in do_exit IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 INFO: task syz-executor.4:6887 blocked for more than 140 seconds. Not tainted 4.19.188-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28168 6887 5644 0x80000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0xdb5/0x1d40 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x21c/0x3e0 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x49/0xb0 kernel/locking/rwsem.c:26 exit_mm kernel/exit.c:512 [inline] do_exit+0x5fc/0x2cf0 kernel/exit.c:857 do_group_exit+0xf4/0x2f0 kernel/exit.c:967 get_signal+0x316/0x19e0 kernel/signal.c:2589 do_signal+0x87/0x1960 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x114/0x200 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4610d2 Code: Bad RIP value. RSP: 002b:00007ffcf73cf9a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: fffffffffffffffc RBX: 0000000000020022 RCX: 00000000004610d2 RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000020022 R11: 0000000000000246 R12: 00007ffcf73cfb70 R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000022000 INFO: task syz-executor.4:6893 blocked for more than 140 seconds. Not tainted 4.19.188-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28200 6893 5644 0x80000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0xdb5/0x1d40 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x21c/0x3e0 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x49/0xb0 kernel/locking/rwsem.c:26 exit_mm kernel/exit.c:512 [inline] do_exit+0x5fc/0x2cf0 kernel/exit.c:857 do_group_exit+0xf4/0x2f0 kernel/exit.c:967 get_signal+0x316/0x19e0 kernel/signal.c:2589 do_signal+0x87/0x1960 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x114/0x200 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461089 Code: Bad RIP value. RSP: 002b:00007f2e03e52218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000052bf08 RCX: 0000000000461089 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000052bf08 RBP: 000000000052bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000052bf0c R13: 00007ffcf73cfa1f R14: 00007f2e03e52300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1049: #0: 00000000b10b0c02 (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4442 1 lock held by in:imklog/5343: #0: 00000000900bde55 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 1 lock held by syz-executor.4/6887: #0: 0000000035a8543e (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline] #0: 0000000035a8543e (&mm->mmap_sem){++++}, at: do_exit+0x5fc/0x2cf0 kernel/exit.c:857 1 lock held by syz-executor.4/6893: #0: 0000000035a8543e (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline] #0: 0000000035a8543e (&mm->mmap_sem){++++}, at: do_exit+0x5fc/0x2cf0 kernel/exit.c:857 2 locks held by syz-executor.4/6904: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1049 Comm: khungtaskd Not tainted 4.19.188-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+0x123/0x171 lib/dump_stack.c:118 nmi_cpu_backtrace.cold.4+0x3e/0x76 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xe6/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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6904 Comm: syz-executor.4 Not tainted 4.19.188-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__mutex_trylock_or_owner kernel/locking/mutex.c:111 [inline] RIP: 0010:__mutex_trylock kernel/locking/mutex.c:125 [inline] RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:930 [inline] RIP: 0010:__mutex_lock+0x4f8/0x1200 kernel/locking/mutex.c:1075 Code: 03 85 f6 0f 84 a7 00 00 00 be 08 00 00 00 4c 89 ef 48 83 e3 fd 48 0b 9d c8 fe ff ff e8 a1 6a 07 fb 4c 89 f8 f0 49 0f b1 5d 00 <49> 39 c7 74 14 49 89 c7 e9 3f fc ff ff 48 8b bd c0 fe ff ff e8 6f RSP: 0018:ffff8881cc89f900 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8881da294140 RCX: ffffffff8688b5cf RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881d34895f0 RBP: ffff8881cc89fa80 R08: ffffed103a6912bf R09: ffffed103a6912be R10: ffffed103a6912be R11: ffff8881d34895f7 R12: fffffbfff1391cdc R13: ffff8881d34895f0 R14: ffffffff89c8e6e0 R15: 0000000000000000 FS: 00007f2e03e31700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f403c9c140 CR3: 00000001dc58c006 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1090 perf_mmap+0x65b/0x1670 kernel/events/core.c:5689 call_mmap include/linux/fs.h:1826 [inline] mmap_region+0x9c0/0x14c0 mm/mmap.c:1757 do_mmap+0x6b5/0xe90 mm/mmap.c:1530 do_mmap_pgoff include/linux/mm.h:2326 [inline] vm_mmap_pgoff+0x195/0x210 mm/util.c:357 ksys_mmap_pgoff+0x3c6/0x650 mm/mmap.c:1580 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461089 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:00007f2e03e311a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461089 RDX: 0000000000000000 RSI: 0000000000003000 RDI: 0000000020ffd000 RBP: 0000000000000006 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000001011 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f3488 R14: 00000000004b1b06 R15: 00007f2e03e316bc