Skip to contentSkip to conversation

tmpfs-ensure-o_largefile-with-generic_file_open.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Nov 9, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: tmpfs: ensure O_LARGEFILE with generic_file_open()
has been removed from the -mm tree. Its filename was
tmpfs-ensure-o_largefile-with-generic_file_open.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Thomas Weißschuh <[email protected]>
Subject: tmpfs: ensure O_LARGEFILE with generic_file_open()
Date: Wed, 28 Sep 2022 12:45:35 +0200

Without this check open() will open large files on tmpfs although O_LARGEFILE was not specified. This is inconsistent with other filesystems. Also it will later result in EOVERFLOW on stat() or EFBIG on write().

---

 mm/shmem.c |    1 +
 1 file changed, 1 insertion(+)
mm/shmem.c renamed from mm/shmem.c~tmpfs-ensure-o_largefile-with-generic_file_open +1 -0
@@ -3902,6 +3902,7 @@ EXPORT_SYMBOL(shmem_aops);
 
 static const struct file_operations shmem_file_operations = {
 	.mmap		= shmem_mmap,
+	.open		= generic_file_open,
 	.get_unmapped_area = shmem_get_unmapped_area,
 #ifdef CONFIG_TMPFS
 	.llseek		= shmem_file_llseek,

_

Patches currently in -mm which might be from [email protected] are