INFO: task udevd:3766 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-next-20211210-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:26448 pid: 3766 ppid: 2972 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 io_schedule+0xee/0x170 kernel/sched/core.c:8414 folio_wait_bit_common+0x4f2/0xa90 mm/filemap.c:1334 folio_wait_bit mm/filemap.c:1481 [inline] folio_wait_locked include/linux/pagemap.h:848 [inline] folio_wait_locked include/linux/pagemap.h:845 [inline] do_read_cache_folio+0x5c9/0x840 mm/filemap.c:3505 read_cache_folio mm/filemap.c:3600 [inline] do_read_cache_page mm/filemap.c:3608 [inline] read_cache_page+0x59/0x2a0 mm/filemap.c:3617 read_mapping_page include/linux/pagemap.h:642 [inline] read_part_sector+0xf6/0x9a0 block/partitions/core.c:724 adfspart_check_ICS+0x9a/0x690 block/partitions/acorn.c:360 check_partition block/partitions/core.c:148 [inline] blk_add_partitions block/partitions/core.c:609 [inline] bdev_disk_changed+0x629/0xf60 block/partitions/core.c:695 blkdev_get_whole+0x206/0x2d0 block/bdev.c:684 blkdev_get_by_dev.part.0+0x5c6/0xc70 block/bdev.c:818 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:852 blkdev_open+0x154/0x2e0 block/fops.c:502 do_dentry_open+0x4c8/0x1250 fs/open.c:824 do_open fs/namei.c:3476 [inline] path_openat+0x1c9e/0x2940 fs/namei.c:3609 do_filp_open+0x1aa/0x400 fs/namei.c:3636 do_sys_openat2+0x16d/0x4d0 fs/open.c:1214 do_sys_open fs/open.c:1230 [inline] __do_sys_openat fs/open.c:1246 [inline] __se_sys_openat fs/open.c:1241 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1241 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f3545596697 RSP: 002b:00007ffc407d7fa0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000056004cb9deb0 RCX: 00007f3545596697 RDX: 00000000000a0800 RSI: 000056004cb6c780 RDI: 00000000ffffff9c RBP: 000056004cb6c780 R08: 0000000000000001 R09: 00007ffc407e8080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000056004cb68c00 R14: 0000000000000001 R15: 000056004cb43910 INFO: task syz-executor.5:14020 can't die for more than 143 seconds. task:syz-executor.5 state:D stack:28112 pid:14020 ppid: 3632 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 blkdev_put+0x99/0x980 block/bdev.c:907 blkdev_close+0x6a/0x80 block/fops.c:516 __fput+0x286/0x9f0 fs/file_table.c:311 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f91419bde99 RSP: 002b:00007f9140333168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007f9141ad0f60 RCX: 00007f91419bde99 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007f9141a17ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdab914cef R14: 00007f9140333300 R15: 0000000000022000 INFO: task syz-executor.5:14020 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-next-20211210-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28112 pid:14020 ppid: 3632 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 blkdev_put+0x99/0x980 block/bdev.c:907 blkdev_close+0x6a/0x80 block/fops.c:516 __fput+0x286/0x9f0 fs/file_table.c:311 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f91419bde99 RSP: 002b:00007f9140333168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007f9141ad0f60 RCX: 00007f91419bde99 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007f9141a17ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdab914cef R14: 00007f9140333300 R15: 0000000000022000 Showing all locks held in the system: 3 locks held by kworker/u4:1/10: #0: ffff8880b9d39c98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:489 #1: ffff8880b9d27988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x176/0x4e0 kernel/sched/psi.c:882 #2: ffffffff8bb818a0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:410 [inline] #2: ffffffff8bb818a0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_worker+0xf3/0xfa0 net/batman-adv/network-coding.c:723 1 lock held by khungtaskd/27: #0: ffffffff8bb818a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460 5 locks held by kworker/u4:3/90: #0: ffff8880b9d39c98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:489 #1: ffff8880b9d27988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3e7/0x4e0 kernel/sched/psi.c:891 #2: ffff88807d650dc0 (&wdev->mtx){+.+.}-{3:3}, at: sdata_lock net/mac80211/ieee80211_i.h:1013 [inline] #2: ffff88807d650dc0 (&wdev->mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0x90/0xe80 net/mac80211/ibss.c:1681 #3: ffffffff8bb818a0 (rcu_read_lock){....}-{1:2}, at: sdata_assert_lock net/mac80211/ieee80211_i.h:1030 [inline] #3: ffffffff8bb818a0 (rcu_read_lock){....}-{1:2}, at: ieee80211_sta_active_ibss+0x86/0x350 net/mac80211/ibss.c:652 #4: ffff8880b9d282b0 (krc.lock){..-.}-{2:2}, at: krc_this_cpu_lock kernel/rcu/tree.c:3221 [inline] #4: ffff8880b9d282b0 (krc.lock){..-.}-{2:2}, at: add_ptr_to_bulk_krc_lock kernel/rcu/tree.c:3504 [inline] #4: ffff8880b9d282b0 (krc.lock){..-.}-{2:2}, at: kvfree_call_rcu+0xde/0x990 kernel/rcu/tree.c:3595 2 locks held by getty/3284: #0: ffff88814abe0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002b962e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077 1 lock held by udevd/3766: #0: ffff88801ab60918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xc70 block/bdev.c:809 1 lock held by syz-executor.5/14020: #0: ffff88801ab60918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x99/0x980 block/bdev.c:907 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc4-next-20211210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 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:256 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:413 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3683 Comm: kworker/1:6 Not tainted 5.16.0-rc4-next-20211210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events nsim_dev_trap_report_work RIP: 0010:check_kcov_mode+0x7/0x40 kernel/kcov.c:166 Code: 00 e9 59 fe ff ff 48 8b 7c 24 08 e8 e3 fc 4a 00 e9 61 fd ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc 65 8b 05 29 79 8a 7e <89> c2 81 e2 00 01 00 00 a9 00 01 ff 00 74 10 31 c0 85 d2 74 15 8b RSP: 0018:ffffc90002c0fc20 EFLAGS: 00000246 RAX: 0000000080000001 RBX: 000000000000008e RCX: 0000000000000ec0 RDX: 0000000000000000 RSI: ffff8880184a8000 RDI: 0000000000000003 RBP: ffff888062c15500 R08: 000000000000008e R09: 0000000000000000 R10: ffffffff8731f176 R11: 0000000000000000 R12: 000000000000006c R13: ffff8880356e4022 R14: 0000000000000ec0 R15: 0000000000000022 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000009e80 CR3: 000000002343f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: write_comp_data kernel/kcov.c:221 [inline] __sanitizer_cov_trace_cmp4+0x1c/0x70 kernel/kcov.c:261 skb_put+0x126/0x180 net/core/skbuff.c:1985 skb_put_zero include/linux/skbuff.h:2335 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:771 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:802 [inline] nsim_dev_trap_report_work+0x70f/0xbc0 drivers/net/netdevsim/dev.c:843 process_one_work+0x9ac/0x1680 kernel/workqueue.c:2307 worker_thread+0x652/0x11c0 kernel/workqueue.c:2454 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: e9 59 fe ff ff jmpq 0xfffffe5e 5: 48 8b 7c 24 08 mov 0x8(%rsp),%rdi a: e8 e3 fc 4a 00 callq 0x4afcf2 f: e9 61 fd ff ff jmpq 0xfffffd75 14: cc int3 15: cc int3 16: cc int3 17: cc int3 18: cc int3 19: cc int3 1a: cc int3 1b: cc int3 1c: cc int3 1d: cc int3 1e: cc int3 1f: cc int3 20: cc int3 21: cc int3 22: 65 8b 05 29 79 8a 7e mov %gs:0x7e8a7929(%rip),%eax # 0x7e8a7952 * 29: 89 c2 mov %eax,%edx <-- trapping instruction 2b: 81 e2 00 01 00 00 and $0x100,%edx 31: a9 00 01 ff 00 test $0xff0100,%eax 36: 74 10 je 0x48 38: 31 c0 xor %eax,%eax 3a: 85 d2 test %edx,%edx 3c: 74 15 je 0x53 3e: 8b .byte 0x8b