loop0: detected capacity change from 0 to 32768 ialloc: diAlloc returned -5! syz.0.0: attempt to access beyond end of device loop0: rw=1, sector=4680032, nr_sectors = 8 limit=32768 metapage_write_end_io: I/O error ERROR: (device loop0): release_metapage: metapage_write_one() failed ERROR: (device loop0): remounting filesystem as read-only blkno = 8ed2c, nblocks = 1 ERROR: (device loop0): dbUpdatePMap: blocks are outside the map blkno = 8ed2c, nblocks = 1 ERROR: (device loop0): dbUpdatePMap: blocks are outside the map UFO tlock:0xffffc9000151a090 ------------[ cut here ]------------ kernel BUG at fs/jfs/inode.c:169! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5357 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:jfs_evict_inode+0x438/0x440 fs/jfs/inode.c:169 Code: fe e9 e0 fd ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 23 fe ff ff 4c 89 f7 e8 73 3a e8 fe e9 16 fe ff ff e8 69 49 83 fe 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d2efae0 EFLAGS: 00010287 RAX: ffffffff833c8547 RBX: ffff88804402c4b8 RCX: 0000000000100000 RDX: ffffc9000de12000 RSI: 0000000000001c47 RDI: 0000000000001c48 RBP: 0000000000000002 R08: ffffffff8fa3c737 R09: 1ffffffff1f478e6 R10: dffffc0000000000 R11: ffffffff833c6240 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff88804402c140 R15: ffffffff833c8110 FS: 00007f28883ca6c0(0000) GS:ffff88808d20a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f287c3ff000 CR3: 0000000042bab000 CR4: 0000000000352ef0 Call Trace: evict+0x504/0x9c0 fs/inode.c:810 dispose_list fs/inode.c:852 [inline] evict_inodes+0x64c/0x6d0 fs/inode.c:906 generic_shutdown_super+0x9a/0x2c0 fs/super.c:628 kill_block_super+0x44/0x90 fs/super.c:1766 deactivate_locked_super+0xb9/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1375 task_work_run+0x1d1/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f288758eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f28883ca038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f28877d5fa0 RCX: 00007f288758eba9 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f2887611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f28877d6038 R14: 00007f28877d5fa0 R15: 00007ffd7d99fc38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:jfs_evict_inode+0x438/0x440 fs/jfs/inode.c:169 Code: fe e9 e0 fd ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 23 fe ff ff 4c 89 f7 e8 73 3a e8 fe e9 16 fe ff ff e8 69 49 83 fe 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d2efae0 EFLAGS: 00010287 RAX: ffffffff833c8547 RBX: ffff88804402c4b8 RCX: 0000000000100000 RDX: ffffc9000de12000 RSI: 0000000000001c47 RDI: 0000000000001c48 RBP: 0000000000000002 R08: ffffffff8fa3c737 R09: 1ffffffff1f478e6 R10: dffffc0000000000 R11: ffffffff833c6240 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff88804402c140 R15: ffffffff833c8110 FS: 00007f28883ca6c0(0000) GS:ffff88808d20a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f287c3ff000 CR3: 0000000042bab000 CR4: 0000000000352ef0