Re: [PATCH] hfs: fix to initialize fields of hfs_inode_info after hfs_alloc_inode()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 16 Jun 2024 09:38:41 +0800, Chao Yu wrote:
> Syzbot reports uninitialized value access issue as below:
> 
> loop0: detected capacity change from 0 to 64
> =====================================================
> BUG: KMSAN: uninit-value in hfs_revalidate_dentry+0x307/0x3f0 fs/hfs/sysdep.c:30
>  hfs_revalidate_dentry+0x307/0x3f0 fs/hfs/sysdep.c:30
>  d_revalidate fs/namei.c:862 [inline]
>  lookup_fast+0x89e/0x8e0 fs/namei.c:1649
>  walk_component fs/namei.c:2001 [inline]
>  link_path_walk+0x817/0x1480 fs/namei.c:2332
>  path_lookupat+0xd9/0x6f0 fs/namei.c:2485
>  filename_lookup+0x22e/0x740 fs/namei.c:2515
>  user_path_at_empty+0x8b/0x390 fs/namei.c:2924
>  user_path_at include/linux/namei.h:57 [inline]
>  do_mount fs/namespace.c:3689 [inline]
>  __do_sys_mount fs/namespace.c:3898 [inline]
>  __se_sys_mount+0x66b/0x810 fs/namespace.c:3875
>  __x64_sys_mount+0xe4/0x140 fs/namespace.c:3875
>  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+0x63/0x6b
> 
> [...]

Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] hfs: fix to initialize fields of hfs_inode_info after hfs_alloc_inode()
      https://git.kernel.org/vfs/vfs/c/849b386e2876




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux