syz-executor.0[5461]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:2959 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2959! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5461 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-11329-g708283abf896 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:dbFindLeaf+0x41f/0x430 fs/jfs/jfs_dmap.c:2959 Code: 17 65 db fe eb 89 e8 50 15 7f fe 48 c7 c7 e0 e3 45 8b 48 c7 c6 20 e1 45 8b ba 8f 0b 00 00 48 c7 c1 a0 ee 45 8b e8 91 76 ab 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 41 57 41 56 RSP: 0018:ffffc900048bf978 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000020 RCX: f65612c028397a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 00000000ffffffff R08: ffffffff8170135c R09: 1ffff92000917ee4 R10: dffffc0000000000 R11: fffff52000917ee5 R12: ffff8880748d4010 R13: 000000000000000a R14: ffff8880748d4041 R15: 000000000000001d FS: 00007ff02a1e26c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005563b26e9680 CR3: 000000006810e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0xcd/0x490 fs/jfs/jfs_dmap.c:1960 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1816 dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1357 dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1606 jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff02947cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff02a1e20c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff02959bf80 RCX: 00007ff02947cae9 RDX: 0000000020000080 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007ff0294c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff02959bf80 R15: 00007ffcb8c88f38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindLeaf+0x41f/0x430 fs/jfs/jfs_dmap.c:2959 Code: 17 65 db fe eb 89 e8 50 15 7f fe 48 c7 c7 e0 e3 45 8b 48 c7 c6 20 e1 45 8b ba 8f 0b 00 00 48 c7 c1 a0 ee 45 8b e8 91 76 ab 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 41 57 41 56 RSP: 0018:ffffc900048bf978 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000020 RCX: f65612c028397a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 00000000ffffffff R08: ffffffff8170135c R09: 1ffff92000917ee4 R10: dffffc0000000000 R11: fffff52000917ee5 R12: ffff8880748d4010 R13: 000000000000000a R14: ffff8880748d4041 R15: 000000000000001d FS: 00007ff02a1e26c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57cd933270 CR3: 000000006810e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400