Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp795575pxa; Wed, 12 Aug 2020 13:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymknSYxPkWrMLUARqmCaNFLv3UFHiCHyvU80rq/t0MG1D9BYoLrxINB3FLsAFyv8hZGTJi X-Received: by 2002:a17:906:6d59:: with SMTP id a25mr1669594ejt.193.1597264516568; Wed, 12 Aug 2020 13:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597264516; cv=none; d=google.com; s=arc-20160816; b=0HGDDhQsk8md3CIzLbdVOs1I3DmHWMXMM48k8uHTiY12J+mZgIKdWgW5mxl9rHsa24 WtucX/L6RoddLAMxQTzWWr+uQbEKwqy4cjWxJYFNlk0nUBLHktNBYTWL72Rf14w1M/iW +X2i7rqLTknDiDcqmTp9CTENBg+wl5KcoeCq3stMGGqqPB/NcVjNxTK23iixm4y9PdPN qrRIhe9vKgLZdHUdjaJWxqbaDKc4KLTP3S0H70O65V5/BCRg4DYREcMkpmv1ExFPe63h I7CMRkFQdgAAhP0pBpWBoyH2UxlwT3LRn4h4HhiKU08QTa7QYFf9ilkWYYtPuppVnGuZ I3uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8AbcIfen2Mh3O6xshAeb42qMiceFCwU8VY+DtJghWKc=; b=PWU0C9WMpB+7flbhKjT/xxW6kL2LXobgThk8pmRMtsvEyem/Ooo3XPQEc3jgpflf6l OqcN16k2Dt9M3GKeJrXBgYBxCw+p5ApR/XV3UlZUhwrrJlH0puQitdVYprEjuIX1TDK3 1YJ/HeVdY5NHKHuoJEfXcyNOgmYQvtwLRED+dzEhUd/BKnW/+ibMp53OGbwUMbBs124m Gvkqchp5uAEjRhjK3isQsRZIQ3QmYGXlNDRIB5hmgdiSXDmF3A3pzpvEzllVkgNzMVRF KwYZH5VyUEeAd/fhuTSuLDUwMdF42Fi8qZu37Xk4iJ29u6ZOY+lwI6oL7o4AcJAj3m8F Ub2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JJYKq7rh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si1970502edv.192.2020.08.12.13.34.50; Wed, 12 Aug 2020 13:35:16 -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=@gmail.com header.s=20161025 header.b=JJYKq7rh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbgHLUeS (ORCPT + 99 others); Wed, 12 Aug 2020 16:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgHLUeR (ORCPT ); Wed, 12 Aug 2020 16:34:17 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCD8C061383; Wed, 12 Aug 2020 13:34:17 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id k18so2583390qtm.10; Wed, 12 Aug 2020 13:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=8AbcIfen2Mh3O6xshAeb42qMiceFCwU8VY+DtJghWKc=; b=JJYKq7rhGfoskc0IOYL0mQ2UgiV0NUPZnUMJqm0x4+mN+Jnr5eSGxbVsmV3va+QmiF wjNsakLNmG8Snq4Ka54NHi+FMZOfkPc/P2UAnRuTKgJxYoDYNvYxnt9ubGhb/1D4XEbF R5s86RQJgzcMqdEQLZP6mi/nb4RuLVBQmVI4891ly/7eIdpFM1zpDZkPWag8mXnTxtoy vTo5GBX5MwVspiDm8HromEAg+ZMCdOxBmSjbfjM12ucPoyMLi6Jr1WBIZ8qAoOffTuuf J8cG90cIOw+EUXScq3d98Z/wlHZasQ2HIKPuWFa0h1c1TvCj5gslLqFBv4AiKd9iNLAP uURg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=8AbcIfen2Mh3O6xshAeb42qMiceFCwU8VY+DtJghWKc=; b=tycdZcmC5Nl1nHB6OyuEARPt2aPmVtV8syu96FXmvgNm8dDnxqPJY/gP2HaCtbJpdj FwztCMlmPikaHAkgOJahfsHWdsq+g0K0irxJUzyShoQqps0xaIKHAT+9AJIOwSGimPZb fhPv6Opa6Ei7Xq0nSywy1SQVPwBia/see4R/WP6F8coMm/LqjTtQSmyIFeoGv1Poqmrp JKptOLaJqMyzI3asCsPe5VV1/UYcnQWX7P9/Yx8u4zhjE4GLx3PBMT+4CAuSSGQBaI36 k6UcC71VXnJsgwqP40S0BXwFNwrpG51zD0fhY9HvsqeINbMgwBV6AtH6x7W8hjEGx4h0 1RKw== X-Gm-Message-State: AOAM532URhEC934L5k9ZH+nJXp09bWrVht5gPoC3UCrLMFJmsVbZ5U4D 4IiSJs0xkUHgkTAczjm8L+nevLHU X-Received: by 2002:ac8:130a:: with SMTP id e10mr1710881qtj.38.1597264456887; Wed, 12 Aug 2020 13:34:16 -0700 (PDT) Received: from eaf ([190.19.79.86]) by smtp.gmail.com with ESMTPSA id o13sm3651241qko.48.2020.08.12.13.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 13:34:16 -0700 (PDT) Date: Wed, 12 Aug 2020 17:34:10 -0300 From: Ernesto =?utf-8?Q?A=2E_Fern=C3=A1ndez?= To: Dan Carpenter Cc: Peilin Ye , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init() Message-ID: <20200812203410.GA6168@eaf> References: <20200812065556.869508-1-yepeilin.cs@gmail.com> <20200812070827.GA1304640@kroah.com> <20200812071306.GA869606@PWN> <20200812085904.GA16441@kadam> <20200812202420.GA5873@eaf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200812202420.GA5873@eaf> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2020 at 05:24:20PM -0300, Ernesto A. Fernández wrote: > If that's what the reproducer is about, I think just returning an error is > reasonable. I guess it would be better to put a check inside hfsplus_inode_read_fork(), to verify that the first extent is always in the right place and wide enough.