syzbot


INFO: task hung in madvise_vma_behavior

Status: auto-obsoleted due to no activity on 2026/05/17 02:01
Subsystems: mm
[Documentation on labels]
First crash: 97d, last: 97d

Sample crash report:
INFO: task syz.1.70:6382 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.70        state:D stack:24328 pid:6382  tgid:6357  ppid:5862   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5352 [inline]
 __schedule+0x1665/0x5590 kernel/sched/core.c:6964
 __schedule_loop kernel/sched/core.c:7047 [inline]
 schedule+0x164/0x360 kernel/sched/core.c:7062
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7119
 rwsem_down_read_slowpath+0x6d9/0x940 kernel/locking/rwsem.c:1114
 __down_read_common kernel/locking/rwsem.c:1291 [inline]
 __down_read kernel/locking/rwsem.c:1304 [inline]
 down_read+0x99/0x2e0 kernel/locking/rwsem.c:1570
 mmap_read_lock include/linux/mmap_lock.h:592 [inline]
 madvise_willneed mm/madvise.c:323 [inline]
 madvise_vma_behavior+0x1950/0x4460 mm/madvise.c:1352
 madvise_walk_vmas+0x573/0xae0 mm/madvise.c:1711
 madvise_do_behavior+0x386/0x540 mm/madvise.c:1927
 do_madvise+0x1fa/0x2e0 mm/madvise.c:2020
 __do_sys_madvise mm/madvise.c:2029 [inline]
 __se_sys_madvise mm/madvise.c:2027 [inline]
 __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:2027
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd3e2d9c799
RSP: 002b:00007fd3e3c51028 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fd3e3016360 RCX: 00007fd3e2d9c799
RDX: 0000000000000003 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007fd3e2e32c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd3e30163f8 R14: 00007fd3e3016360 R15: 00007ffc47c2fe28
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline]
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline]
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by kworker/1:1/43:
 #0: ffff88801b06b140 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x894/0x1780 kernel/workqueue.c:3261
 #1: ffffc90000b37c40 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1780 kernel/workqueue.c:3262
4 locks held by kworker/u8:5/78:
 #0: ffff88801b0ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x894/0x1780 kernel/workqueue.c:3261
 #1: ffffc900024afc40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1780 kernel/workqueue.c:3262
 #2: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:313
 #3: ffffffff8e7638e8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:343 [inline]
 #3: ffffffff8e7638e8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770 kernel/rcu/tree_exp.h:961
3 locks held by kworker/1:2/808:
 #0: ffff88801b069d40 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x894/0x1780 kernel/workqueue.c:3261
 #1: ffffc90004b57c40 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1780 kernel/workqueue.c:3262
 #2: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0xa5/0xfe0 net/wireless/reg.c:2451
2 locks held by dhcpcd/5507:
 #0: ffff88802a4516e8 (nlk_cb_mutex-ROUTE){+.+.}-{4:4}, at: __netlink_dump_start+0xfe/0x7e0 net/netlink/af_netlink.c:2404
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dumpit+0x92/0x200 net/core/rtnetlink.c:6826
2 locks held by getty/5599:
 #0: ffff888036d310a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000322b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0 drivers/tty/n_tty.c:2211
1 lock held by syz.1.70/6382:
 #0: ffff888036ef3538 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock include/linux/mmap_lock.h:592 [inline]
 #0: ffff888036ef3538 (&mm->mmap_lock){++++}-{4:4}, at: madvise_willneed mm/madvise.c:323 [inline]
 #0: ffff888036ef3538 (&mm->mmap_lock){++++}-{4:4}, at: madvise_vma_behavior+0x1950/0x4460 mm/madvise.c:1352
4 locks held by kworker/u8:13/6561:
 #0: ffff88801c2b6140 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x894/0x1780 kernel/workqueue.c:3261
 #1: ffffc9000521fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1780 kernel/workqueue.c:3262
 #2: ffffffff8fbc6d68 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf4/0x800 net/core/net_namespace.c:675
 #3: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: wg_destruct+0x25/0x310 drivers/net/wireguard/device.c:246
2 locks held by syz-executor/7880:
 #0: ffffffff90144598 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline]
 #0: ffffffff90144598 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline]
 #0: ffffffff90144598 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250 net/core/rtnetlink.c:570
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0 net/core/rtnetlink.c:4071
1 lock held by syz-executor/7901:
 #0: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
 #0: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
 #0: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0 net/core/rtnetlink.c:4071
