* + mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch added to -mm tree
@ 2022-04-12 19:51 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-12 19:51 UTC (permalink / raw)
To: mm-commits, willy, rppt, axelrasmussen, akpm
The patch titled
Subject: mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2
has been added to the -mm tree. Its filename is
mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Axel Rasmussen <axelrasmussen@google.com>
Subject: mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2
return EINVAL
Link: https://lkml.kernel.org/r/20220412193023.279320-1-axelrasmussen@google.com
Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
--- a/mm/secretmem.c~mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2
+++ a/mm/secretmem.c
@@ -165,7 +165,7 @@ static int secretmem_setattr(struct user
unsigned int ia_valid = iattr->ia_valid;
if ((ia_valid & ATTR_SIZE) && inode->i_size)
- return -EOPNOTSUPP;
+ return -EINVAL;
return simple_setattr(mnt_userns, dentry, iattr);
}
_
Patches currently in -mm which might be from axelrasmussen@google.com are
mm-secretmem-fix-panic-when-growing-a-memfd_secret.patch
mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-12 19:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 19:51 + mm-secretmem-fix-panic-when-growing-a-memfd_secret-v2.patch added to -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).