bisecting fixing commit since cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 building syzkaller on cdde748628a830b9236db9890a9fea0764bde4fb testing commit cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: a1bb834164b2d6b522303c38486ae327d635f78bcc25d23d49bb16afffeb9d40 all runs: crashed: INFO: task hung in do_exit testing current HEAD 4938296e03bd227e5020d63d418956fe52baf97c testing commit 4938296e03bd227e5020d63d418956fe52baf97c compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: ac83ab74ae8bb23d1e42ac8abd738ec1aac13799e553ac3d8f2a459becf93b6e run #0: crashed: INFO: task hung in do_exit run #1: crashed: INFO: task hung in do_exit run #2: crashed: INFO: task hung in do_exit run #3: crashed: INFO: task hung in do_exit run #4: crashed: INFO: task hung in __do_page_fault run #5: crashed: INFO: task hung in do_exit run #6: crashed: INFO: task hung in do_exit run #7: crashed: INFO: task hung in do_exit run #8: crashed: INFO: task hung in do_exit run #9: crashed: INFO: task hung in do_exit revisions tested: 2, total time: 35m45.235408886s (build: 20m5.33025498s, test: 14m58.502504222s) the crash still happens on HEAD commit msg: Linux 4.19.198 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.1:7339 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D28168 7339 5663 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:00007fff6662a7a8 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: 00007fff6662a970 R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000022000 INFO: task syz-executor.1:7340 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D28200 7340 5663 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:00007f39b261d218 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: 00007fff6662a81f R14: 00007f39b261d300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1048: #0: 0000000084b9084b (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4443 1 lock held by in:imklog/5334: #0: 00000000cb1689b9 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 1 lock held by syz-executor.1/7339: #0: 0000000003d7813d (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline] #0: 0000000003d7813d (&mm->mmap_sem){++++}, at: do_exit+0x5fc/0x2cf0 kernel/exit.c:857 1 lock held by syz-executor.1/7340: #0: 0000000003d7813d (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline] #0: 0000000003d7813d (&mm->mmap_sem){++++}, at: do_exit+0x5fc/0x2cf0 kernel/exit.c:857 1 lock held by syz-executor.1/7350: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1048 Comm: khungtaskd Not tainted 4.19.198-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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 7350 Comm: syz-executor.1 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:lock_is_held_type+0x189/0x210 kernel/locking/lockdep.c:3948 Code: 00 fc ff df 41 c7 84 24 84 08 00 00 00 00 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 75 63 48 83 3d f4 35 c7 06 00 74 30 48 89 df <57> 9d 0f 1f 44 00 00 48 83 c4 08 44 89 e8 5b 41 5c 41 5d 5d c3 48 RSP: 0018:ffff8881cf297858 EFLAGS: 00000082 RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 0000000000000000 RDX: 1ffffffff1024021 RSI: ffffffff88199ae0 RDI: 0000000000000286 RBP: ffff8881cf297878 R08: ffffffff81754d8b R09: ffffed103cf6806e R10: ffff8881cf297a98 R11: ffff8881e7b40377 R12: ffff8881e82704c0 R13: 0000000000000000 R14: 0000000000000399 R15: ffffffff81754d8b FS: 00007f39b25fc700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcd7fd42080 CR3: 00000001d2c49004 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:344 [inline] ___might_sleep+0x208/0x270 kernel/sched/core.c:6157 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:921 [inline] __mutex_lock+0xc7/0x11a0 kernel/locking/mutex.c:1083 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1098 perf_mmap+0x65b/0x1670 kernel/events/core.c:5713 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:2329 [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:00007f39b25fc1a8 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: 00007f39b25fc6bc