aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorTaotao Chen <[email protected]>2025-08-22 03:06:59 +0000
committerTvrtko Ursulin <[email protected]>2025-09-23 07:52:15 +0000
commitc1e7254935c0414e7a31737bd357872d1b0f346b (patch)
tree62e309dadd05beb46266b79f75437b00fc40c1e3 /lib/memory-notifier-error-inject.c
parentLinux 6.17-rc7 (diff)
downloadkernel-c1e7254935c0414e7a31737bd357872d1b0f346b.tar.gz
kernel-c1e7254935c0414e7a31737bd357872d1b0f346b.zip
drm/i915: set O_LARGEFILE in __create_shmem()
Without O_LARGEFILE, file->f_op->write_iter calls generic_write_check_limits(), which enforces a 2GB (MAX_NON_LFS) limit, causing -EFBIG on large writes. In shmem_pwrite(), this error is later masked as -EIO due to the error handling order, leading to igt failures like gen9_exec_parse(bb-large). Set O_LARGEFILE in __create_shmem() to prevent -EFBIG on large writes. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-lkp/[email protected] Fixes: 048832a3f400 ("drm/i915: Refactor shmem_pwrite() to use kiocb and write_iter") Signed-off-by: Taotao Chen <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit e296a2266c572a7537e638b0dbbfc66d11df46f9) Signed-off-by: Tvrtko Ursulin <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions