mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr.patch added to -mm tree
@ 2012-03-27 22:49 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-03-27 22:49 UTC (permalink / raw)
  To: mm-commits; +Cc: davej, viro


The patch titled
     Subject: fs/xattr.c: suppress page allocation failure warnings from sys_listxattr()
has been added to the -mm tree.  Its filename is
     fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr.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/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Dave Jones <davej@redhat.com>
Subject: fs/xattr.c: suppress page allocation failure warnings from sys_listxattr()

This size is user controllable, up to a maximum of XATTR_LIST_MAX (64k). 
So it's trivial for someone to trigger a stream of order:4 page allocation
errors.

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/xattr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/xattr.c~fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr fs/xattr.c
--- a/fs/xattr.c~fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr
+++ a/fs/xattr.c
@@ -496,7 +496,7 @@ listxattr(struct dentry *d, char __user 
 	if (size) {
 		if (size > XATTR_LIST_MAX)
 			size = XATTR_LIST_MAX;
-		klist = kmalloc(size, GFP_KERNEL);
+		klist = kmalloc(size, __GFP_NOWARN | GFP_KERNEL);
 		if (!klist)
 			return -ENOMEM;
 	}
_
Subject: Subject: fs/xattr.c: suppress page allocation failure warnings from sys_listxattr()

Patches currently in -mm which might be from davej@redhat.com are

origin.patch
linux-next.patch
fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-27 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27 22:49 + fs-xattrc-suppress-page-allocation-failure-warnings-from-sys_listxattr.patch added to -mm tree akpm

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).