android_kernel_motorola_sm6375/fs/jfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Shaurya Rane d6af7fce2e jfs: fix uninitialized waitqueue in transaction manager
[ Upstream commit 300b072df72694ea330c4c673c035253e07827b8 ]

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: [email protected]

Signed-off-by: Shaurya Rane <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-12-03 12:45:13 +01:00
..
acl.c
file.c jfs: Regular file corruption check 2025-08-28 16:21:28 +02:00
inode.c jfs: Verify inode mode when loading from disk 2025-12-03 12:45:13 +01:00
ioctl.c
jfs_acl.h
jfs_btree.h
jfs_debug.c
jfs_debug.h
jfs_dinode.h
jfs_discard.c jfs: Fix null-ptr-deref in jfs_ioc_trim 2025-06-27 11:02:54 +01:00
jfs_discard.h
jfs_dmap.c jfs: upper bound check of tree index in dbAllocAG 2025-08-28 16:21:28 +02:00
jfs_dmap.h
jfs_dtree.c jfs: fix array-index-out-of-bounds read in add_missing_indices 2025-06-27 11:02:53 +01:00
jfs_dtree.h
jfs_extent.c jfs: validate max amount of blocks before allocation. 2023-09-23 10:59:48 +02:00
jfs_extent.h
jfs_filsys.h
jfs_imap.c jfs: Prevent copying of nlink with value 0 from disk inode 2025-05-02 07:39:10 +02:00
jfs_imap.h
jfs_incore.h
jfs_inode.c
jfs_inode.h
jfs_lock.h
jfs_logmgr.c
jfs_logmgr.h
jfs_metapage.c
jfs_metapage.h
jfs_mount.c jfs: fix uaf in jfs_evict_inode 2024-02-23 08:24:55 +01:00
jfs_superblock.h
jfs_txnmgr.c jfs: fix uninitialized waitqueue in transaction manager 2025-12-03 12:45:13 +01:00
jfs_txnmgr.h
jfs_types.h
jfs_umount.c
jfs_unicode.c
jfs_unicode.h
jfs_uniupr.c
jfs_xattr.h
jfs_xtree.c
jfs_xtree.h
Kconfig
Makefile
namei.c FS: JFS: Fix null-ptr-deref Read in txBegin 2023-08-30 16:27:10 +02:00
resize.c
super.c
symlink.c
xattr.c jfs: fix slab-out-of-bounds read in ea_get() 2025-04-10 14:29:43 +02:00