===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in copyout lib/iov_iter.c:167 [inline] BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x37d/0x1cf0 lib/iov_iter.c:316 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copyout lib/iov_iter.c:167 [inline] _copy_to_iter+0x37d/0x1cf0 lib/iov_iter.c:316 copy_page_to_iter+0x419/0x870 lib/iov_iter.c:481 copy_folio_to_iter include/linux/uio.h:185 [inline] filemap_read+0xc00/0x14d0 mm/filemap.c:2706 blkdev_read_iter+0x6c0/0x8e0 block/fops.c:734 call_read_iter include/linux/fs.h:1979 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x8fc/0xf50 fs/read_write.c:470 ksys_read+0x20f/0x4c0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x93/0xd0 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was stored to memory at: _copy_to_iter+0xc47/0x1cf0 lib/iov_iter.c:316 copy_page_to_iter+0x419/0x870 lib/iov_iter.c:481 shmem_file_read_iter+0xbf4/0x1420 mm/shmem.c:2811 do_iter_read+0x61e/0x14a0 fs/read_write.c:795 vfs_iter_read+0x8e/0xe0 fs/read_write.c:837 lo_read_simple drivers/block/loop.c:290 [inline] do_req_filebacked drivers/block/loop.c:500 [inline] loop_handle_cmd drivers/block/loop.c:1915 [inline] loop_process_work+0x12e7/0x39d0 drivers/block/loop.c:1950 loop_rootcg_workfn+0x2b/0x30 drivers/block/loop.c:1981 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703 worker_thread+0xf45/0x1490 kernel/workqueue.c:2784 kthread+0x3e8/0x540 kernel/kthread.c:388 ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Uninit was stored to memory at: memcpy_from_iter lib/iov_iter.c:380 [inline] copy_page_from_iter_atomic+0x117b/0x2680 lib/iov_iter.c:590 generic_perform_write+0x4ae/0xc40 mm/filemap.c:3953 shmem_file_write_iter+0x2b5/0x2e0 mm/shmem.c:2865 do_iter_write+0x60c/0x1420 fs/read_write.c:860 vfs_iter_write+0x8e/0xe0 fs/read_write.c:901 lo_write_bvec drivers/block/loop.c:249 [inline] lo_write_simple drivers/block/loop.c:271 [inline] do_req_filebacked drivers/block/loop.c:495 [inline] loop_handle_cmd drivers/block/loop.c:1915 [inline] loop_process_work+0x20c3/0x39d0 drivers/block/loop.c:1950 loop_workfn+0x48/0x60 drivers/block/loop.c:1974 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703 worker_thread+0xf45/0x1490 kernel/workqueue.c:2784 kthread+0x3e8/0x540 kernel/kthread.c:388 ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Uninit was stored to memory at: copy_to_dinode+0x8aa/0xb60 fs/jfs/jfs_imap.c:3149 diWrite+0x1bf0/0x1f00 fs/jfs/jfs_imap.c:787 txCommit+0xe52/0x8f30 fs/jfs/jfs_txnmgr.c:1255 __jfs_xattr_set+0x1b3/0x1f0 fs/jfs/xattr.c:919 jfs_xattr_set+0x79/0x90 fs/jfs/xattr.c:941 __vfs_setxattr+0x7aa/0x8b0 fs/xattr.c:201 __vfs_setxattr_noperm+0x24f/0xa30 fs/xattr.c:235 __vfs_setxattr_locked+0x441/0x480 fs/xattr.c:296 vfs_setxattr+0x294/0x650 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x45f/0x540 fs/xattr.c:653 path_setxattr+0x1f5/0x3c0 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __ia32_sys_lsetxattr+0xed/0x170 fs/xattr.c:691 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was stored to memory at: ea_put fs/jfs/xattr.c:637 [inline] __jfs_setxattr+0x185b/0x1ad0 fs/jfs/xattr.c:783 __jfs_xattr_set+0xe6/0x1f0 fs/jfs/xattr.c:917 jfs_xattr_set+0x79/0x90 fs/jfs/xattr.c:941 __vfs_setxattr+0x7aa/0x8b0 fs/xattr.c:201 __vfs_setxattr_noperm+0x24f/0xa30 fs/xattr.c:235 __vfs_setxattr_locked+0x441/0x480 fs/xattr.c:296 vfs_setxattr+0x294/0x650 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x45f/0x540 fs/xattr.c:653 path_setxattr+0x1f5/0x3c0 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __ia32_sys_lsetxattr+0xed/0x170 fs/xattr.c:691 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Local variable ea_buf created at: __jfs_setxattr+0x5d/0x1ad0 fs/jfs/xattr.c:660 __jfs_xattr_set+0xe6/0x1f0 fs/jfs/xattr.c:917 Bytes 2153-2155 of 4096 are uninitialized Memory access of size 4096 starts at ffff88809c65b000 Data copied to user address 000055b712f84668 CPU: 1 PID: 5517 Comm: udevd Not tainted 6.5.0-syzkaller-11191-g6e32dfcccfcc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 =====================================================