diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-11-10 00:06:06 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 22:58:23 +0300 |
commit | 4b04646caed5449ca97b909bbadca0a7a2762159 (patch) | |
tree | 5cd1ce53053440538719de2a4e410b0409806326 /tools/tracing | |
parent | 808441943f6b817f4836752c6e0d1c07507f375e (diff) | |
download | linux-4b04646caed5449ca97b909bbadca0a7a2762159.tar.xz |
buffer: fix various functions for block size > PAGE_SIZE
If i_blkbits is larger than PAGE_SHIFT, we shift by a negative number,
which is undefined. It is safe to shift the block left as a block device
must be smaller than MAX_LFS_FILESIZE, which is guaranteed to fit in
loff_t.
Link: https://lkml.kernel.org/r/20231109210608.2252323-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/tracing')
0 files changed, 0 insertions, 0 deletions