summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2026-04-09 21:30:13 +0800
committerJens Axboe <axboe@kernel.dk>2026-04-09 19:08:35 -0600
commit23b3b6f0b584b70a427d5bb826d320151890d7da (patch)
treef6050b704c280daa5d978cb29cf5bf161cb4816c /scripts/stackusage
parentd0cc5f585f8b140cbab326f0e44f966aab52f2c8 (diff)
ublk: widen ublk_shmem_buf_reg.len to __u64 for 4GB buffer support
The __u32 len field cannot represent a 4GB buffer (0x100000000 overflows to 0). Change it to __u64 so buffers up to 4GB can be registered. Add a reserved field for alignment and validate it is zero. The kernel enforces a default max of 4GB (UBLK_SHMEM_BUF_SIZE_MAX) which may be increased in future. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Link: https://patch.msgid.link/20260409133020.3780098-2-tom.leiming@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions