Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1249043pxk; Fri, 25 Sep 2020 09:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylMW9ZUYl2zkRGjx78SDJwqQrm5SJLg7yRqH6TVE/UjbZfzCv0lqsaaB8IFSh0F27MFbWg X-Received: by 2002:a17:906:c309:: with SMTP id s9mr3825767ejz.167.1601052425765; Fri, 25 Sep 2020 09:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601052425; cv=none; d=google.com; s=arc-20160816; b=M3+g0aVmCu8ir6VbHHwxd3rgRb2QI2/fzs1B2Vnay4urg5t4k5du+RM/ji+roJddfA /WRN3+4jMJGZzyjRnNWoTqYPIHujpSlbZsCl5qUaGeDg9KZKLrr8EyJamZw/wrwk2DbM Wy8ReMgDaleD0LXLsLDK68QkFB4ESVtMBKDnwFaS1CBvpwfo6zXpJmXBsn0TIRgslXwa SF6nRkszsyTL0QVPBEqmSsYTXiqK/9dAEBmwrAoOydxsnZ8tigx8ByTomaCA5f9JR7FB 7ym+h/xO6g8U/A1pH4SHgwJkaDCEAAM48oeQt3PNx8NrNBzEdoCuaQhIf496L8Rf9eSx SPNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VuW6qGzzuxVPyqm1oCHDsVB2lhJ9SNnnPwwWOz6XIbg=; b=JJrN5qeURYnaHzaK7yN4V8jhGPIlb6loWhO/LjaFDAJhMSKLbaXVzldm73SxUiv7is NqJaNLSgaYeNJ/LlAeODhRN7bObz0X4rfOP6AXdymw1673mwzsztWKadXGORqNWuwjdq oo2Y2ZNqgZc5Xasl8Hlo5y9rzG9sbWlPk+F1RmJABnlnecotupMxnAWGQw1eHjzfU434 JA2W6+ebieh2i/yLgretprRRanafwl/w9NM+KhJbbMorqyu4jVr/Tf5bMEFQig1b42M4 4FejeKfT2+L6+NKzAqV4TXYznWIpGcrsJK/bSWSJ+fI8rdPTarkRXj41G9z8s81gpvXj JOuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wjyiZ5Kb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw9si2240453ejb.624.2020.09.25.09.46.43; Fri, 25 Sep 2020 09:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wjyiZ5Kb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729238AbgIYQpo (ORCPT + 99 others); Fri, 25 Sep 2020 12:45:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:45792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbgIYQpl (ORCPT ); Fri, 25 Sep 2020 12:45:41 -0400 Received: from gmail.com (unknown [104.132.1.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D562207C4; Fri, 25 Sep 2020 16:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601052340; bh=jCFSSAzfkPx0FSPQZ22vjowCCmUJwQx6Nnx+KhlIOzU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wjyiZ5KbaEaamDgZO/UH46Jx+G5zQ1OuC8xQnXkX5QjK3+dqnkXTgI310MPEtjdS0 +6ejXQSItYHr02ZIjcXYVIfhXd2z9tbnPrQzJrYMvlhYt/rl9IzsxAwuZK7vtp+Bz8 0YEwOtDDH30ohov6SWDlO6CeGJTIl2vtNANp9mHY= Date: Fri, 25 Sep 2020 09:45:38 -0700 From: Eric Biggers To: Chao Yu Cc: syzbot , chao@kernel.org, glider@google.com, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [f2fs-dev] KMSAN: uninit-value in f2fs_lookup Message-ID: <20200925164538.GB3315208@gmail.com> References: <000000000000f9f80905b01c7185@google.com> <20200925163819.GA3315208@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925163819.GA3315208@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 09:38:19AM -0700, Eric Biggers wrote: > On Fri, Sep 25, 2020 at 05:06:33PM +0800, Chao Yu wrote: > > Hi, > > > > I don't see any problem here, thanks for your report. :) > > > > Thanks, > > What about if max_depth == 0 in __f2fs_find_entry()? Then __f2fs_find_entry() > would return NULL without initializing *res_page. ... and I now see Dan Carpenter already pointed this out. I was a bit late! - Eric