[PATCH master] fs: smhfs: fix crash when stat'ing file
Sascha Hauer
s.hauer at pengutronix.de
Thu Mar 27 00:37:08 PDT 2025
On Wed, 26 Mar 2025 17:59:49 +0100, Ahmad Fatoum wrote:
> Starting with commit 7d91d564361e ("fs: replace FILE.size by f_inode.i_size"),
> struct file no longer had a size member, but instead the inode's i_size
> member is used. The inode is populated by the file system core when a
> file is first opened.
>
> However, the semihosting file system creates a fake struct file to pass
> to smhfs_open, which duly fails, because the inode member is
> uninitialized.
>
> [...]
Applied, thanks!
[1/1] fs: smhfs: fix crash when stat'ing file
https://git.pengutronix.de/cgit/barebox/commit/?id=3c57263db03b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list