syzbot


INFO: task hung in uprobe_start_dup_mmap (2)

Status: auto-closed as invalid on 2022/05/04 01:46
Reported-by: syzbot+cf8dae4ca9cae1e4fb64@syzkaller.appspotmail.com
First crash: 1080d, last: 1065d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in uprobe_start_dup_mmap perf 196 2066d 2280d 0/28 auto-closed as invalid on 2019/10/05 21:52
linux-4.19 INFO: task hung in uprobe_start_dup_mmap (3) 1 788d 788d 0/1 auto-obsoleted due to no activity on 2023/02/05 00:29
linux-4.19 INFO: task hung in uprobe_start_dup_mmap 1 1992d 1992d 0/1 auto-closed as invalid on 2019/10/25 08:44
upstream INFO: task hung in uprobe_start_dup_mmap (2) perf 4 1056d 1071d 0/28 closed as invalid on 2022/02/08 09:50

Sample crash report:
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task systemd-udevd:4695 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
systemd-udevd   D25024  4695      1 0x00000104
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 __percpu_down_read kernel/locking/percpu-rwsem.c:85 [inline]
 __percpu_down_read+0xba/0x130 kernel/locking/percpu-rwsem.c:41
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:49 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 uprobe_start_dup_mmap+0xb7/0xd0 kernel/events/uprobes.c:1262
 dup_mmap kernel/fork.c:435 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f640c9a238b
Code: Bad RIP value.
RSP: 002b:00007ffeccf74880 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffeccf74880 RCX: 00007f640c9a238b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffeccf748d0 R08: 00007f640db538c0 R09: 0000000000000210
R10: 00007f640db53b90 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000020 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor.5:17806 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D24368 17806      1 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 __percpu_down_read kernel/locking/percpu-rwsem.c:85 [inline]
 __percpu_down_read+0xba/0x130 kernel/locking/percpu-rwsem.c:41
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:49 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 uprobe_start_dup_mmap+0xb7/0xd0 kernel/events/uprobes.c:1262
 dup_mmap kernel/fork.c:435 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f947922548b
Code: Bad RIP value.
RSP: 002b:00007fffb740e500 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f947922548b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000555556e9d400
R10: 0000555556e9d6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007fffb740e5e0
INFO: task syz-executor.4:17807 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D24184 17807      1 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 __percpu_down_read kernel/locking/percpu-rwsem.c:85 [inline]
 __percpu_down_read+0xba/0x130 kernel/locking/percpu-rwsem.c:41
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:49 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 uprobe_start_dup_mmap+0xb7/0xd0 kernel/events/uprobes.c:1262
 dup_mmap kernel/fork.c:435 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f207024448b
Code: Bad RIP value.
RSP: 002b:00007ffc4b70e8d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f207024448b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000555556d3b400
R10: 0000555556d3b6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffc4b70e9b0
INFO: task syz-executor.0:18092 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D24192 18092      1 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 __percpu_down_read kernel/locking/percpu-rwsem.c:85 [inline]
 __percpu_down_read+0xba/0x130 kernel/locking/percpu-rwsem.c:41
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:49 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 uprobe_start_dup_mmap+0xb7/0xd0 kernel/events/uprobes.c:1262
 dup_mmap kernel/fork.c:435 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1f310dd48b
Code: Bad RIP value.
RSP: 002b:00007fff0caebd10 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1f310dd48b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 00005555559ee400
R10: 00005555559ee6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007fff0caebdf0
INFO: task syz-executor.2:18106 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D24120 18106      1 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 __percpu_down_read kernel/locking/percpu-rwsem.c:85 [inline]
 __percpu_down_read+0xba/0x130 kernel/locking/percpu-rwsem.c:41
 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:49 [inline]
 percpu_down_read include/linux/percpu-rwsem.h:59 [inline]
 uprobe_start_dup_mmap+0xb7/0xd0 kernel/events/uprobes.c:1262
 dup_mmap kernel/fork.c:435 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff8ba57448b
