]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
FS: JFS: Check for read-only mounted filesystem in txBegin
authorImmad Mir <mirimmad17@gmail.com>
Fri, 23 Jun 2023 13:47:08 +0000 (19:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:35:10 +0000 (16:35 +0200)
commita88efca805bea93cea9187dfd00835aa7093bf1b
tree78f65c229243bfd121ea412fccdfd3507fe5db22
parenta7225e9e09519deb7e0c42eb6070029cc456e84d
FS: JFS: Check for read-only mounted filesystem in txBegin

[ Upstream commit 95e2b352c03b0a86c5717ba1d24ea20969abcacc ]

 This patch adds a check for read-only mounted filesystem
 in txBegin before starting a transaction potentially saving
 from NULL pointer deref.

Signed-off-by: Immad Mir <mirimmad17@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jfs/jfs_txnmgr.c