syzbot


INFO: task hung in vm_unmap_aliases

Status: auto-closed as invalid on 2020/12/16 01:07
Reported-by: syzbot+d9b884a410ba84d76417@syzkaller.appspotmail.com
First crash: 1558d, last: 1558d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in vm_unmap_aliases (2) 1 1195d 1195d 0/1 auto-closed as invalid on 2021/12/13 19:07
linux-4.14 INFO: task hung in vm_unmap_aliases 1 1677d 1677d 0/1 auto-closed as invalid on 2020/08/18 18:15

Sample crash report:
netlink: 'syz-executor.1': attribute type 15 has an invalid length.
netlink: 'syz-executor.1': attribute type 5 has an invalid length.
netlink: 'syz-executor.1': attribute type 15 has an invalid length.
netlink: 'syz-executor.1': attribute type 5 has an invalid length.
INFO: task syz-executor.5:24262 blocked for more than 140 seconds.
      Not tainted 4.19.139-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D28632 24262   6493 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:1002 [inline]
 __mutex_lock+0x647/0x1260 kernel/locking/mutex.c:1072
 vm_unmap_aliases mm/vmalloc.c:1111 [inline]
 vm_unmap_aliases+0x3a7/0x510 mm/vmalloc.c:1076
 change_page_attr_set_clr+0x247/0xc60 arch/x86/mm/pageattr.c:1497
 change_page_attr_clear arch/x86/mm/pageattr.c:1560 [inline]
 set_memory_ro+0x78/0xa0 arch/x86/mm/pageattr.c:1789
 bpf_jit_binary_lock_ro include/linux/filter.h:686 [inline]
 bpf_int_jit_compile+0x6a7/0xb84 arch/x86/net/bpf_jit_comp.c:1148
 jit_subprogs kernel/bpf/verifier.c:5904 [inline]
 fixup_call_args kernel/bpf/verifier.c:5968 [inline]
 bpf_check+0x603b/0x9aaa kernel/bpf/verifier.c:6375
 bpf_prog_load+0xcca/0x1240 kernel/bpf/syscall.c:1445
 __do_sys_bpf kernel/bpf/syscall.c:2418 [inline]
 __se_sys_bpf+0xf22/0x3a20 kernel/bpf/syscall.c:2379
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d239
Code: Bad RIP value.
RSP: 002b:00007f0e8dbb2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000001c40 RCX: 000000000045d239
RDX: 0000000000000015 RSI: 0000000020000440 RDI: 0000000000000005
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffc5a604c9f R14: 00007f0e8dbb39c0 R15: 000000000118cf4c

Showing all locks held in the system:
2 locks held by kworker/u4:1/23:
 #0: 0000000068372740 ((wq_completion)"events_unbound"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2126
 #1: 00000000ebe11a57 ((work_completion)(&sub_info->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2130
1 lock held by khungtaskd/1088:
 #0: 000000008c69cca6 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
3 locks held by khugepaged/1099:
1 lock held by ion_system_heap/3349:
1 lock held by in:imklog/6146:
 #0: 0000000055c477a0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/6157:
 #0: 00000000890b04fb (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 00000000e8eacbce (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by agetty/6158:
 #0: 0000000058885ea5 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 000000003f0c024b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by syz-executor.4/6197:
 #0: 00000000130e3239 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 00000000594ee769 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by kworker/u4:3/14091:
 #0: 0000000068372740 ((wq_completion)"events_unbound"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2126
 #1: 0000000011f91333 ((work_completion)(&sub_info->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2130
2 locks held by syz-executor.5/24262:
 #0: 00000000065a831c (bpf_verifier_lock){+.+.}, at: bpf_check+0x28e/0x9aaa kernel/bpf/verifier.c:6307
 #1: 000000002e7940cd (vmap_purge_lock){+.+.}, at: vm_unmap_aliases mm/vmalloc.c:1111 [inline]
 #1: 000000002e7940cd (vmap_purge_lock){+.+.}, at: vm_unmap_aliases+0x3a7/0x510 mm/vmalloc.c:1076
1 lock held by syz-executor.5/24268:
 #0: 00000000065a831c (bpf_verifier_lock){+.+.}, at: bpf_check+0x28e/0x9aaa kernel/bpf/verifier.c:6307
1 lock held by modprobe/22528:

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

NMI backtrace for cpu 1
CPU: 1 PID: 1088 Comm: khungtaskd Not tainted 4.19.139-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/0x2fe lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1eb 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+0x30b/0x410 kernel/kthread.c:246
 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: 22536 Comm: modprobe Not tainted 4.19.139-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x0/0x20 kernel/kcov.c:195
Code: 66 2e 0f 1f 84 00 00 00 00 00 48 8b 0c 24 89 f2 89 fe bf 05 00 00 00 e9 ce fe ff ff 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 <48> 8b 0c 24 48 89 f2 48 89 fe bf 07 00 00 00 e9 ac fe ff ff 66 90
RSP: 0018:ffff88820daff9e0 EFLAGS: 00000246
RAX: ffff888082a285c0 RBX: ffffea00002a9600 RCX: ffffffff818929f1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffea00002a9600 R08: 0000000000000000 R09: ffffffffffffffff
R10: 0000000000000007 R11: 0000000000000000 R12: ffffea00002a9608
R13: 0000000000000000 R14: ffffea00002a95c8 R15: 00007fa1a7905000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc93d30fdc CR3: 000000004f3ed000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 compound_head include/linux/page-flags.h:144 [inline]
 PageActive include/linux/page-flags.h:281 [inline]
 mark_page_accessed+0xe8/0xda0 mm/swap.c:375
 zap_pte_range mm/memory.c:1335 [inline]
 zap_pmd_range mm/memory.c:1440 [inline]
 zap_pud_range mm/memory.c:1469 [inline]
 zap_p4d_range mm/memory.c:1490 [inline]
 unmap_page_range+0x1956/0x2a70 mm/memory.c:1511
 unmap_single_vma+0x198/0x300 mm/memory.c:1556
 unmap_vmas+0xa9/0x180 mm/memory.c:1586
 exit_mmap+0x2b9/0x510 mm/mmap.c:3091
 __mmput kernel/fork.c:1015 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1036
 exit_mm kernel/exit.c:546 [inline]
 do_exit+0xab5/0x2b70 kernel/exit.c:874
 do_group_exit+0x125/0x310 kernel/exit.c:990
 __do_sys_exit_group kernel/exit.c:1001 [inline]
 __se_sys_exit_group kernel/exit.c:999 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa1a788f618
Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00
RSP: 002b:00007ffc93d349f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fa1a788f618
RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001
RBP: 00007fa1a7b6c8e0 R08: 00000000000000e7 R09: ffffffffffffff98
R10: 00007ffc93d34978 R11: 0000000000000246 R12: 00007fa1a7b6c8e0
R13: 00007fa1a7b71c20 R14: 0000000000000000 R15: 0000000000000000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/18 01:06 linux-4.19.y c14d30dc9987 5ce13532 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.