From: syzbot <syzbot+03fb58296859d8dbab4d@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] Re: [syzbot] [v9fs?] WARNING in __alloc_frozen_pages_noprof
Date: Wed, 11 Dec 2024 13:04:21 -0800 [thread overview]
Message-ID: <6759fe55.050a0220.1ac542.0011.GAE@google.com> (raw)
In-Reply-To: <675963eb.050a0220.17f54a.0038.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [v9fs?] WARNING in __alloc_frozen_pages_noprof
Author: leocstone@gmail.com
#syz test
diff --git a/fs/9p/acl.c b/fs/9p/acl.c
index eed551d8555f..1b9681d58f8d 100644
--- a/fs/9p/acl.c
+++ b/fs/9p/acl.c
@@ -28,6 +28,8 @@ static struct posix_acl *v9fs_fid_get_acl(struct p9_fid *fid, const char *name)
return ERR_PTR(size);
if (size == 0)
return ERR_PTR(-ENODATA);
+ if (size > KMALLOC_MAX_SIZE)
+ return ERR_PTR(-ERANGE);
value = kzalloc(size, GFP_NOFS);
if (!value)
next prev parent reply other threads:[~2024-12-11 21:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 10:05 [syzbot] [v9fs?] WARNING in __alloc_frozen_pages_noprof syzbot
2024-12-11 20:02 ` Leo Stone
2024-12-11 20:28 ` [syzbot] [v9fs?] " syzbot
2024-12-11 21:04 ` Alloc cap limit for 9p xattrs (Was: WARNING in __alloc_frozen_pages_noprof) asmadeus
2024-12-11 21:32 ` Linus Torvalds
2024-12-11 22:55 ` Al Viro
2024-12-12 10:17 ` Christian Schoenebeck
2024-12-12 11:22 ` Christian Schoenebeck
2024-12-11 21:04 ` syzbot [this message]
2024-12-12 0:20 ` [PATCH] 9p: Limit xattr size to XATTR_SIZE_MAX Leo Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6759fe55.050a0220.1ac542.0011.GAE@google.com \
--to=syzbot+03fb58296859d8dbab4d@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox