attempt to access beyond end of device loop5: rw=0, want=201326594, limit=1024 hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent hfsplus: can't free extent INFO: task syz-executor.1:9745 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D26152 9745 8145 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 loop4: rw=0, want=201326594, limit=1024 hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent schedule+0x8d/0x1b0 kernel/sched/core.c:3561 xlog_grant_head_wait+0x13b/0xcd0 fs/xfs/xfs_log.c:263 xlog_grant_head_check+0x3c8/0x420 fs/xfs/xfs_log.c:325 xfs_log_reserve+0x347/0xa70 fs/xfs/xfs_log.c:454 attempt to access beyond end of device loop3: rw=0, want=201326594, limit=1024 xfs_trans_reserve+0x63a/0x9c0 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x2f7/0x700 fs/xfs/xfs_trans.c:289 hfsplus: unable to mark blocks free: error -5 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 hfsplus: can't free extent attempt to access beyond end of device xlog_recover_finish+0x5f/0x230 fs/xfs/xfs_log_recover.c:5839 xfs_log_mount_finish+0x135/0x450 fs/xfs/xfs_log.c:778 loop2: rw=0, want=201326594, limit=1024 xfs_mountfs+0x1032/0x1bf0 fs/xfs/xfs_mount.c:974 hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent 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:0x7f6ea17625fa Code: Bad RIP value. RSP: 002b:00007f6e9fcd2f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000bb2b RCX: 00007f6ea17625fa RDX: 000000002000bb00 RSI: 000000002000bb40 RDI: 00007f6e9fcd2fe0 RBP: 00007f6e9fcd3020 R08: 00007f6e9fcd3020 R09: 0000000000000004 R10: 0000000000000004 R11: 0000000000000202 R12: 000000002000bb00 R13: 000000002000bb40 R14: 00007f6e9fcd2fe0 R15: 0000000020000040 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 00000000ab2ce292 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7831: #0: 000000003e1b0021 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by syz-executor.5/8129: #0: 000000001929b920 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: lo_release+0x1a/0x1f0 drivers/block/loop.c:1790 2 locks held by syz-executor.0/8131: #0: 0000000007ed1f1c (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: lo_open+0x19/0xd0 drivers/block/loop.c:1771 2 locks held by syz-executor.2/8164: #0: 00000000fb156121 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: lo_release+0x1a/0x1f0 drivers/block/loop.c:1790 2 locks held by syz-executor.3/8185: #0: 000000009446f44c (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: __loop_clr_fd+0x777/0xe50 drivers/block/loop.c:1164 2 locks held by syz-executor.4/8205: #0: 00000000a4c5e1e1 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: __loop_clr_fd+0x777/0xe50 drivers/block/loop.c:1164 2 locks held by syz-executor.1/9745: #0: 000000002a7cf1fc (&type->s_umount_key#47/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 000000002a7cf1fc (&type->s_umount_key#47/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 #1: 000000009c99afe2 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 000000009c99afe2 (sb_internal#2){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 1 lock held by syz-executor.1/9856: #0: 00000000af1156e6 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 2 locks held by systemd-udevd/15049: #0: 00000000af1156e6 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 #1: 00000000060b804e (loop_ctl_mutex){+.+.}, at: lo_open+0x19/0xd0 drivers/block/loop.c:1771 1 lock held by systemd-udevd/15051: #0: 0000000007ed1f1c (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/15053: #0: 000000009446f44c (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/15056: #0: 00000000a4c5e1e1 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478 1 lock held by systemd-udevd/15058: #0: 00000000fb156121 (&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/12/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: 4685 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:rcu_is_watching+0x7c/0xc0 kernel/rcu/tree.c:1025 Code: 00 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 48 89 e8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 24 8b 43 10 e8 83 e0 01 65 ff 0d 98 52 b0 7e 74 07 48 83 c4 08 5b 5d c3 e8 RSP: 0000:ffff8880a1007910 EFLAGS: 00000246 RAX: 000000000010e7de RBX: ffff8880ba122ac0 RCX: ffffffff81518c83 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880ba122ad0 RBP: ffff8880ba122ad0 R08: 0000000000000000 R09: ffffed101742455a R10: ffff8880ba122ad3 R11: 0000000000000000 R12: ffff8880a10f9d68 R13: ffff8880a153eb60 R14: dffffc0000000000 R15: 0000000000000001 FS: 00007fe226d368c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe224216000 CR3: 00000000a1bbd000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock include/linux/rcupdate.h:628 [inline] find_get_entry+0x597/0x8a0 mm/filemap.c:1451 find_lock_entry+0x2e/0x4b0 mm/filemap.c:1518 shmem_getpage_gfp+0x1c8/0x37f0 mm/shmem.c:1651 shmem_fault+0x206/0x6b0 mm/shmem.c:2032 __do_fault+0x10b/0x4b0 mm/memory.c:3403 do_shared_fault mm/memory.c:3870 [inline] do_fault mm/memory.c:3948 [inline] handle_pte_fault mm/memory.c:4175 [inline] __handle_mm_fault+0x25b0/0x41c0 mm/memory.c:4299 handle_mm_fault+0x436/0xb10 mm/memory.c:4336 __do_page_fault+0x68e/0xd60 arch/x86/mm/fault.c:1412 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 RIP: 0033:0x7fe22603f12e Code: fe 6f 5e 60 c5 fe 6f 64 16 e0 c5 fe 6f 6c 16 c0 c5 fe 6f 74 16 a0 c5 fe 6f 7c 16 80 c5 fe 7f 07 c5 fe 7f 4f 20 c5 fe 7f 57 40 fe 7f 5f 60 c5 fe 7f 64 17 e0 c5 fe 7f 6c 17 c0 c5 fe 7f 74 17 RSP: 002b:00007fff8b175258 EFLAGS: 00010202 RAX: 00007fe224215f98 RBX: 0000000000000090 RCX: 0000000000360f58 RDX: 0000000000000090 RSI: 00007fff8b175300 RDI: 00007fe224215f98 RBP: 0000000000000000 R08: 0000000000361028 R09: 00007fff8b178390 R10: 000d4bf7464d2bc6 R11: 00007fe224215f58 R12: 000055868da4ae80 R13: 5a6d3edf40737646 R14: 00007fff8b1754f0 R15: 00007fff8b175300 attempt to access beyond end of device