On 2024/3/8 18:12, Zhiguo Niu wrote:
add_bio_entry should not trigger system panic when bio_add_page fail,
fix to remove it.
Fixes: 0b20fcec8651 ("f2fs: cache global IPU bio")
Signed-off-by: Zhiguo Niu
---
fs/f2fs/data.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff
On 2024/3/8 14:25, Zhiguo Niu wrote:
There are some cases of f2fs_is_valid_blkaddr not handled as
ERROR_INVALID_BLKADDR,so unify the error handling about all of
f2fs_is_valid_blkaddr.
Do f2fs_handle_error in __f2fs_is_valid_blkaddr for cleanup.
Signed-off-by: Zhiguo Niu
Signed-off-by: Chao Yu
https://bugzilla.kernel.org/show_bug.cgi?id=218349
--- Comment #3 from Chao Yu (c...@kernel.org) ---
(In reply to Kane Ch'in from comment #2)
> That works! Thank you for your efforts.
Thank you for the confirmation!
I found above link is expired, let me attach the lore one for who wants check
https://bugzilla.kernel.org/show_bug.cgi?id=218349
Kane Ch'in (qinfd2...@lzu.edu.cn) changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
From: Roman Smirnov
> Sent: 05 March 2024 08:10
>
> Cast expression type to unsigned long in __count_extent_cache()
> to prevent integer overflow.
>
> Found by Linux Verification Center (linuxtesting.org) with Svace.
Another broken analysis tool :-)
> Signed-off-by: Roman Smirnov
>