Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2259273ybv; Fri, 21 Feb 2020 11:58:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyJVD0gMagrACNaDkMm6fP4lP2kC/Q9gj4ADY0q4S6sKm4BOnCeJmlxPJz6adiSoAVVxek2 X-Received: by 2002:a05:6830:154c:: with SMTP id l12mr29498679otp.275.1582315099519; Fri, 21 Feb 2020 11:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582315099; cv=none; d=google.com; s=arc-20160816; b=t7AMIBfJTd7YkEbyhXnqC3qPUkzArKNV4hmhNz/4EziI6gG13tsv7qqJBpB8e7gju3 A1BG7cRFpWNp2NTBBCBLGcaDq6I4N/MniLQQg7NhKIhNG1s3iqYvsutEVxdzprdnD/xA yJth+y1EXEYht4PkNynSLzn3TmgTi2eDBFbWDrATJpH+YjGjJEFRDeN7CyHOISWp7/wR 4DGZKe4M2Ur+bjs8rvg4aXwLVTCcpLbPA8yrj/KXMcsQiP3VJ1wtXfcxYekkGHSSTq4y EDx32bjAOLe20HG/CUhwxkSy7jQfymjEt0GYT19byEpuZSbO1QVFpcsX7D9VF76c8+Mc DKDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=u+7kFKKPhq+1vK4+KLq33Sk5wZvcAQTu0WYQ2aP+hKQ=; b=QoAQK05DJQtR6IlSUSG16HKIF0jlZVijMv2silHWphl03wDsylkYXiPUYteCfN9O3m qB+HWI8s253i20TDOGQG6ayqcNYu9x94mg2bfbugaids/VdZ+upxma6XhOCUQIQfjnM0 Y1TJULpZqvcPopn+3RqKJcyCn3GknEi7jvEbIs9O4q7js0OyzWkMx/Dwv6UtXTUw3giP dOWsJjczK7YbSOSOT2mFEpH0m2r0l8qr28MSQZnQRKNCJ0IC0O4Q8zEkpWX4yPkwKZXZ NChhN9TrGCK0tJ2ZIRMSY+qVaRW3Oouk+EUBUIQuB2GBr/Hlhz4//SWBkcegkZHwXZQl AB/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BoVA7xvQ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si1124403oiz.237.2020.02.21.11.58.08; Fri, 21 Feb 2020 11:58:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@amazon.com header.s=amazon201209 header.b=BoVA7xvQ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726679AbgBUT6G (ORCPT + 99 others); Fri, 21 Feb 2020 14:58:06 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:48777 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbgBUT6G (ORCPT ); Fri, 21 Feb 2020 14:58:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1582315084; x=1613851084; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=u+7kFKKPhq+1vK4+KLq33Sk5wZvcAQTu0WYQ2aP+hKQ=; b=BoVA7xvQXFhLkTev9asiN5wXvUrkexPIMm1rES/iUpK9t3rmBJea02E5 KpgswuLSsHTyRXwfcgqituXJU7GwNF0jdN7LqcxTHRMdx/3/RfsSjHpvR TtpeGPrt3Q/4duC4eRoJ9PMfw+wCdTqxN+V5kT4uYJ0wWe3P/MvEdqwzm I=; IronPort-SDR: NySSqsmMlNAN7JSErdo14vzi6n/8roDopuiugHD31C7o3+XXkxYNa/lLJawlnruF6iM7CPjU6Z pTHXaivF5KQg== X-IronPort-AV: E=Sophos;i="5.70,469,1574121600"; d="scan'208";a="18394499" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 21 Feb 2020 19:58:02 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com (Postfix) with ESMTPS id 80197A29F7; Fri, 21 Feb 2020 19:58:02 +0000 (UTC) Received: from EX13D30UWC003.ant.amazon.com (10.43.162.122) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 21 Feb 2020 19:58:01 +0000 Received: from EX13D30UWC001.ant.amazon.com (10.43.162.128) by EX13D30UWC003.ant.amazon.com (10.43.162.122) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 21 Feb 2020 19:58:01 +0000 Received: from EX13D30UWC001.ant.amazon.com ([10.43.162.128]) by EX13D30UWC001.ant.amazon.com ([10.43.162.128]) with mapi id 15.00.1367.000; Fri, 21 Feb 2020 19:58:01 +0000 From: "Jitindar SIngh, Suraj" To: "cai@lca.pw" CC: "adilger.kernel@dilger.ca" , "linux-ext4@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "paulmck@kernel.org" , "tytso@mit.edu" Subject: Re: null-ptr-deref due to "ext4: fix potential race between online resizing and write operations" Thread-Topic: null-ptr-deref due to "ext4: fix potential race between online resizing and write operations" Thread-Index: AQHV6L+odjQxl+/4SEaue/VH8TFG/6gmEPAA Date: Fri, 21 Feb 2020 19:58:01 +0000 Message-ID: References: <1582293736.7365.109.camel@lca.pw> In-Reply-To: <1582293736.7365.109.camel@lca.pw> Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.162.53] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org T24gRnJpLCAyMDIwLTAyLTIxIGF0IDA5OjAyIC0wNTAwLCBRaWFuIENhaSB3cm90ZToNCj4gUmV2 ZXJ0ZWQgdGhlIGxpbnV4LW5leHQgY29tbWl0IGMyMGJhYzliZjgyYyAoImV4dDQ6IGZpeCBwb3Rl bnRpYWwNCj4gcmFjZSBiZXR3ZWVuDQo+IHNfZmxleF9ncm91cHMgb25saW5lIHJlc2l6aW5nIGFu ZCBhY2Nlc3MiKSBmaXhlZCB0aGUgY3Jhc2ggYmVsb3cNCj4gKHdpdGggbGluZQ0KPiBudW1iZXJz KSwNCg0KR29vZCBjYXRjaCwgdGhpcyBpcyBhIGJ1ZyB3aGVyZSB0aGUgZGVyZWZlcmVuY2Ugb2Yg dGhlIGFycmF5DQpzX2ZsZXhfZ3JvdXBzIG5lZWRzIHRvIGhhcHBlbiBhZnRlciB0aGUgImlmIChm bGV4X3NpemUgPiAxKSIgaWYNCnN0YXRlbWVudCBpbiBmcy9leHQ0L2lhbGxvYy5jOjM3Mw0KDQo+ IA0KPiBzdHJ1Y3QgZmxleF9ncm91cHMgKmZsZXhfZ3JvdXAgPSBzYmlfYXJy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