diff options
author | Ryusuke Konishi <[email protected]> | 2022-10-02 12:08:04 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-10-11 19:05:45 -0700 |
commit | 21a87d88c2253350e115029f14fe2a10a7e6c856 (patch) | |
tree | 9462cceadbe4c3ab0016217057cec111cf86e75d /drivers/fpga/fpga-mgr.c | |
parent | d325dc6eb763c10f591c239550b8c7e5466a5d09 (diff) |
nilfs2: fix NULL pointer dereference at nilfs_bmap_lookup_at_level()
If the i_mode field in inode of metadata files is corrupted on disk, it
can cause the initialization of bmap structure, which should have been
called from nilfs_read_inode_common(), not to be called. This causes a
lockdep warning followed by a NULL pointer dereference at
nilfs_bmap_lookup_at_level().
This patch fixes these issues by adding a missing sanitiy check for the
i_mode field of metadata file's inode.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryusuke Konishi <[email protected]>
Reported-by: [email protected]
Reported-by: Tetsuo Handa <[email protected]>
Tested-by: Ryusuke Konishi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions