summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2025-01-18 00:38:22 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2025-01-21 19:28:16 +0300
commite02938613eb206ebf788e2d3d4fccf534e4ea12e (patch)
treee75636768d2fe60300dfd21376845cc9c37f9965 /scripts/gdb/linux/lists.py
parent5c1768b6725049e1fcfc841924d65f2872413000 (diff)
downloadlinux-e02938613eb206ebf788e2d3d4fccf534e4ea12e.tar.xz
f2fs: avoid trying to get invalid block address
In f2fs_new_inode(), if we fail to get a new inode, we go iput(), followed by f2fs_evict_inode(). If the inode is not marked as bad, it'll try to call f2fs_remove_inode_page() which tries to read the inode block given node id. But, there's no block address allocated yet, which gives a chance to access a wrong block address, if the block device has some garbage data in NAT table. We need to make sure NAT table should have zero data for all the unallocated node ids, but also would be better to take this unnecessary path as well. Let's mark the faild inode as bad. Fixes: 0abd675e97e6 ("f2fs: support plain user/group quota") Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions