From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f194.google.com ([209.85.220.194]:38110 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733183AbeGLXTk (ORCPT ); Thu, 12 Jul 2018 19:19:40 -0400 Received: by mail-qk0-f194.google.com with SMTP id y4-v6so16329794qka.5 for ; Thu, 12 Jul 2018 16:07:56 -0700 (PDT) Date: Thu, 12 Jul 2018 20:07:51 -0300 From: Ernesto =?utf-8?Q?A=2E_Fern=C3=A1ndez?= To: Andrew Morton Cc: linux-fsdevel@vger.kernel.org, "Xu, Wen" Subject: Re: [PATCH] hfsplus: fix NULL dereference in hfsplus_lookup() Message-ID: <20180712230750.h55b2sin3a7weqdy@eaf> References: <20180712215344.q44dyrhymm4ajkao@eaf> <20180712153311.71495c0ea5ba0115414f5301@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180712153311.71495c0ea5ba0115414f5301@linux-foundation.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jul 12, 2018 at 03:33:11PM -0700, Andrew Morton wrote: > On Thu, 12 Jul 2018 18:53:47 -0300 Ernesto A. Fernández wrote: > > > Check that the hidden directory is not NULL before using it, instead of > > after. > > > > Under what circumstances does the crash happen? Mount of a corrupted fs? No, when looking up corrupted catalog data (dentry) on a filesystem with no metadata directory (this could only ever happen on a read-only mount). Wen Xu sent the replication steps in detail to the fsdevel list, here is a link: https://bugzilla.kernel.org/show_bug.cgi?id=200297 I did not explain this because I think the diff makes it clear that there is a bug at least.