2 locks held by syz.5.423/7988:
 #0: ffffffff8fbc6d68 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x4f7/0x730 net/core/net_namespace.c:577
 #1: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: cfg80211_pernet_exit+0x19/0x120 net/wireless/core.c:1700
1 lock held by syz.2.437/8054:
 #0: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:634 [inline]
 #0: ffffffff8fbd5d80 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0 drivers/net/tun.c:3436
5 locks held by syz.6.438/8059:
 #0: ffff888056524ea0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:500 [inline]
 #0: ffff888056524ea0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x5a0 net/bluetooth/hci_core.c:2716
 #1: ffff8880565240b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x640/0x10e0 net/bluetooth/hci_sync.c:5346
 #2: ffffffff8fd62100 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:2151 [inline]
 #2: ffffffff8fd62100 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x260 net/bluetooth/hci_conn.c:2644
 #3: ffff888078aa62f0 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5c0 net/bluetooth/l2cap_core.c:1751
 #4: ffffffff8e7638e8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:343 [inline]
 #4: ffffffff8e7638e8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770 kernel/rcu/tree_exp.h:961

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 __sys_info lib/sys_info.c:157 [inline]
 sys_info+0x135/0x170 lib/sys_info.c:165
 check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
 watchdog+0x1002/0x1060 kernel/hung_task.c:561
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 1 Comm: init Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:hlock_class kernel/locking/lockdep.c:234 [inline]
RIP: 0010:mark_lock+0x3c/0x190 kernel/locking/lockdep.c:4731
Code: 00 03 00 83 f9 01 bb 09 00 00 00 83 db 00 83 fa 08 0f 45 da bd 01 00 00 00 89 d9 d3 e5 25 ff 1f 00 00 48 0f a3 05 b4 92 83 12 <73> 10 48 69 c0 c8 00 00 00 48 8d 88 30 83 c7 93 eb 42 83 3d 7b 22
RSP: 0018:ffffc900000674a0 EFLAGS: 00000003
RAX: 0000000000000007 RBX: 0000000000000009 RCX: 0000000000000009
RDX: 0000000000000008 RSI: ffff88801dae66d0 RDI: ffff88801dae5b80
RBP: 0000000000000200 R08: ffffffff81774bb5 R09: ffffffff8e75d6a0
R10: ffffc900000677b8 R11: ffffffff81b1db20 R12: ffffffffffffff05
R13: ffff88801dae66d0 R14: ffff88801dae5b80 R15: ffff88801dae66d0
FS:  00007f8ed8958c80(0000) GS:ffff888125435000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000032000 CR3: 0000000030cd6000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 mark_usage kernel/locking/lockdep.c:4674 [inline]
 __lock_acquire+0x6b5/0x2cf0 kernel/locking/lockdep.c:5191
 lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868
 rcu_lock_acquire include/linux/rcupdate.h:312 [inline]
 rcu_read_lock include/linux/rcupdate.h:850 [inline]
 class_rcu_constructor include/linux/rcupdate.h:1193 [inline]
 unwind_next_frame+0xc2/0x23c0 arch/x86/kernel/unwind_orc.c:495
 arch_stack_walk+0x11b/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2689 [inline]
 slab_free mm/slub.c:6242 [inline]
 kmem_cache_free+0x189/0x640 mm/slub.c:6369
 locks_free_lock fs/locks.c:363 [inline]
 fcntl_setlk+0xc1d/0x10c0 fs/locks.c:2571
 do_fcntl+0x956/0x1a20 fs/fcntl.c:500
 __do_sys_fcntl fs/fcntl.c:602 [inline]
 __se_sys_fcntl+0xc8/0x150 fs/fcntl.c:587
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8ed8b16add
Code: 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 c7 44 24 b8 10 00 00 00 48 89 44 24 c8 83 fe 09 74 1a b8 48 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 23 c3 66 2e 0f 1f 84 00 00 00 00 00 48 8d 54
RSP: 002b:00007ffdf25e86b8 EFLAGS: 00000293 ORIG_RAX: 0000000000000048
RAX: ffffffffffffffda RBX: 0000564f023841b0 RCX: 00007f8ed8b16add
RDX: 00007ffdf25e86c0 RSI: 0000000000000007 RDI: 0000000000000003
RBP: 00007ffdf25e8738 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000180 R11: 0000000000000293 R12: 0000000000000000
R13: ffffffffffffff88 R14: 0000000000000002 R15: 0000564ee7c27d98
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/18 01:57 linux-next 8e5a478b6d6a c8810548 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in madvise_vma_behavior
* Struck through repros no longer work on HEAD.