Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2018318imm; Tue, 10 Jul 2018 11:41:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf13X+aSxffZ8e+eB/wG4xp2VOHJldDjXRI27dA3N+V6WShCnaVnXXwR1KpquwdAtOGCsgm X-Received: by 2002:a17:902:784d:: with SMTP id e13-v6mr25337819pln.197.1531248094865; Tue, 10 Jul 2018 11:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531248094; cv=none; d=google.com; s=arc-20160816; b=uidPZ7pKjiSww3fwpESQzn4SAvWLW+Ga/O+5PfMQIsJ327MLyUCYcBP5AQaeQ7/8Gf 1uV5AP5wOHo/oaNjL4EhUBLU7hZIiAAgu0iyBqXxpj7/DDP8nWJXWG4ka299UQC5/yFl Qo6eWqCa60PqLQZzDCFO3xw6aLazDwP2Rjhp98eAuOMleO8KBTwA9Z6yw6qfVkN9gjR8 m47tBNyV8nrfvMPO3r+4ezVQLPU19VuSwkhX2saLIQ3uRoIekgNo1T3LO5qcUnK40C0f xZjeUQSC0uiMKjxKKPkTbtru0EhjbXJPQ6KW+VKxuWKfki06xznf9im6i1WpPpNo5Ue0 7VtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=QYGK0kuB0wVEuUExpTeilIaQmMao5iumJuYgYq1ZZow=; b=s/1Filbg4v596aUCiPXqi4u3eNRFr/8xJTdfkomEGk2MOS/1ivsCIPyngzxqzSBSFK ZZ6vz92DKTIU/FdYucB+TzY2scCnyojWfHeJvjboHlXY2SNbumOkacePgcIuKM9+t7md 5V4tIvTQtSSE+L5SOL33+yo2T7uoCF2ZaI2qLQNnRbyBHfNmfi13Uo2Ezti/TqoGZLrq OXonVYdhX4nqnoW2ukwCfSU6zAcGhtnPqj1o9cbGgbExZJsmpjOO4sQ2C7HjEi7FeENv yNPcvIqvMwLRixg2yu1DidkQCXakvKxHqTc5vBhkFLpA72BPVD5/RQjV4cFq0EdK0rKY ++EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GpSnXujV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v12-v6si16507008pgk.523.2018.07.10.11.41.19; Tue, 10 Jul 2018 11:41:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GpSnXujV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389689AbeGJSfz (ORCPT + 99 others); Tue, 10 Jul 2018 14:35:55 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:38769 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388610AbeGJSfx (ORCPT ); Tue, 10 Jul 2018 14:35:53 -0400 Received: by mail-oi0-f68.google.com with SMTP id v8-v6so44551606oie.5; Tue, 10 Jul 2018 11:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QYGK0kuB0wVEuUExpTeilIaQmMao5iumJuYgYq1ZZow=; b=GpSnXujV1nPwPlLNkXtew25jg7BxtRD3nZ8OTEGhgPJk0mobxP8IbSILDGZMnFxhgU nSpEydlsuyQa/UUaynrA6pGrDVFwsSFQAYpoDQmiZocF99673U/ZV5GKDprv1w1CHlev YYzatpcWZwOJ6nCm5niSmufTzBxJwtAiruGDi40EIKOxP3qwcXM4OhUw8dD6ZsAnmA9F gNMQHY8eaaRbGdffwcsji1bA71TOVV9zlnHJByzgRhbPNeZR93QbZREWL1hjgGsFNmCx Ghv+DEFBHOGupgPaoJdoyarrBgRxhfljjmgflBIjvUaQS+7uhkoG2zYeiZVpypftEbvr 98EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QYGK0kuB0wVEuUExpTeilIaQmMao5iumJuYgYq1ZZow=; b=H7YVGqHvAn9SUcWwtfZyjfBzOop5hoqO5sflwNLetjNgXmMMsiD4GR/aZ0X9AIvKPE 4GXi37QnIaMwmHoiGBl8Ix7+jQuU3gxxz9+YE1qRvDD9YZjD5p9ib9nQ46l8Nt9SfqMd qOTmFaKMmWMDGxudDKwq1dRh5F6b8F4E+iKPozhi7moef0/BVrs/Bs6MBihzi2vG7+iT GBFeVsrQbWF0P0Q+Y7548am2hc6S/fN988YPtoNhcwkF5fMjg52XJUjliOq+yVgv1izj 12o1ndhhsWJIPEdzo2naGq2kUpe65mIXLfiL8V4X5jd7rWlhE5P9/kIoUHs45Mo4eGIE UPgg== X-Gm-Message-State: AOUpUlEvlWSp18t0swq/dt9B2CSbqz+53GUpESr0GnIq9TLCNN7pkaoV zm2Ss0pL8JMB2yEiUtDs1NuLcp6y91DBLEecM5wjp6+L X-Received: by 2002:aca:6141:: with SMTP id v62-v6mr6370040oib.240.1531243728252; Tue, 10 Jul 2018 10:28:48 -0700 (PDT) MIME-Version: 1.0 References: <20180603184955.zrowxp4y3ij66y5n@eaf> <20180608152557.GB11958@amd> <20180709203455.fbmx45ehrsj6yjzr@eaf> In-Reply-To: <20180709203455.fbmx45ehrsj6yjzr@eaf> From: Anatoly Trosinenko Date: Tue, 10 Jul 2018 20:28:37 +0300 Message-ID: Subject: Re: Mounting corrupted HFS+ causes kernel NULL pointer dereference To: "Ernesto A. Fernandez" Cc: pavel@ucw.cz, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Tetsuo Handa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you, When applied this single patch on v4.18-rc4 and performed "echo > /mnt/xyz" on hfsplus_16mb_hang image, I get about 14 pairs of lines hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent Then `echo` exits with "No space left on device" error. Then it permits to perform `rm /mnt/xyz` and on `echo > /mnt/1` it responds with no space left on device (but file *is* created and is cattable). I don't know what is safer, but now it doesn't deadlock. :) Maybe it is even worth to remount FS r/o, I don't know. (Please excuse me for speculations) Thanks, Anatoly =D0=BF=D0=BD, 9 =D0=B8=D1=8E=D0=BB. 2018 =D0=B3. =D0=B2 23:35, Ernesto A. F= ern=C3=A1ndez : > > On Tue, Jun 12, 2018 at 09:43:26PM +0300, Anatoly Trosinenko wrote: > > And when I mount hfsplus_16mb_hang and perform `echo > /mnt/xyz`, it ha= ngs. > > I just sent you a patch for this final report. Let me know if it works > for you.