Code: Bad RIP value.
RSP: 002b:00007ffea09f9e10 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff8ba57448b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000555556332400
R10: 00005555563326d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffea09f9ef0
INFO: task syz-executor.1:16772 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D28648 16772  18104 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 perf_trace_destroy+0x23/0xf0 kernel/trace/trace_event_perf.c:236
 _free_event+0x32c/0x1150 kernel/events/core.c:4484
 put_event kernel/events/core.c:4578 [inline]
 perf_event_release_kernel+0x6d9/0xcd0 kernel/events/core.c:4693
 perf_release+0x33/0x40 kernel/events/core.c:4703
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f710b85fadb
Code: Bad RIP value.
RSP: 002b:00007ffee8d34460 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f710b85fadb
RDX: 0000001b2ed20000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f710b9c1960 R08: 0000000000000000 R09: 000000f27b688f13
R10: 0012b1fe755fff90 R11: 0000000000000293 R12: 00000000000e6608
R13: 00007ffee8d34560 R14: 00007f710b9bff60 R15: 0000000000000032
INFO: task syz-executor.1:16783 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D29056 16783  18104 0x80000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 down_read+0x44/0x80 kernel/locking/rwsem.c:26
 exit_mm kernel/exit.c:512 [inline]
 do_exit+0x6e4/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 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+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f710b8ace99
Code: Bad RIP value.
RSP: 002b:00007f710a222218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f710b9bff68 RCX: 00007f710b8ace99
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f710b9bff68
RBP: 00007f710b9bff60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f710b9bff6c
R13: 00007ffee8d343ff R14: 00007f710a222300 R15: 0000000000022000
INFO: task syz-executor.1:16786 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D28312 16786  18104 0x80000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 down_read+0x44/0x80 kernel/locking/rwsem.c:26
 exit_mm kernel/exit.c:512 [inline]
 do_exit+0x6e4/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 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+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f710b8ace99
Code: Bad RIP value.
RSP: 002b:00007f710a201218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f710b9c0038 RCX: 00007f710b8ace99
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f710b9c0038
RBP: 00007f710b9c0030 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f710b9c003c
R13: 00007ffee8d343ff R14: 00007f710a201300 R15: 0000000000022000
INFO: task syz-executor.3:16784 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D28392 16784  18105 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:72
 register_for_each_vma+0x6bb/0xe40 kernel/events/uprobes.c:808
 __uprobe_register kernel/events/uprobes.c:929 [inline]
 uprobe_register+0x3dc/0x730 kernel/events/uprobes.c:944
 probe_event_enable+0x425/0xbb0 kernel/trace/trace_uprobe.c:915
 trace_uprobe_register+0x2d8/0x790 kernel/trace/trace_uprobe.c:1200
 perf_trace_event_reg kernel/trace/trace_event_perf.c:124 [inline]
 perf_trace_event_init+0x4c1/0x920 kernel/trace/trace_event_perf.c:199
 perf_uprobe_init+0x165/0x200 kernel/trace/trace_event_perf.c:330
 perf_uprobe_event_init+0xf8/0x190 kernel/events/core.c:8613
 perf_try_init_event+0x124/0x2e0 kernel/events/core.c:9884
 perf_init_event kernel/events/core.c:9915 [inline]
 perf_event_alloc.part.0+0x1b16/0x2eb0 kernel/events/core.c:10189
 perf_event_alloc kernel/events/core.c:10559 [inline]
 __do_sys_perf_event_open kernel/events/core.c:10660 [inline]
 __se_sys_perf_event_open+0x550/0x2720 kernel/events/core.c:10549
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1ac8fece99
Code: Bad RIP value.
RSP: 002b:00007f1ac7962168 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f1ac90fff60 RCX: 00007f1ac8fece99
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000020000480
RBP: 00007f1ac9046ff1 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcb309fa3f R14: 00007f1ac7962300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 000000006185b7e6 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by systemd-udevd/4695:
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1285 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1341 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
1 lock held by in:imklog/7801:
 #0: 0000000083f72b30 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/7862:
 #0: 000000007a1b8391 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 000000007fb4fb7d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.5/17806:
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1285 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1341 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
1 lock held by syz-executor.4/17807:
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1285 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1341 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
1 lock held by syz-executor.0/18092:
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1285 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1341 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
1 lock held by syz-executor.2/18106:
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1285 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1341 [inline]
 #0: 000000004cf63f5f (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2bb3/0x8260 kernel/fork.c:1913
1 lock held by syz-executor.1/16772:
 #0: 00000000bf2a91ff (event_mutex){+.+.}, at: perf_trace_destroy+0x23/0xf0 kernel/trace/trace_event_perf.c:236
1 lock held by syz-executor.1/16783:
 #0: 00000000c6f2e640 (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline]
 #0: 00000000c6f2e640 (&mm->mmap_sem){++++}, at: do_exit+0x6e4/0x2be0 kernel/exit.c:857
1 lock held by syz-executor.1/16786:
 #0: 00000000c6f2e640 (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512 [inline]
 #0: 00000000c6f2e640 (&mm->mmap_sem){++++}, at: do_exit+0x6e4/0x2be0 kernel/exit.c:857
1 lock held by syz-executor.1/16787:
5 locks held by syz-executor.3/16784:
 #0: 00000000564c6aa7 (&pmus_srcu){....}, at: perf_event_alloc.part.0+0xe6c/0x2eb0 kernel/events/core.c:10185
 #1: 00000000bf2a91ff (event_mutex){+.+.}, at: perf_uprobe_init+0x15a/0x200 kernel/trace/trace_event_perf.c:329
 #2: 00000000fa37385d (&uprobe->register_rwsem){+.+.}, at: __uprobe_register kernel/events/uprobes.c:925 [inline]
 #2: 00000000fa37385d (&uprobe->register_rwsem){+.+.}, at: uprobe_register+0x34b/0x730 kernel/events/uprobes.c:944
 #3: 000000004cf63f5f (&dup_mmap_sem){++++}, at: percpu_down_write+0x62/0x3f0 kernel/locking/percpu-rwsem.c:145
 #4: 00000000c6f2e640 (&mm->mmap_sem){++++}, at: register_for_each_vma+0x6bb/0xe40 kernel/events/uprobes.c:808

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 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: 4684 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:strlen+0x46/0x90 lib/string.c:539
Code: 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 48 80 7d 00 00 74 39 48 bb 00 00 00 00 00 fc ff df 48 89 e8 48 83 c0 01 48 89 c2 <48> 89 c1 48 c1 ea 03 83 e1 07 0f b6 14 1a 38 ca 7f 04 84 d2 75 1f
RSP: 0018:ffff8880a16978a0 EFLAGS: 00000082
RAX: ffffffff88751107 RBX: dffffc0000000000 RCX: 0000000000000006
RDX: ffffffff88751107 RSI: ffff8880a53cb348 RDI: ffffffff88751100
RBP: ffffffff88751100 R08: ffffffff8cd37ca0 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff89f6d360
R13: ffff8880a53cb348 R14: ffffffff814a7850 R15: ffff8880a1697970
FS:  00007f117b72d8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1178fea000 CR3: 00000000a2341000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 strlen include/linux/string.h:299 [inline]
 trace_event_get_offsets_lock include/trace/events/lock.h:39 [inline]
 perf_trace_lock+0xb1/0x4b0 include/trace/events/lock.h:39
 trace_lock_release include/trace/events/lock.h:58 [inline]
 lock_release+0x4e8/0x8b0 kernel/locking/lockdep.c:3926
 seqcount_lockdep_reader_access include/linux/seqlock.h:82 [inline]
 read_seqcount_begin include/linux/seqlock.h:164 [inline]
 set_root+0x151/0x5f0 fs/namei.c:818
 path_init+0x1057/0x19d0 fs/namei.c:2208
 path_openat+0x185/0x2df0 fs/namei.c:3535
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f117acbc840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007ffebd5c1f98 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ffebd5c22a0 RCX: 00007f117acbc840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000556cf78daba0
RBP: 000000000000000d R08: 000000000000c0ff R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000556cf78cd040 R14: 00007ffebd5c2260 R15: 0000556cf78da3d0
----------------
Code disassembly (best guess):
   0:	04 02                	add    $0x2,%al
   2:	48 89 fa             	mov    %rdi,%rdx
   5:	83 e2 07             	and    $0x7,%edx
   8:	38 d0                	cmp    %dl,%al
   a:	7f 04                	jg     0x10
   c:	84 c0                	test   %al,%al
   e:	75 48                	jne    0x58
  10:	80 7d 00 00          	cmpb   $0x0,0x0(%rbp)
  14:	74 39                	je     0x4f
  16:	48 bb 00 00 00 00 00 	movabs $0xdffffc0000000000,%rbx
  1d:	fc ff df
  20:	48 89 e8             	mov    %rbp,%rax
  23:	48 83 c0 01          	add    $0x1,%rax
  27:	48 89 c2             	mov    %rax,%rdx
* 2a:	48 89 c1             	mov    %rax,%rcx <-- trapping instruction
  2d:	48 c1 ea 03          	shr    $0x3,%rdx
  31:	83 e1 07             	and    $0x7,%ecx
  34:	0f b6 14 1a          	movzbl (%rdx,%rbx,1),%edx
  38:	38 ca                	cmp    %cl,%dl
  3a:	7f 04                	jg     0x40
  3c:	84 d2                	test   %dl,%dl
  3e:	75 1f                	jne    0x5f

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/04 01:45 linux-4.19.y 3f8a27f9e27b 4a3f34f2 .config console log report info ci2-linux-4-19 INFO: task hung in uprobe_start_dup_mmap
2021/12/19 14:54 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info ci2-linux-4-19 INFO: task hung in uprobe_start_dup_mmap
* Struck through repros no longer work on HEAD.