===================================================== BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak-after-free in _inline_copy_to_user include/linux/uaccess.h:196 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_user+0xcc/0x120 lib/usercopy.c:26 instrument_copy_to_user include/linux/instrumented.h:114 [inline] _inline_copy_to_user include/linux/uaccess.h:196 [inline] _copy_to_user+0xcc/0x120 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] do_insn_ioctl+0x59c/0x6d0 drivers/comedi/comedi_fops.c:1678 comedi_unlocked_ioctl+0xa5e/0x1f60 drivers/comedi/comedi_fops.c:2303 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0x23c/0x400 fs/ioctl.c:584 __x64_sys_ioctl+0x97/0xe0 fs/ioctl.c:584 x64_sys_call+0x1cbc/0x3e20 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 Uninit was created at: slab_free_hook mm/slub.c:2343 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x252/0xec0 mm/slub.c:4879 tomoyo_path_perm+0x7e2/0x9a0 security/tomoyo/file.c:842 tomoyo_inode_getattr+0x35/0x40 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x172/0x5c0 security/security.c:2377 vfs_getattr fs/stat.c:259 [inline] vfs_fstat fs/stat.c:281 [inline] __do_sys_newfstat fs/stat.c:555 [inline] __se_sys_newfstat+0xd5/0xa70 fs/stat.c:550 __x64_sys_newfstat+0x78/0xb0 fs/stat.c:550 x64_sys_call+0x2efc/0x3e20 arch/x86/include/generated/asm/syscalls_64.h:6 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 Bytes 4-59 of 60 are uninitialized Memory access of size 60 starts at ffff888050d5eb00 Data copied to user address 00002000000003c0 CPU: 0 UID: 0 PID: 6068 Comm: syz.4.24 Not tainted 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT(none) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 =====================================================