------------[ cut here ]------------ kernel BUG at mm/swap_cgroup.c:78! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 23091 Comm: syz.8.3541 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:swap_cgroup_record+0x19c/0x1c0 mm/swap_cgroup.c:78 Code: 02 e9 6d ff ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 35 ff ff ff 4c 89 f7 e8 ff 79 f6 ff e9 28 ff ff ff e8 55 a9 8f ff 90 <0f> 0b e8 4d a9 8f ff 4c 89 f7 48 c7 c6 60 f7 98 8b e8 0e b9 f6 fe RSP: 0018:ffffc9000453d140 EFLAGS: 00010093 RAX: ffffffff8231516b RBX: 00000000000061e1 RCX: ffff8880310cbc80 RDX: 0000000000000000 RSI: 000000000000000e RDI: 0000000000000000 RBP: 000000000000000e R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520008a7a18 R12: dffffc0000000000 R13: 0000000000000000 R14: ffffc9000b23c000 R15: 000000000000000e FS: 00007fdb1965b6c0(0000) GS:ffff888125abb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fde434a5000 CR3: 000000002ebca000 CR4: 00000000003526f0 Call Trace: memcg1_swapout+0x2fa/0x830 mm/memcontrol-v1.c:645 __remove_mapping+0xac5/0xe30 mm/vmscan.c:764 shrink_folio_list+0x28a8/0x5200 mm/vmscan.c:1523 evict_folios+0x473e/0x57f0 mm/vmscan.c:4729 try_to_shrink_lruvec+0x8be/0xb60 mm/vmscan.c:4892 lru_gen_shrink_lruvec mm/vmscan.c:5041 [inline] shrink_lruvec+0x4a3/0x2a40 mm/vmscan.c:5802 shrink_node_memcgs mm/vmscan.c:6038 [inline] shrink_node+0xa38/0x3720 mm/vmscan.c:6079 shrink_zones mm/vmscan.c:6318 [inline] do_try_to_free_pages+0x668/0x18a0 mm/vmscan.c:6380 try_to_free_mem_cgroup_pages+0x2b6/0x730 mm/vmscan.c:6701 try_charge_memcg+0xa2d/0x1280 mm/memcontrol.c:2414 try_charge mm/memcontrol.c:2556 [inline] charge_memcg+0x9f/0x180 mm/memcontrol.c:4732 __mem_cgroup_charge+0x25/0x80 mm/memcontrol.c:4749 mem_cgroup_charge include/linux/memcontrol.h:665 [inline] shmem_alloc_and_add_folio+0x790/0xf40 mm/shmem.c:1954 shmem_get_folio_gfp+0x59d/0x1660 mm/shmem.c:2539 shmem_get_folio mm/shmem.c:2645 [inline] shmem_write_begin+0x16c/0x330 mm/shmem.c:3298 generic_perform_write+0x2c5/0x900 mm/filemap.c:4314 shmem_file_write_iter+0xf8/0x120 mm/shmem.c:3473 __kernel_write_iter+0x428/0x910 fs/read_write.c:619 dump_emit_page fs/coredump.c:1298 [inline] dump_user_range+0x8a0/0xc90 fs/coredump.c:1372 elf_core_dump+0x3369/0x3960 fs/binfmt_elf.c:2111 coredump_write+0x1121/0x18b0 fs/coredump.c:1049 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x3321/0x3e60 fs/coredump.c:1200 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop kernel/entry/common.c:75 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:270 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:339 [inline] irqentry_exit+0x178/0x670 kernel/entry/common.c:196 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x77 Code: Unable to access opcode bytes at 0x4d. RSP: 002b:0000200000000388 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fdb189e6090 RCX: 00007fdb1878f749 RDX: 0000000000000000 RSI: 0000200000000380 RDI: 0000000000000080 RBP: 00007fdb18813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 00007fdb189e6128 R14: 00007fdb189e6090 R15: 00007ffe19cf1cc8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:swap_cgroup_record+0x19c/0x1c0 mm/swap_cgroup.c:78 Code: 02 e9 6d ff ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 35 ff ff ff 4c 89 f7 e8 ff 79 f6 ff e9 28 ff ff ff e8 55 a9 8f ff 90 <0f> 0b e8 4d a9 8f ff 4c 89 f7 48 c7 c6 60 f7 98 8b e8 0e b9 f6 fe RSP: 0018:ffffc9000453d140 EFLAGS: 00010093 RAX: ffffffff8231516b RBX: 00000000000061e1 RCX: ffff8880310cbc80 RDX: 0000000000000000 RSI: 000000000000000e RDI: 0000000000000000 RBP: 000000000000000e R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520008a7a18 R12: dffffc0000000000 R13: 0000000000000000 R14: ffffc9000b23c000 R15: 000000000000000e FS: 00007fdb1965b6c0(0000) GS:ffff888125abb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000004d CR3: 000000002ebca000 CR4: 00000000003526f0