diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-01-27 16:41:05 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-01-27 16:41:05 -0500 |
commit | 865221f5aa31bfed1cc06da5815399c9d6c7ef90 (patch) | |
tree | e24fa5cf64ac6d7bb62fc747ae73a44db8115116 | |
parent | b3f288ed9fbb1b12c67fd00860f286a800427125 (diff) | |
download | e2fsprogs-865221f5aa31bfed1cc06da5815399c9d6c7ef90.tar.gz |
e2fsck: declare the size of bh->b_data to be 4096 in jfs_user.h
When allocating buffer_heads in e2fsck and debugfs the actual size of
the memory which is requested is based on the file system block size.
So the actual size of b_data in struct buffer_head doesn't actually
matter, except that it can triggers a UBSAN error when running the
e2fsck regression test. So change it to be 4096 to avoid this false
positive.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | e2fsck/jfs_user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/jfs_user.h b/e2fsck/jfs_user.h index a1c6951cb..f07335595 100644 --- a/e2fsck/jfs_user.h +++ b/e2fsck/jfs_user.h @@ -51,7 +51,7 @@ struct buffer_head { unsigned int b_dirty:1; unsigned int b_uptodate:1; unsigned long long b_blocknr; - char b_data[1024]; + char b_data[4096]; }; struct inode { |