From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1832C6FA8B for ; Mon, 19 Sep 2022 23:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbiISXlI (ORCPT ); Mon, 19 Sep 2022 19:41:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiISXlG (ORCPT ); Mon, 19 Sep 2022 19:41:06 -0400 Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098BFB480; Mon, 19 Sep 2022 16:41:03 -0700 (PDT) Received: by mail.hallyn.com (Postfix, from userid 1001) id 1EB661012; Mon, 19 Sep 2022 18:41:02 -0500 (CDT) Date: Mon, 19 Sep 2022 18:41:02 -0500 From: "Serge E. Hallyn" To: Christian Brauner Cc: Tetsuo Handa , linux-fsdevel , Alexander Viro , linux-security-module@vger.kernel.org, syzbot , syzkaller-bugs@googlegroups.com, Seth Forshee Subject: Re: [PATCH (urgent)] vfs: fix uninitialized uid/gid in chown_common() Message-ID: <20220919234102.GA21118@mail.hallyn.com> References: <00000000000008058305e9033f85@google.com> <3411f396-a41e-76cb-7836-941fbade81dc@I-love.SAKURA.ne.jp> <20220919151220.htzmyesqt24xr26o@wittgenstein> <20220919151414.excah6gywyposvfj@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220919151414.excah6gywyposvfj@wittgenstein> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: On Mon, Sep 19, 2022 at 05:14:14PM +0200, Christian Brauner wrote: > On Mon, Sep 19, 2022 at 05:12:25PM +0200, Christian Brauner wrote: > > On Mon, Sep 19, 2022 at 08:05:12PM +0900, Tetsuo Handa wrote: > > > syzbot is reporting uninit-value in tomoyo_path_chown() [1], for > > > chown_common() is by error passing uninitialized newattrs.ia_vfsuid to > > > security_path_chown() via from_vfsuid() when user == -1 is passed. > > > We must initialize newattrs.ia_vfs{u,g}id fields in order to make > > > from_vfs{u,g}id() work. > > > > > > Link: https://syzkaller.appspot.com/bug?extid=541e21dcc32c4046cba9 [1] > > > Reported-by: syzbot > > > Signed-off-by: Tetsuo Handa > > > --- > > > > Odd that we didn't get any of the reports. Thanks for relying this. > > I'll massage this a tiny bit, apply and will test with syzbot. > > Fyi, Seth. Because the modules are ignoring ia_valid & ATTR_XID?