Skip to contentSkip to conversation

tmpfs: deny and force are not huge mount options

PATCH Applied Hugh Dickins 2 participants 2 messages Feb 18, 2020

Subsystems (2)
lore
Share & tools
lore

Hugh Dickins

author maintainer
#0 lore raw

PATCH 1/1 tmpfs: deny and force are not huge mount options

5.6-rc1 commit 2710c957a8ef ("fs_parse: get rid of ->enums") regressed the huge tmpfs mount options to an earlier state: "deny" and "force" are not valid there, and can crash the kernel. Delete those lines.

---

 mm/shmem.c |    2 --
 1 file changed, 2 deletions(-)
mm/shmem.c +0 -2
@@ -3386,8 +3386,6 @@ static const struct constant_table shmem
 	{"always",	SHMEM_HUGE_ALWAYS },
 	{"within_size",	SHMEM_HUGE_WITHIN_SIZE },
 	{"advise",	SHMEM_HUGE_ADVISE },
-	{"deny",	SHMEM_HUGE_DENY },
-	{"force",	SHMEM_HUGE_FORCE },
 	{}
 };
 
Applied
#1 lore raw
Quoted 3 lines · Hugh Dickins

5.6-rc1 commit 2710c957a8ef ("fs_parse: get rid of ->enums") regressed the huge tmpfs mount options to an earlier state: "deny" and "force" are not valid there, and can crash the kernel. Delete those lines.

Applied to #fixes, will send to Linus tonight.