===================================================== BUG: KMSAN: kernel-infoleak in kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:249 CPU: 0 PID: 25230 Comm: syz-executor.5 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121 kmsan_internal_check_memory+0x469/0x500 mm/kmsan/kmsan.c:433 kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:249 instrument_copy_to_user include/linux/instrumented.h:121 [inline] _copy_to_user+0x1ac/0x270 lib/usercopy.c:33 copy_to_user include/linux/uaccess.h:209 [inline] i2cdev_read+0x23d/0x350 drivers/i2c/i2c-dev.c:153 do_loop_readv_writev fs/read_write.c:761 [inline] do_iter_read+0x6a7/0x1100 fs/read_write.c:803 vfs_readv fs/read_write.c:921 [inline] do_preadv+0x454/0x6a0 fs/read_write.c:1013 __do_compat_sys_preadv fs/read_write.c:1119 [inline] __se_compat_sys_preadv+0xef/0x100 fs/read_write.c:1113 __ia32_compat_sys_preadv+0x62/0x80 fs/read_write.c:1113 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f4a549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f55445fc EFLAGS: 00000296 ORIG_RAX: 000000000000014d RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000200 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:103 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] slab_alloc mm/slub.c:2931 [inline] __kmalloc+0x387/0x550 mm/slub.c:4068 kmalloc include/linux/slab.h:559 [inline] i2cdev_read+0x128/0x350 drivers/i2c/i2c-dev.c:144 do_loop_readv_writev fs/read_write.c:761 [inline] do_iter_read+0x6a7/0x1100 fs/read_write.c:803 vfs_readv fs/read_write.c:921 [inline] do_preadv+0x454/0x6a0 fs/read_write.c:1013 __do_compat_sys_preadv fs/read_write.c:1119 [inline] __se_compat_sys_preadv+0xef/0x100 fs/read_write.c:1113 __ia32_compat_sys_preadv+0x62/0x80 fs/read_write.c:1113 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Bytes 0-8191 of 8192 are uninitialized Memory access of size 8192 starts at ffff88816568c000 Data copied to user address 00000000200000c0 =====================================================