From: asmadeus@codewreck.org
To: Christian Schoenebeck <linux_oss@crudebyte.com>
Cc: ericvh@kernel.org, linux-kernel@vger.kernel.org,
lucho@ionkov.net, syzkaller-bugs@googlegroups.com,
v9fs@lists.linux.dev,
syzbot <syzbot+5b667f9a1fee4ba3775a@syzkaller.appspotmail.com>
Subject: Re: [syzbot] [v9fs?] general protection fault in p9_client_walk
Date: Wed, 12 Mar 2025 21:13:37 +0900 [thread overview]
Message-ID: <Z9F6cakkpF26_KJu@codewreck.org> (raw)
In-Reply-To: <34836920.9mNPFRc1x4@silver>
Christian Schoenebeck wrote on Wed, Mar 12, 2025 at 10:36:15AM +0100:
> > RIP: 0010:p9_client_walk+0x9a/0x530 net/9p/client.c:1165
> > clone_fid fs/9p/fid.h:23 [inline]
> > v9fs_fid_xattr_set+0x119/0x2d0 fs/9p/xattr.c:121
> > v9fs_set_acl+0xe6/0x150 fs/9p/acl.c:276
> > v9fs_set_create_acl+0x4b/0x70 fs/9p/acl.c:306
> > v9fs_vfs_mkdir_dotl+0x517/0x6e0 fs/9p/vfs_inode_dotl.c:411
> > vfs_mkdir+0x57d/0x860 fs/namei.c:4313
> > do_mkdirat+0x301/0x3a0 fs/namei.c:4336
> > __do_sys_mkdir fs/namei.c:4356 [inline]
> > __se_sys_mkdir fs/namei.c:4354 [inline]
> > __x64_sys_mkdir+0xef/0x140 fs/namei.c:4354
> > do_syscall_x64 arch/x86/entry/common.c:52 [inline]
> > do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
> > entry_SYSCALL_64_after_hwframe+0x77/0x7f
>
> Just had a glimpse on it so far. IIUIC the trigger is in
> v9fs_vfs_mkdir_dotl() [fs/9p/vfs_inode_dotl.c:411] ?
>
> // NULLs out fid (since dafbe6897)
> v9fs_fid_add(dentry, &fid);
> // expects fid being non-NULL
> v9fs_set_create_acl(inode, fid, dacl, pacl);
Sounds about right, inverting the two calls probably makes sense?
OTOH I don't get why all mkdirs don't hit that.. ah, it's only a problem
if the parent directory has some ACL and none of our tests hit that :/
Well, it shouldn't be too hard to trigger & fix anyway, since you've
done this much want to send the patch?
Thanks,
--
Dominique Martinet | Asmadeus
next prev parent reply other threads:[~2025-03-12 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 9:39 [syzbot] [v9fs?] general protection fault in p9_client_walk syzbot
2025-03-12 6:09 ` syzbot
2025-03-12 9:36 ` Christian Schoenebeck
2025-03-12 12:13 ` asmadeus [this message]
2025-03-12 14:25 ` Christian Schoenebeck
2025-03-12 23:46 ` asmadeus
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=Z9F6cakkpF26_KJu@codewreck.org \
--to=asmadeus@codewreck.org \
--cc=ericvh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_oss@crudebyte.com \
--cc=lucho@ionkov.net \
--cc=syzbot+5b667f9a1fee4ba3775a@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=v9fs@lists.linux.dev \
/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