An error occurred while fetching folder content.
io_uring: honor original task RLIMIT_FSIZE
Jens Axboe authored
commit 4ed734b0

 upstream.

With the previous fixes for number of files open checking, I added some
debug code to see if we had other spots where we're checking rlimit()
against the async io-wq workers. The only one I found was file size
checking, which we should also honor.

During write and fallocate prep, store the max file size and override
that for the current ask if we're in io-wq worker context.

Cc: stable@vger.kernel.org # 5.1+
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
04a9f660
Name Last commit Last update
..
9p Merge tag '9p-for-5.4' of git://github.com/martinetd/linux
adfs fs/adfs: bigdir: Fix an error code in adfs_fplus_read()
affs affs: fix a memory leak in affs_remount
afs afs: Fix unpinned address list during probing
autofs Merge branch 'next.autofs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
befs fs: Fill in max and min timestamps in superblock
bfs fs: Fill in max and min timestamps in superblock
btrfs btrfs: use nofs allocations for running delayed items
cachefiles cachefiles: drop direct usage of ->bmap method.
ceph ceph: fix memory leak in ceph_cleanup_snapid_map()
cifs CIFS: check new file size when extending file by fallocate
coda Merge tag 'y2038-vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground
configfs utimes: Clamp the timestamps in notify_change()
cramfs cramfs: switch to use of errofc() et.al.
crypto fscrypt: don't evict dirty inodes after removing key
debugfs debugfs: Check module state before warning in {full/open}_proxy_open()
devpts devpts_pty_kill(): don't bother with d_delete()
dlm dlm: use SO_SNDTIMEO_NEW instead of SO_SNDTIMEO_OLD
ecryptfs Merge tag 'ecryptfs-5.6-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs
efivarfs Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
efs fs: Fill in max and min timestamps in superblock
erofs erofs: correct the remaining shrink objects
exportfs exportfs_decode_fh(): negative pinned may become positive without the parent locked
ext2 Merge tag 'dax-fixes-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
ext4 ext4: potential crash on allocation error in ext4_alloc_flex_bg_array()
f2fs
fat
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hugetlbfs
iomap
isofs
jbd2
jffs2
jfs
kernfs
lockd
minix
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ocfs2
omfs
openpromfs
orangefs
overlayfs
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs
zonefs
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
coredump.c
d_path.c
dax.c
dcache.c
dcookies.c