summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-11-21 16:09:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-07 13:12:02 +0300
commit52cdfab923db7d69ea5020b9818fd4e261d39eab (patch)
treeaaafc6f458e55bdc79b0fa051c0001e1e1c9e4fd /ipc
parent1008bbaadca6559f6f67fd9cb2adba80b0a125ab (diff)
downloadlinux-52cdfab923db7d69ea5020b9818fd4e261d39eab.tar.xz
ext4: avoid BUG_ON when creating xattrs
commit b40ebaf63851b3a401b0dc9263843538f64f5ce6 upstream. Commit fb0a387dcdcd ("ext4: limit block allocations for indirect-block files to < 2^32") added code to try to allocate xattr block with 32-bit block number for indirect block based files on the grounds that these files cannot use larger block numbers. It also added BUG_ON when allocated block could not fit into 32 bits. This is however bogus reasoning because xattr block is stored in inode->i_file_acl and inode->i_file_acl_hi and as such even indirect block based files can happily use full 48 bits for xattr block number. The proper handling seems to be there basically since 64-bit block number support was added. So remove the bogus limitation and BUG_ON. Cc: Eric Sandeen <sandeen@redhat.com> Fixes: fb0a387dcdcd ("ext4: limit block allocations for indirect-block files to < 2^32") Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20221121130929.32031-1-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions