Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1474739pxk; Fri, 25 Sep 2020 16:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5HqKuXY3+g2UBLIkToM7NCbPmqE5KWHdvp9aRu8kpoawFbBoLPto9WKsbjoT359u3baDx X-Received: by 2002:a50:d591:: with SMTP id v17mr4011331edi.92.1601075934176; Fri, 25 Sep 2020 16:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601075934; cv=none; d=google.com; s=arc-20160816; b=e5NCANis+zTyQqIROrNYZuO6iJN+9R9l8aY6RnfstdZWFWTByHkZwsC35g+bJYAO1a KM9IS/fTMVz7C9AP9yubvuzUb4kxJjAqxnBI7SOGsJF1kVubXL9092P7PhPXcQ+ZOY+2 IHw2h9xce52yeLA6WDH2sapSEygFca2HC+kiYHhiVDS2pbER6lj24hO63XCFlD3/wDzi hHRxPVUU++QnVrU/GXqVAXOnsusjRgDb6OiCOwgWSQ35FEn3GNHfTBCNBzTJLUoxGUOY tu1CYo0/yvaWuv3STuAVBb/5lPd3Z2vXAKHhlawnNWmtnJSBu1y7Ucin6RsRmOXUZxZg 6CnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=Oyh25OuZvW0UMEw/2/qZc4PPTE7Vw5zNXswj7d0ZD08=; b=aOHid2Ww28Xpp3uySyoM0ELNp0Mf9QTkj96FsX4NbZGv72QU+Hy9lgN5jw1u6iwUmS Gl7BjkAKHRD/EI5lJZsbl/G9FIkgqG5s6VMdRrKkNSNHyntygwb/sfsNcmpQppH/IxSv x7+ru+CTjD1oGuS4zIfGDvy1pSEHwJSDYHzDU8Lmd/sfc7qlDNXF5bq+knQkOsSAE+z4 ZKPhItje1ZGFi2qs9qK5hsvSOlmK09Jq25OTjjuZysafW++6b0sJe4GNWxIqiEhSxNHy MolTk6a9NVkXFHm0bN08Tg3Y1wn4luv+paUvrLh07UIMWk6wjEMm6bHA8paqMaocfXjS mJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sGBG9THc; 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 bk18si2825096ejb.172.2020.09.25.16.18.31; Fri, 25 Sep 2020 16:18:54 -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=sGBG9THc; 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 S1729281AbgIYXRP (ORCPT + 99 others); Fri, 25 Sep 2020 19:17:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:39056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbgIYXRP (ORCPT ); Fri, 25 Sep 2020 19:17:15 -0400 Received: from [192.168.0.108] (unknown [49.65.245.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71D042074B; Fri, 25 Sep 2020 23:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601075834; bh=EbJfwvBeHXIYBXTTELse8un9TJ2c/bhePB4Xfufh4yI=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=sGBG9THcIeHUpPQzlCVRHKRzBldFa0OoegE5xBKJJDE09XngNv7EhKTWvzGyqXUJP SReJNDgIo2CBwnM1FFUKm9UpgaEZW/roKBqoHjNFHaB2AdddeTjFF6VPx0IbP0AgfT Trqfe2ACwHH/Wd3NfuSZIbJVEjuvWVL4XUac/Ki8= Subject: Re: [f2fs-dev] KMSAN: uninit-value in f2fs_lookup To: Eric Biggers , Chao Yu References: <000000000000f9f80905b01c7185@google.com> <20200925163819.GA3315208@gmail.com> <20200925164538.GB3315208@gmail.com> Cc: syzbot , glider@google.com, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com From: Chao Yu Message-ID: <36d3ddc1-e8d1-6d0e-c1ea-aff198740182@kernel.org> Date: Sat, 26 Sep 2020 07:17:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200925164538.GB3315208@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-9-26 0:45, Eric Biggers wrote: > 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! Thanks for your check as well. :) Thanks, > > - Eric >