INFO: task syz-executor.4:25151 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:25296 pid:25151 ppid: 6549 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6250 schedule+0x12b/0x1f0 kernel/sched/core.c:6323 blk_mq_freeze_queue_wait+0x105/0x190 block/blk-mq.c:178 loop_set_status+0x183/0xa50 drivers/block/loop.c:1264 lo_ioctl+0xbc9/0x1f40 blkdev_ioctl+0x3ac/0x790 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f4e371d3ae9 RSP: 002b:00007f4e34749188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4e372e6f60 RCX: 00007f4e371d3ae9 RDX: 0000000020000780 RSI: 0000000000004c02 RDI: 0000000000000007 RBP: 00007f4e3722df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd4e82b7df R14: 00007f4e34749300 R15: 0000000000022000 INFO: task syz-executor.4:25156 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:22608 pid:25156 ppid: 6549 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6250 schedule+0x12b/0x1f0 kernel/sched/core.c:6323 __bio_queue_enter+0x35a/0x690 block/blk-core.c:441 bio_queue_enter block/blk.h:91 [inline] blk_mq_get_request block/blk-mq.c:2588 [inline] blk_mq_submit_bio+0x7c9/0x2750 block/blk-mq.c:2632 __submit_bio+0x15d/0x330 block/blk-core.c:849 __submit_bio_noacct_mq block/blk-core.c:924 [inline] submit_bio_noacct+0x844/0x9e0 block/blk-core.c:950 submit_bio+0x2d2/0x520 block/blk-core.c:1011 __block_write_full_page+0x8fb/0x1090 fs/buffer.c:1809 __writepage+0x60/0x120 mm/page-writeback.c:2320 write_cache_pages+0x8ba/0xe40 mm/page-writeback.c:2255 generic_writepages+0xfb/0x160 mm/page-writeback.c:2346 do_writepages+0x3c3/0x690 mm/page-writeback.c:2364 filemap_fdatawrite_wbc+0x11e/0x170 mm/filemap.c:407 __filemap_fdatawrite_range mm/filemap.c:440 [inline] file_write_and_wait_range+0x1d6/0x2d0 mm/filemap.c:824 blkdev_fsync+0x4e/0xa0 block/fops.c:465 generic_write_sync include/linux/fs.h:2956 [inline] blkdev_write_iter+0x4d4/0x650 block/fops.c:559 do_iter_readv_writev+0x54f/0x740 do_iter_write+0x21e/0x7b0 fs/read_write.c:851 iter_file_splice_write+0x7eb/0xfa0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe6/0x1c0 fs/splice.c:936 splice_direct_to_actor+0x529/0xd00 fs/splice.c:891 do_splice_direct+0x291/0x3e0 fs/splice.c:979 do_sendfile+0x6fe/0x1040 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64+0x171/0x1d0 fs/read_write.c:1296 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f4e371d3ae9 RSP: 002b:00007f4e34728188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4e372e7020 RCX: 00007f4e371d3ae9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007f4e3722df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000024002da8 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd4e82b7df R14: 00007f4e34728300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8cb1da00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by in:imklog/6195: #0: ffff88807cbb3770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:990 2 locks held by kworker/0:7/8493: 2 locks held by kworker/u4:12/8676: #0: ffff8880b9a395d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:478 #1: ffff8880b9a27888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4c1/0x780 kernel/sched/psi.c:880 2 locks held by systemd-udevd/24893: #0: ffff88801af8d918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfc/0xb80 block/bdev.c:819 #1: ffff88801af89360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x68/0x100 drivers/block/loop.c:1733 1 lock held by syz-executor.4/25151: #0: ffff88801af89360 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0xa50 drivers/block/loop.c:1248 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.0-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+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc82/0xcd0 kernel/hung_task.c:295 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 9703 Comm: kworker/u4:16 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x84/0x2f0 mm/kasan/generic.c:189 Code: df 4d 01 ea 4d 89 d6 4d 29 ce 49 83 fe 10 7f 30 4d 85 f6 0f 84 ae 01 00 00 4c 89 cb 4c 29 d3 0f 1f 80 00 00 00 00 45 0f b6 19 <45> 84 db 0f 85 f3 01 00 00 49 ff c1 48 ff c3 75 eb e9 87 01 00 00 RSP: 0018:ffffc90004bb78d0 EFLAGS: 00000097 RAX: 0000000000000001 RBX: ffffffffffffffff RCX: ffffffff8165e4af RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8ff8cfb0 RBP: ffffc90004bb7a50 R08: dffffc0000000000 R09: fffffbfff1ff19f6 R10: fffffbfff1ff19f7 R11: 0000000000000000 R12: 1ffffffff1ff19f6 R13: dffffc0000000001 R14: 0000000000000001 R15: ffff888077f1e1a8 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbdb389b000 CR3: 0000000022a5c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:199 [inline] check_wait_context kernel/locking/lockdep.c:4725 [inline] __lock_acquire+0x81f/0x2b00 kernel/locking/lockdep.c:4977 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5637 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:268 rcu_read_lock include/linux/rcupdate.h:688 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0xc8/0x5b0 net/batman-adv/network-coding.c:723 process_one_work+0x853/0x1140 kernel/workqueue.c:2298 worker_thread+0xac1/0x1320 kernel/workqueue.c:2445 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 4d 01 ea add %r13,%r10 3: 4d 89 d6 mov %r10,%r14 6: 4d 29 ce sub %r9,%r14 9: 49 83 fe 10 cmp $0x10,%r14 d: 7f 30 jg 0x3f f: 4d 85 f6 test %r14,%r14 12: 0f 84 ae 01 00 00 je 0x1c6 18: 4c 89 cb mov %r9,%rbx 1b: 4c 29 d3 sub %r10,%rbx 1e: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 25: 45 0f b6 19 movzbl (%r9),%r11d * 29: 45 84 db test %r11b,%r11b <-- trapping instruction 2c: 0f 85 f3 01 00 00 jne 0x225 32: 49 ff c1 inc %r9 35: 48 ff c3 inc %rbx 38: 75 eb jne 0x25 3a: e9 87 01 00 00 jmpq 0x1c6