===================================================== BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak-after-free in copy_to_user_iter lib/iov_iter.c:24 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_ubuf include/linux/iov_iter.h:29 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance2 include/linux/iov_iter.h:245 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_iter+0x366/0x24b0 lib/iov_iter.c:185 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copy_to_user_iter lib/iov_iter.c:24 [inline] iterate_ubuf include/linux/iov_iter.h:29 [inline] iterate_and_advance2 include/linux/iov_iter.h:245 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] _copy_to_iter+0x366/0x24b0 lib/iov_iter.c:185 copy_page_to_iter+0x419/0x880 lib/iov_iter.c:362 copy_folio_to_iter include/linux/uio.h:180 [inline] filemap_read+0xc16/0x1500 mm/filemap.c:2652 blkdev_read_iter+0x6c0/0x8e0 block/fops.c:749 call_read_iter include/linux/fs.h:2114 [inline] new_sync_read fs/read_write.c:395 [inline] vfs_read+0xda3/0xef0 fs/read_write.c:476 ksys_read+0x20f/0x4c0 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x93/0xe0 fs/read_write.c:627 x64_sys_call+0x304d/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: memcpy_to_iter lib/iov_iter.c:65 [inline] iterate_bvec include/linux/iov_iter.h:122 [inline] iterate_and_advance2 include/linux/iov_iter.h:249 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] _copy_to_iter+0xe45/0x24b0 lib/iov_iter.c:185 copy_page_to_iter+0x419/0x880 lib/iov_iter.c:362 shmem_file_read_iter+0xa0a/0x12b0 mm/shmem.c:2866 do_iter_readv_writev+0x7e6/0x960 vfs_iter_read+0x279/0x700 fs/read_write.c:830 lo_read_simple drivers/block/loop.c:286 [inline] do_req_filebacked drivers/block/loop.c:496 [inline] loop_handle_cmd drivers/block/loop.c:1907 [inline] loop_process_work+0x2053/0x3440 drivers/block/loop.c:1942 loop_rootcg_workfn+0x2b/0x40 drivers/block/loop.c:1973 process_one_work kernel/workqueue.c:3267 [inline] process_scheduled_works+0xa81/0x1bd0 kernel/workqueue.c:3348 worker_thread+0xea5/0x1560 kernel/workqueue.c:3429 kthread+0x3e2/0x540 kernel/kthread.c:389 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Uninit was stored to memory at: memcpy_from_iter lib/iov_iter.c:73 [inline] iterate_bvec include/linux/iov_iter.h:122 [inline] iterate_and_advance2 include/linux/iov_iter.h:249 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:249 [inline] copy_page_from_iter_atomic+0x12b7/0x2ae0 lib/iov_iter.c:481 generic_perform_write+0x4c1/0xc60 mm/filemap.c:3982 shmem_file_write_iter+0x2bd/0x2f0 mm/shmem.c:2920 do_iter_readv_writev+0x7e6/0x960 vfs_iter_write+0x459/0xd00 fs/read_write.c:895 lo_write_bvec drivers/block/loop.c:246 [inline] lo_write_simple drivers/block/loop.c:267 [inline] do_req_filebacked drivers/block/loop.c:491 [inline] loop_handle_cmd drivers/block/loop.c:1907 [inline] loop_process_work+0x1502/0x3440 drivers/block/loop.c:1942 loop_rootcg_workfn+0x2b/0x40 drivers/block/loop.c:1973 process_one_work kernel/workqueue.c:3267 [inline] process_scheduled_works+0xa81/0x1bd0 kernel/workqueue.c:3348 worker_thread+0xea5/0x1560 kernel/workqueue.c:3429 kthread+0x3e2/0x540 kernel/kthread.c:389 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Uninit was created at: slab_free_hook mm/slub.c:2083 [inline] slab_free mm/slub.c:4353 [inline] kfree+0x20f/0xa60 mm/slub.c:4463 free_rb_tree_fname fs/ext4/dir.c:426 [inline] ext4_htree_free_dir_info fs/ext4/dir.c:448 [inline] ext4_release_dir+0x193/0x2d0 fs/ext4/dir.c:638 __fput+0x6a1/0x10c0 fs/file_table.c:422 __fput_sync+0x74/0x90 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close+0x290/0x4d0 fs/open.c:1541 __x64_sys_close+0x48/0x60 fs/open.c:1541 x64_sys_call+0x2c48/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:4 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Bytes 512-767 of 1024 are uninitialized Memory access of size 1024 starts at ffff8881162e9000 Data copied to user address 000055b7455f6038 CPU: 0 PID: 5053 Comm: udevd Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 =====================================================