syzbot


INFO: task hung in do_user_addr_fault

Status: auto-closed as invalid on 2021/05/17 11:48
Subsystems: fs
[Documentation on labels]
First crash: 1175d, last: 1175d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_user_addr_fault (3) ntfs3 C 32 399d 474d 22/26 fixed on 2023/06/08 14:41
upstream INFO: task hung in do_user_addr_fault (2) kernel C error error 5 816d 848d 0/26 closed as invalid on 2022/02/08 10:18

Sample crash report:
INFO: task syz-fuzzer:8471 blocked for more than 143 seconds.
      Not tainted 5.11.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-fuzzer      state:D stack:23512 pid: 8471 ppid:  8451 flags:0x00000004
Call Trace:
 context_switch kernel/sched/core.c:4327 [inline]
 __schedule+0x90c/0x21a0 kernel/sched/core.c:5078
 schedule+0xcf/0x270 kernel/sched/core.c:5157
 rwsem_down_read_slowpath+0x4ca/0x980 kernel/locking/rwsem.c:992
 __down_read_common kernel/locking/rwsem.c:1213 [inline]
 __down_read kernel/locking/rwsem.c:1222 [inline]
 down_read+0xdf/0x440 kernel/locking/rwsem.c:1355
 mmap_read_lock include/linux/mmap_lock.h:117 [inline]
 do_user_addr_fault+0x93e/0xc60 arch/x86/mm/fault.c:1344
 handle_page_fault arch/x86/mm/fault.c:1450 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1506
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:580
RIP: 0033:0x40c7f9
RSP: 002b:000000c0000bf8c0 EFLAGS: 00010283
RAX: 00007f0d4ea49d38 RBX: 000000c000094380 RCX: 000000c000001680
RDX: 00007f0d76afa108 RSI: 0000000000000000 RDI: 0000000000000048
RBP: 000000c0000bf950 R08: 0000000000890640 R09: ffffffffffffff00
R10: 000000000000000c R11: 0000000000000000 R12: 0000000000eefbe0
R13: 00000000000001cf R14: 0000000000000200 R15: 0000000000000004

Showing all locks held in the system:
4 locks held by kworker/u4:2/102:
1 lock held by khungtaskd/1658:
 #0: ffffffff8b373da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6259
1 lock held by khugepaged/1665:
1 lock held by in:imklog/8163:
 #0: ffff888011662370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:947
2 locks held by agetty/8391:
 #0: ffff888020a56098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266
 #1: ffffc90000f9c2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x21d/0x1aa0 drivers/tty/n_tty.c:2155
2 locks held by agetty/8392:
 #0: ffff888020c7d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266
 #1: ffffc90000f982e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x21d/0x1aa0 drivers/tty/n_tty.c:2155
1 lock held by syz-fuzzer/8460:
 #0: ffff88801fe9c158 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline]
 #0: ffff88801fe9c158 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x93e/0xc60 arch/x86/mm/fault.c:1344
1 lock held by syz-fuzzer/8471:
 #0: ffff88801fe9c158 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline]
 #0: ffff88801fe9c158 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x93e/0xc60 arch/x86/mm/fault.c:1344
2 locks held by agetty/10313:
 #0: ffff88807240b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:266
 #1: ffffc900011582e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x21d/0x1aa0 drivers/tty/n_tty.c:2155
2 locks held by syz-executor.2/12782:
3 locks held by kworker/u4:9/12874:

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

NMI backtrace for cpu 0
CPU: 0 PID: 1658 Comm: khungtaskd Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd43/0xfa0 kernel/hung_task.c:294
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12782 Comm: syz-executor.2 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:110
Code: c7 a0 4a 60 8e e8 a8 78 84 00 eb b0 66 0f 1f 44 00 00 be 01 00 00 00 e9 06 6b 2c 00 cc cc cc cc cc cc 89 ff 89 b7 00 c0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 48
RSP: 0018:ffffc90000db0a20 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff8ae6b8a0 RCX: 1ffff110173e3fe8
RDX: 1ffffffff15cd714 RSI: 0000000000000000 RDI: 00000000000000b0
RBP: ffffc90000db0a58 R08: ffffffff8e610058 R09: ffffffff8e61004f
R10: ffffffff8e610057 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556d57e885c0 CR3: 0000000018165000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 apic_eoi arch/x86/include/asm/apic.h:408 [inline]
 ack_APIC_irq arch/x86/include/asm/apic.h:454 [inline]
 __sysvec_irq_work+0x4b/0x3d0 arch/x86/kernel/irq_work.c:19
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
 sysvec_irq_work+0x48/0x100 arch/x86/kernel/irq_work.c:17
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:655
RIP: 0010:rate_control_send_low+0x2/0x800 net/mac80211/rate.c:392
Code: e8 83 1b 62 f9 e9 0e ff ff ff e8 79 1b 62 f9 e9 2a ff ff ff 4c 89 e7 e8 6c 1b 62 f9 e9 3c ff ff ff 0f 1f 80 00 00 00 00 41 57 <41> 56 41 55 49 89 fd 41 54 49 89 f4 55 53 48 83 ec 18 e8 e7 5a 1f
RSP: 0018:ffffc90000db0b08 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: ffff888014a23780 RSI: ffffc90000db0bd8 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000000
R10: ffffffff88538b63 R11: 0000000000000000 R12: ffffc90000db0bd8
R13: ffff88801313cbc0 R14: ffff88801265db7c R15: 0000000000000004
 rate_control_get_rate+0x1b9/0x5a0 net/mac80211/rate.c:913
 __ieee80211_beacon_get+0xb06/0x1aa0 net/mac80211/tx.c:4901
 ieee80211_beacon_get_tim+0x88/0x910 net/mac80211/tx.c:4928
 ieee80211_beacon_get include/net/mac80211.h:4918 [inline]
 mac80211_hwsim_beacon_tx+0x111/0x910 drivers/net/wireless/mac80211_hwsim.c:1729
 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:829
 mac80211_hwsim_beacon+0xd5/0x1a0 drivers/net/wireless/mac80211_hwsim.c:1782
 __run_hrtimer kernel/time/hrtimer.c:1519 [inline]
 __hrtimer_run_queues+0x609/0xe40 kernel/time/hrtimer.c:1583
 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1600
 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:226 [inline]
 __irq_exit_rcu kernel/softirq.c:420 [inline]
 irq_exit_rcu+0x134/0x200 kernel/softirq.c:432
 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629
RIP: 0010:schedule_debug kernel/sched/core.c:4826 [inline]
RIP: 0010:__schedule+0x129/0x21a0 kernel/sched/core.c:4972
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 fe 1a 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7d 20 4c 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 c7 1b 00 00 49 81 3f 9d 6e ac 57 0f 85 44 20 00 00 49 8d 45
RSP: 0018:ffffc90003137490 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 1ffff92000626e9a
RDX: 1ffff92000626000 RSI: 0000000000000001 RDI: ffff888014a237a0
RBP: ffffc90003137558 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff81788eb8 R11: 0000000000000001 R12: ffff8880b9f34c40
R13: ffff888014a23780 R14: 0000000000034c40 R15: ffffc90003130000
 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5340
 irqentry_exit_cond_resched kernel/entry/common.c:393 [inline]
 irqentry_exit_cond_resched kernel/entry/common.c:385 [inline]
 irqentry_exit+0x7a/0xa0 kernel/entry/common.c:423
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0xc/0x70 kernel/kcov.c:290
Code: 4c 38 f0 48 c7 44 38 e0 05 00 00 00 48 89 74 38 e8 4e 89 54 c8 20 48 89 10 c3 0f 1f 40 00 49 89 f8 bf 03 00 00 00 4c 8b 14 24 <48> 89 f1 65 48 8b 34 25 00 f0 01 00 e8 d3 ef ff ff 84 c0 74 48 48
RSP: 0018:ffffc90003137638 EFLAGS: 00000246
RAX: 1ffffd40002f2159 RBX: dead000000000100 RCX: 0000000000000000
RDX: ffff888014a23780 RSI: 0000000000000000 RDI: 0000000000000003
RBP: ffffea0001790ac0 R08: 0000000000000000 R09: 0000000001790a00
R10: ffffffff819971ec R11: 0000000000000000 R12: 0000000000000000
R13: ffff888012b0a1b8 R14: 0000000000000034 R15: dffffc0000000000
 compound_head include/linux/page-flags.h:186 [inline]
 release_pages+0x12c/0x1d20 mm/swap.c:877
 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:242 [inline]
 tlb_flush_mmu+0xe9/0x6b0 mm/mmu_gather.c:249
 zap_pte_range mm/memory.c:1330 [inline]
 zap_pmd_range mm/memory.c:1368 [inline]
 zap_pud_range mm/memory.c:1397 [inline]
 zap_p4d_range mm/memory.c:1418 [inline]
 unmap_page_range+0x1a75/0x2640 mm/memory.c:1439
 unmap_single_vma+0x198/0x300 mm/memory.c:1484
 unmap_vmas+0x168/0x2e0 mm/memory.c:1516
 exit_mmap+0x2b1/0x5a0 mm/mmap.c:3220
 __mmput+0x122/0x470 kernel/fork.c:1082
 mmput+0x53/0x60 kernel/fork.c:1103
 exit_mm kernel/exit.c:501 [inline]
 do_exit+0xb6a/0x2ae0 kernel/exit.c:812
 do_group_exit+0x125/0x310 kernel/exit.c:922
 get_signal+0x427/0x20f0 kernel/signal.c:2773
 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:811
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x148/0x250 kernel/entry/common.c:201
 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:315
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:655
RIP: 0033:0x45e217
Code: Unable to access opcode bytes at RIP 0x45e1ed.
RSP: 002b:00007f5fd4642cf8 EFLAGS: 00000246
RAX: 00000000000000ca RBX: 000000000119bf88 RCX: 00000000000f4240
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000119bf8c
RBP: 000000000119bf80 R08: 000000000000000e R09: 0000000000000000
R10: 0000000020ffc000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffe4fcff7ff R14: 00007f5fd46439c0 R15: 000000000119bf8c

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/30 00:08 upstream bec4c2968fce fc9fd31e .config console log report info ci-upstream-kasan-gce-root INFO: task hung in do_user_addr_fault
* Struck through repros no longer work on HEAD.