attempt to access beyond end of device INFO: task syz-executor.0:11060 blocked for more than 140 seconds. loop3: rw=2049, want=130, limit=128 Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D26136 11060 8113 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 attempt to access beyond end of device loop5: rw=2049, want=129, limit=128 attempt to access beyond end of device loop1: rw=2049, want=129, limit=128 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 xlog_grant_head_wait+0x13b/0xcd0 fs/xfs/xfs_log.c:263 attempt to access beyond end of device loop4: rw=2049, want=129, limit=128 xlog_grant_head_check+0x3c8/0x420 fs/xfs/xfs_log.c:325 buffer_io_error: 23 callbacks suppressed Buffer I/O error on dev loop4, logical block 128, lost async page write attempt to access beyond end of device xfs_log_reserve+0x347/0xa70 fs/xfs/xfs_log.c:454 loop4: rw=2049, want=133, limit=128 xfs_trans_reserve+0x63a/0x9c0 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x2f7/0x700 fs/xfs/xfs_trans.c:289 attempt to access beyond end of device xlog_finish_defer_ops fs/xfs/xfs_log_recover.c:4841 [inline] xlog_recover_process_intents+0x274/0x430 fs/xfs/xfs_log_recover.c:4947 loop2: rw=2049, want=129, limit=128 Buffer I/O error on dev loop2, logical block 128, lost async page write xlog_recover_finish+0x5f/0x230 fs/xfs/xfs_log_recover.c:5839 xfs_log_mount_finish+0x135/0x450 fs/xfs/xfs_log.c:778 xfs_mountfs+0x1032/0x1bf0 fs/xfs/xfs_mount.c:974 xfs_fs_fill_super+0xd0e/0x1540 fs/xfs/xfs_super.c:1720 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f6c52da262a Code: Bad RIP value. RSP: 002b:00007f6c51312f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000bb1a RCX: 00007f6c52da262a RDX: 000000002000bb00 RSI: 0000000020000040 RDI: 00007f6c51312fe0 RBP: 00007f6c51313020 R08: 00007f6c51313020 R09: 0000000000200000 R10: 0000000000200000 R11: 0000000000000202 R12: 000000002000bb00 R13: 0000000020000040 R14: 00007f6c51312fe0 R15: 0000000020000200 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 00000000ae680999 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7816: #0: 000000009eefd920 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by syz-executor.3/8127: #0: 0000000006fe737d (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 0000000006fe737d (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 00000000ae680999 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000ae680999 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 2 locks held by syz-executor.5/8130: #0: 00000000c0e89983 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: __loop_clr_fd+0x777/0xe50 drivers/block/loop.c:1164 2 locks held by syz-executor.1/8133: #0: 00000000ee162da4 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: lo_release+0x1a/0x1f0 drivers/block/loop.c:1790 2 locks held by syz-executor.2/8141: #0: 00000000dbdc52e4 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: lo_release+0x1a/0x1f0 drivers/block/loop.c:1790 2 locks held by syz-executor.4/8151: #0: 000000002334c939 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: __loop_clr_fd+0x777/0xe50 drivers/block/loop.c:1164 2 locks held by syz-executor.0/11060: #0: 00000000b1c7517c (&type->s_umount_key#56/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 00000000b1c7517c (&type->s_umount_key#56/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 #1: 00000000b7459acd (sb_internal#4){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 00000000b7459acd (sb_internal#4){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 2 locks held by syz-executor.0/11145: #0: 00000000e0b989d2 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: lo_open+0x19/0xd0 drivers/block/loop.c:1771 2 locks held by systemd-udevd/18246: #0: 00000000954a6051 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 #1: 00000000ef356ebe (loop_ctl_mutex){+.+.}, at: lo_open+0x19/0xd0 drivers/block/loop.c:1771 1 lock held by syz-executor.3/18249: #0: 00000000954a6051 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/18252: #0: 00000000c0e89983 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/18254: #0: 000000002334c939 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/18256: #0: 00000000ee162da4 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 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+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8133 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:get_lock_parent_ip include/linux/ftrace.h:696 [inline] RIP: 0010:preempt_latency_start kernel/sched/core.c:3216 [inline] RIP: 0010:preempt_count_add+0xaf/0x190 kernel/sched/core.c:3241 Code: 0f b6 c0 3d f4 00 00 00 7f 64 65 8b 05 9a 70 c0 7e 25 ff ff ff 7f 39 c5 74 03 5b 5d c3 48 8b 5c 24 10 48 89 df e8 41 15 0a 00 <85> c0 75 35 65 48 8b 2c 25 c0 df 01 00 48 8d bd 38 12 00 00 48 b8 RSP: 0018:ffff8880a14776b8 EFLAGS: 00000283 RAX: 0000000000000000 RBX: ffffffff81298225 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff8880a1477660 RDI: ffffffff81298225 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 R10: ffff8880a1477917 R11: 0000000000074071 R12: ffff8880a1477900 R13: ffffed101428ef19 R14: ffff8880a14778b8 R15: ffff8880a14778b8 FS: 0000555556168400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f09291ce6be CR3: 00000000a1421000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0x135/0x1400 arch/x86/kernel/unwind_orc.c:407 __unwind_start+0x5b8/0x960 arch/x86/kernel/unwind_orc.c:667 unwind_start arch/x86/include/asm/unwind.h:60 [inline] __save_stack_trace+0x72/0x190 arch/x86/kernel/stacktrace.c:43 save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553 kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 vm_area_dup kernel/fork.c:329 [inline] dup_mmap kernel/fork.c:489 [inline] dup_mm kernel/fork.c:1285 [inline] copy_mm kernel/fork.c:1341 [inline] copy_process.part.0+0x343d/0x8260 kernel/fork.c:1913 copy_process kernel/fork.c:1710 [inline] _do_fork+0x22f/0xf30 kernel/fork.c:2219 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0928582e2b Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00 RSP: 002b:00007ffcbb11bbb0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0928582e2b RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000555556168400 R10: 00005555561686d0 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffcbb11bc90