===================================================== BUG: KMSAN: use-after-free in bpf_prog_run_generic_xdp+0x1a74/0x1ff0 net/core/dev.c:5293 bpf_prog_run_generic_xdp+0x1a74/0x1ff0 net/core/dev.c:5293 netif_receive_generic_xdp net/core/dev.c:5376 [inline] do_xdp_generic+0xd52/0x1690 net/core/dev.c:5438 tun_get_user+0x447a/0x6b40 drivers/net/tun.c:1860 tun_chr_write_iter+0x3e9/0x5c0 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: slab_free_hook mm/slub.c:2307 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x252/0xec0 mm/slub.c:4842 tomoyo_realpath_from_path+0x952/0x9f0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1d0/0x7d0 security/tomoyo/file.c:723 tomoyo_file_ioctl+0x3d/0x50 security/tomoyo/tomoyo.c:350 security_file_ioctl+0x141/0x590 security/security.c:2913 __do_sys_ioctl fs/ioctl.c:901 [inline] __se_sys_ioctl+0xbb/0x400 fs/ioctl.c:893 __x64_sys_ioctl+0x97/0xe0 fs/ioctl.c:893 x64_sys_call+0x1ebe/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 6635 Comm: syz.0.15 Not tainted 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 =====================================================