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 E4D42C54EE9 for ; Mon, 19 Sep 2022 15:15:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbiISPPE (ORCPT ); Mon, 19 Sep 2022 11:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbiISPOr (ORCPT ); Mon, 19 Sep 2022 11:14:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813EB356F0; Mon, 19 Sep 2022 08:14:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 41753B80B1B; Mon, 19 Sep 2022 15:14:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27A69C43470; Mon, 19 Sep 2022 15:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663600458; bh=upItX2SSq03YYZ1soalz1Z8mpxB8awN7KnLI+fJTCbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KfvdPY66Ygwnnzj+YsbVqJ1IIIgB7er2AshPFCuZD8UIE00rHqqQFwblvOic9oCn2 v2JvN2jlc88H7mNT24aRWveQ0j5ZeareAIrlrEOmedtHhCbQaFBXcEfs/MoJP7p5Dz dVuh4+jD2wf1mI3QE6x6jcOvaEt/r4nRzPqlE+pRVznozZRzsKZMl3TCxsjAA5MmUw 9NY8mnDlZTy14mwDf1+QmipWYxlXstp7qhCtokgM14TVKAv8qznldshPZwUjhdsSwM 0tteazZhHVR7y8boDc5xiLW8i68LTD7jayEOFpg1ciXquRccT8o48SO+wxjfN+JXp1 0nJXXrXODfK9g== Date: Mon, 19 Sep 2022 17:14:14 +0200 From: Christian Brauner To: Tetsuo Handa Cc: 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: <20220919151414.excah6gywyposvfj@wittgenstein> References: <00000000000008058305e9033f85@google.com> <3411f396-a41e-76cb-7836-941fbade81dc@I-love.SAKURA.ne.jp> <20220919151220.htzmyesqt24xr26o@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220919151220.htzmyesqt24xr26o@wittgenstein> Precedence: bulk List-ID: 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.