diff options
author | Shaurya Rane <ssrane_b23@ee.vjti.ac.in> | 2025-08-25 01:43:32 +0530 |
---|---|---|
committer | Dave Kleikamp <dave.kleikamp@oracle.com> | 2025-09-18 09:08:11 -0500 |
commit | 300b072df72694ea330c4c673c035253e07827b8 (patch) | |
tree | 5ccc172a42008c9f8ed3b5dceeea9f1d3272c478 /scripts/patch-kernel | |
parent | 7a5aa54fba2bd591b22b9b624e6baa9037276986 (diff) |
jfs: fix uninitialized waitqueue in transaction manager
The transaction manager initialization in txInit() was not properly
initializing TxBlock[0].waitor waitqueue, causing a crash when
txEnd(0) is called on read-only filesystems.
When a filesystem is mounted read-only, txBegin() returns tid=0 to
indicate no transaction. However, txEnd(0) still gets called and
tries to access TxBlock[0].waitor via tid_to_tblock(0), but this
waitqueue was never initialized because the initialization loop
started at index 1 instead of 0.
This causes a 'non-static key' lockdep warning and system crash:
INFO: trying to register non-static key in txEnd
Fix by ensuring all transaction blocks including TxBlock[0] have
their waitqueues properly initialized during txInit().
Reported-by: syzbot+c4f3462d8b2ad7977bea@syzkaller.appspotmail.com
Signed-off-by: Shaurya Rane <ssrane_b23@ee.vjti.ac.in>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions