Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3342238ybd; Tue, 25 Jun 2019 00:36:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSEmkqU+0eEoF5Sc4YSp4JahP6bHehHQ7A+5qthMBz9OPxYLzp0Hq3KQVbYqyrjDxVysYN X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr30334948pjv.48.1561448163262; Tue, 25 Jun 2019 00:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561448163; cv=none; d=google.com; s=arc-20160816; b=hi8Y5ownpuyQzSpTLZoxTAG/2h2VDRu/AY5xvIxvHz4Ht/TK7Fg0fvaZToWvhHEUZa T8/+LAmjcrUaKBBNhQTq5u8OKLsyTySLX4I29L0YGV+z2n0WrdknBkbLdjPP6lJEHlgU syBnLBoMek0dnXINqItHr8Bn5KMBU17r9wHDvi/rvh53/KC39AvURC0OEDUsiz2bCUI/ IYDtAwI+pmFOduJoBrTEWMlZqh/XI89YEeCDms2pTlZuy+KfmB6ORNftXLxTt+XngTrD dGDF6SxXQ3S5XBMrl4hxRLWgH36ypB6hUN52ZDT1qBimj9ktKagt8SjLcbAdIEAPAiie d3WQ== 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 :dkim-signature; bh=lo2788zc3ba6AQPBvrY7/wbULJd9YzLO/MZXNIg1XA0=; b=rcXuKOSvEwWfNy/7P2y0s8vnHnHS4GkVx9RqgQLIjt7wGhDNAKRnQXI9zAsN/Ce0yl FkNTIhiZp4fUXKfg4W4do+GddiKlEb2Cs73QtIescLNtKq9Oqz6BJucH7K6X4/Zavp9X haX5YNhXcUJbv6KHzQGO7DQKAdvKttR707kMWrZzFK4QQcn57ZscHI2iZ7P9HTQBOpbh r7pBgpZnTNqmjQc/x65BbuUkM5uDd6sYxPxdXmCfd2Kj0HdOePQCXROswmpddK2IdhiM w8J5fwzVYOX21RJnDpQ0lXPj8Qnsi8SmgT4CRqqsebO3Hnr1yENZJWdQhTr5FDglZBak B69Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=tfBA3FWo; 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si1943971pjn.51.2019.06.25.00.35.47; Tue, 25 Jun 2019 00:36:03 -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=@vmware.com header.s=selector2 header.b=tfBA3FWo; 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728997AbfFYGKp (ORCPT + 99 others); Tue, 25 Jun 2019 02:10:45 -0400 Received: from mail-eopbgr710073.outbound.protection.outlook.com ([40.107.71.73]:58944 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbfFYGKp (ORCPT ); Tue, 25 Jun 2019 02:10:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lo2788zc3ba6AQPBvrY7/wbULJd9YzLO/MZXNIg1XA0=; b=tfBA3FWovYHivYtV4EX+AXUXUnM4v76HXCZ6eQxjvsbsRO62V5Rb+B82TScsuAkje+AoR7ba6ufdCPfmUBSffhtPczF8CBp2XodhrCpLG0fsYB7H6DqGp4AU/4eYpr562Ld3OCw5tM+7GTaCMPRI5nBRiwjBb5bqu71Q9VvR3xo= Received: from MN2PR05MB6208.namprd05.prod.outlook.com (20.178.241.91) by MN2PR05MB6432.namprd05.prod.outlook.com (20.178.249.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.12; Tue, 25 Jun 2019 06:10:40 +0000 Received: from MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::f4b2:4f83:7076:ffbf]) by MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::f4b2:4f83:7076:ffbf%6]) with mapi id 15.20.2008.007; Tue, 25 Jun 2019 06:10:40 +0000 From: Ajay Kaher To: Sasha Levin CC: "aarcange@redhat.com" , "jannh@google.com" , "oleg@redhat.com" , "peterx@redhat.com" , "rppt@linux.ibm.com" , "jgg@mellanox.com" , "mhocko@suse.com" , "jglisse@redhat.com" , "akpm@linux-foundation.org" , "mike.kravetz@oracle.com" , "viro@zeniv.linux.org.uk" , "riandrews@android.com" , "arve@android.com" , "yishaih@mellanox.com" , "dledford@redhat.com" , "sean.hefty@intel.com" , "hal.rosenstock@gmail.com" , "matanb@mellanox.com" , "leonro@mellanox.com" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "devel@driverdev.osuosl.org" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Srivatsa Bhat , Alexey Makhalov , "srivatsa@csail.mit.edu" Subject: Re: [PATCH v4 0/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping Thread-Topic: [PATCH v4 0/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping Thread-Index: AQHVKo1iIUbk16XbJ0SDrOziR/ss8aarP80AgAEAroA= Date: Tue, 25 Jun 2019 06:10:40 +0000 Message-ID: <0EA7BFD6-ABA6-4008-B30F-20653114F34F@vmware.com> References: <1561410186-3919-1-git-send-email-akaher@vmware.com> <1561410186-3919-4-git-send-email-akaher@vmware.com> <20190624202150.GC3881@sasha-vm> In-Reply-To: <20190624202150.GC3881@sasha-vm> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akaher@vmware.com; x-originating-ip: [103.19.212.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 36e99abf-899a-4967-2e08-08d6f933d93c x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR05MB6432; x-ms-traffictypediagnostic: MN2PR05MB6432: x-ms-exchange-purlcount: 1 x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(136003)(39860400002)(346002)(376002)(51344004)(199004)(189003)(66476007)(5660300002)(76116006)(6916009)(91956017)(966005)(73956011)(33656002)(66946007)(14454004)(66446008)(66556008)(36756003)(64756008)(7416002)(76176011)(256004)(99286004)(26005)(102836004)(6506007)(486006)(11346002)(478600001)(2616005)(476003)(446003)(6436002)(6116002)(3846002)(86362001)(8936002)(8676002)(229853002)(81166006)(81156014)(6486002)(186003)(66066001)(71200400001)(2906002)(4326008)(316002)(25786009)(6246003)(53936002)(305945005)(6306002)(7736002)(71190400001)(68736007)(54906003)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR05MB6432;H:MN2PR05MB6208.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7C0X+nm7Rleca1jNZbcgVC5+kiFYKWHjJvaBFQWOTfBE8Uh5S2deK1ou1WjOhFcfLGxXDknePIo1gqzhNlqGhOtgbOaZI+jgRm/6xURpCTa+ONdh4xV91+svDCPtqnI1BQRDAn1QgV5kPvFVe0vs5ZkcddEBNt6hnWF3xM7u2G9INuoOdpL7hbS/qMYhMVbDvUuTPEam+gSM8X71/DevULJtTl0jikPt+MUiGh/B+DT0gB/qjmVlTbRjSPOl3IQrBh39vLZEdDh6iQP44bxM0jEm0VRuP50Vl8vns5g6XbAhl2mnxwsiWXguv7R7gWcPvq4NfCbZ170lvK+y7bgyy+OBKPWLk8cHPqyr8nvTMnQeksj8HwF3U1zEqTcdWyTcupcgwmCErTDQXWUTPkY5aj79zsgvz4JAWhwyBfzf9zM= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36e99abf-899a-4967-2e08-08d6f933d93c X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2019 06:10:40.0723 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: akaher@vmware.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6432 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQrvu79PbiAyNS8wNi8xOSwgMTo1MSBBTSwgIlNhc2hhIExldmluIiA8c2FzaGFsQGtlcm5lbC5v cmc+IHdyb3RlOg0KICAgIA0KPiBPbiBUdWUsIEp1biAyNSwgMjAxOSBh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