VFS: Close: file count is 0 (f_op=shmem_file_operations) ------------[ cut here ]------------ kernel BUG at fs/open.c:1514! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 6824 Comm: syz-executor.1 Not tainted 6.10.0-rc3-next-20240611-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:filp_flush+0x152/0x160 fs/open.c:1512 Code: e9 80 e1 07 80 c1 03 38 c1 7c a6 48 89 ef e8 75 00 f0 ff eb 9c e8 ce f1 89 ff 48 c7 c7 e0 63 d8 8b 48 89 ee e8 cf 55 7e 09 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90004757da8 EFLAGS: 00010246 RAX: 0000000000000038 RBX: 0000000000000000 RCX: f062ea0911651e00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffffff8bd43600 R08: ffffffff817376a9 R09: 1ffff920008eaf50 R10: dffffc0000000000 R11: fffff520008eaf51 R12: ffff88801ba99680 R13: dffffc0000000000 R14: ffff88801bf34000 R15: 000000000000001e FS: 000055555c610480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000bb1414ac CR3: 000000002b4a0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filp_close+0x1e/0x40 fs/open.c:1532 __range_close fs/file.c:722 [inline] __close_range+0x35e/0x940 fs/file.c:791 __do_sys_close_range fs/open.c:1585 [inline] __se_sys_close_range fs/open.c:1582 [inline] __x64_sys_close_range+0x7a/0x90 fs/open.c:1582 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fab5367cea9 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:00007ffda855d678 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: ffffffffffffffda RBX: 000000000002cca7 RCX: 00007fab5367cea9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: ffffffffffffffff R08: 0000000000000001 R09: 0000000600000000 R10: 00007fab53600000 R11: 0000000000000246 R12: 00007fab537b3f80 R13: 00007fab537b3f8c R14: 0000000000000032 R15: 00007fab537b5980 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filp_flush+0x152/0x160 fs/open.c:1512 Code: e9 80 e1 07 80 c1 03 38 c1 7c a6 48 89 ef e8 75 00 f0 ff eb 9c e8 ce f1 89 ff 48 c7 c7 e0 63 d8 8b 48 89 ee e8 cf 55 7e 09 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90004757da8 EFLAGS: 00010246 RAX: 0000000000000038 RBX: 0000000000000000 RCX: f062ea0911651e00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffffff8bd43600 R08: ffffffff817376a9 R09: 1ffff920008eaf50 R10: dffffc0000000000 R11: fffff520008eaf51 R12: ffff88801ba99680 R13: dffffc0000000000 R14: ffff88801bf34000 R15: 000000000000001e FS: 000055555c610480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000bb1414ac CR3: 000000002b4a0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400