loop7: detected capacity change from 0 to 32768 Oops: divide error: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 9148 Comm: syz.7.685 Not tainted 6.12.0-syzkaller-10740-g509f806f7f70 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:dbAllocAG+0x414/0xd30 fs/jfs/jfs_dmap.c:1399 Code: 03 0f b6 0c 11 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 a7 08 00 00 41 8b 4d 2c 49 8d 7d 30 99 48 89 fe 48 c1 ee 03 f9 48 ba 00 00 00 00 00 fc ff df 0f b6 14 16 84 d2 74 09 80 fa RSP: 0018:ffffc9000bc07688 EFLAGS: 00010216 RAX: 0000000000000400 RBX: 000000000000000a RCX: 0000000000000000 RDX: 0000000000000000 RSI: 1ffff1100b64ec06 RDI: ffff88805b276030 RBP: 0000000000000000 R08: 0000000000000005 R09: 000000000000001f R10: 000000000000000a R11: 00000000000a4001 R12: ffff888031e68000 R13: ffff88805b276000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f2a8c9556c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c51fffc CR3: 0000000051fba000 CR4: 0000000000350ef0 Call Trace: dbAlloc+0x415/0xab0 fs/jfs/jfs_dmap.c:888 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x50a/0xf00 fs/jfs/jfs_extent.c:122 jfs_get_block+0x42c/0xb20 fs/jfs/inode.c:248 __block_write_begin_int+0x4fe/0x16e0 fs/buffer.c:2116 block_write_begin+0x9a/0x1d0 fs/buffer.c:2226 jfs_write_begin+0x31/0xe0 fs/jfs/inode.c:299 generic_perform_write+0x2bd/0x920 mm/filemap.c:4055 __generic_file_write_iter+0x1f7/0x240 mm/filemap.c:4156 generic_file_write_iter+0xe1/0x340 mm/filemap.c:4182 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:679 ksys_write+0x12b/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2a8bb80849 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:00007f2a8c955058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2a8bd45fa0 RCX: 00007f2a8bb80849 RDX: 0000000000000009 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f2a8bbf3986 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2a8bd45fa0 R15: 00007fff7c94f718 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbAllocAG+0x414/0xd30 fs/jfs/jfs_dmap.c:1399 Code: 03 0f b6 0c 11 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 a7 08 00 00 41 8b 4d 2c 49 8d 7d 30 99 48 89 fe 48 c1 ee 03 f9 48 ba 00 00 00 00 00 fc ff df 0f b6 14 16 84 d2 74 09 80 fa RSP: 0018:ffffc9000bc07688 EFLAGS: 00010216 RAX: 0000000000000400 RBX: 000000000000000a RCX: 0000000000000000 RDX: 0000000000000000 RSI: 1ffff1100b64ec06 RDI: ffff88805b276030 RBP: 0000000000000000 R08: 0000000000000005 R09: 000000000000001f R10: 000000000000000a R11: 00000000000a4001 R12: ffff888031e68000 R13: ffff88805b276000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f2a8c9556c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ba2f63040 CR3: 0000000051fba000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 03 0f add (%rdi),%ecx 2: b6 0c mov $0xc,%dh 4: 11 48 89 adc %ecx,-0x77(%rax) 7: fa cli 8: 83 e2 07 and $0x7,%edx b: 83 c2 03 add $0x3,%edx e: 38 ca cmp %cl,%dl 10: 7c 08 jl 0x1a 12: 84 c9 test %cl,%cl 14: 0f 85 a7 08 00 00 jne 0x8c1 1a: 41 8b 4d 2c mov 0x2c(%r13),%ecx 1e: 49 8d 7d 30 lea 0x30(%r13),%rdi 22: 99 cltd 23: 48 89 fe mov %rdi,%rsi 26: 48 c1 ee 03 shr $0x3,%rsi * 2a: f7 f9 idiv %ecx <-- trapping instruction 2c: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 33: fc ff df 36: 0f b6 14 16 movzbl (%rsi,%rdx,1),%edx 3a: 84 d2 test %dl,%dl 3c: 74 09 je 0x47 3e: 80 .byte 0x80 3f: fa cli