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: 17057 Comm: syz-executor.2 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:ffffc9001437fa00 EFLAGS: 00010246 RAX: 0000000000000038 RBX: 0000000000000000 RCX: 8d8cda34abd10f00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffffff8bd43600 R08: ffffffff817376a9 R09: fffffbfff1c39b10 R10: dffffc0000000000 R11: fffffbfff1c39b10 R12: ffff8880225df400 R13: dffffc0000000000 R14: ffff88807c92e580 R15: 0000000000000005 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d8f633d58 CR3: 000000007826e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filp_close+0x1e/0x40 fs/open.c:1532 close_files fs/file.c:437 [inline] put_files_struct+0x1b6/0x360 fs/file.c:452 do_exit+0x9d4/0x28e0 kernel/exit.c:869 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d8e87cea9 Code: Unable to access opcode bytes at 0x7f6d8e87ce7f. RSP: 002b:00007f6d8f654178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f6d8e9b3f88 RCX: 00007f6d8e87cea9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f6d8e9b3f88 RBP: 00007f6d8e9b3f80 R08: 00007f6d8f6546c0 R09: 00007f6d8f6546c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6d8e9b3f8c R13: 000000000000004d R14: 00007fff6c631a00 R15: 00007fff6c631ae8 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:ffffc9001437fa00 EFLAGS: 00010246 RAX: 0000000000000038 RBX: 0000000000000000 RCX: 8d8cda34abd10f00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffffff8bd43600 R08: ffffffff817376a9 R09: fffffbfff1c39b10 R10: dffffc0000000000 R11: fffffbfff1c39b10 R12: ffff8880225df400 R13: dffffc0000000000 R14: ffff88807c92e580 R15: 0000000000000005 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d8f633d58 CR3: 000000007826e000 CR4: 00000000003506f0