Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1062293imu; Fri, 4 Jan 2019 12:17:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN68uYvVWv5F/7RXo0Yn73x4Rc5Q+yESmCZinqUsIuEydGMSJrO7pQcE+EuW1Vjk01IT6ikQ X-Received: by 2002:a17:902:8306:: with SMTP id bd6mr52563305plb.217.1546633049571; Fri, 04 Jan 2019 12:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546633049; cv=none; d=google.com; s=arc-20160816; b=0t+w3jqOZ4msIsEtkq+tzk8IM7muh3xjdSRVpoQ46vVC07BeZq3V7iUFJ3YFVe6nsl fwllWwhHpYcm7iVMdygKAxLOPSw0WP90YUW94bdjC0DRikkhLFOGZTdfCD+3TYt9C/kD xnJyChS9O/jyGLLuWsxiojYDn6GJZDS+vSHTJMIm67/q/GaJcgO2262yF/x6nd+47Gc/ igryfLyW2XW8rr0xqYr4jxuFcp2Ywyzi34qVXO2z0N/Xi+rCbmRav/wOWvxoHyabycfY cz3Ew4dK9DycDbyw5lxOVcw1w4EmlYeTdFjClnki5nE+38E4DyE7pzOz5FimBIz9z6kP XtmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id; bh=WQdigzsL09FgL/39VMNAGDVRAY4BGg24VG2c29+PPu0=; b=QtEXH6WBi3ayeundTPZupE+TJqAxoylXQMO0tcIA/hKaVR7+N+w9g6GguIufri6IMg sQcXus+VRUC/XHj0CC7mlSfUI3ktH67PTF2AqBn4LdgzQDGqD5gB+Jtr04QYhJtR+ZvR SRU+KJ5X9zKGZfZnS3dWAoLde+0UzCkasn4yTS9904j/jdPCSOVBT7y9nNgZwPhV30gI FoVZ0ZWfr/tOOH39ZFYSBYwlI21NHYB9sPagv9J1sRPmAexPB8+641mlfdPH298l2pxR X0cM0siKMAza0lpK+qmCxisTCl7mEM1v6Pi0GCcgo+t6nbgsNZt46e7Tu40FNMPSut1D 9pJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si55646220pgf.22.2019.01.04.12.17.13; Fri, 04 Jan 2019 12:17:29 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbfADUOv (ORCPT + 99 others); Fri, 4 Jan 2019 15:14:51 -0500 Received: from shelob.surriel.com ([96.67.55.147]:40916 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbfADUOv (ORCPT ); Fri, 4 Jan 2019 15:14:51 -0500 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gfVrh-0004JB-JK; Fri, 04 Jan 2019 15:14:45 -0500 Message-ID: Subject: Re: [PATCH] fork, memcg: fix cached_stacks case From: Rik van Riel To: Shakeel Butt , Roman Gushchin , Michal Hocko , Andrew Morton Cc: linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Weiner , Tejun Heo , stable@vger.kernel.org Date: Fri, 04 Jan 2019 15:14:45 -0500 In-Reply-To: <20190102180145.57406-1-shakeelb@google.com> References: <20190102180145.57406-1-shakeelb@google.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-12qNsl9snEwifMAZ7N/9" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-12qNsl9snEwifMAZ7N/9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-01-02 at 10:01 -0800, Shakeel Butt wrote: > Commit 5eed6f1dff87 ("fork,memcg: fix crash in free_thread_stack on > memcg charge fail") fixes a crash caused due to failed memcg charge > of > the kernel stack. However the fix misses the cached_stacks case which > this patch fixes. So, the same crash can happen if the memcg charge > of > a cached stack is failed. >=20 > Fixes: 5eed6f1dff87 ("fork,memcg: fix crash in free_thread_stack on > memcg charge fail") > Signed-off-by: Shakeel Butt > Cc: Rik van Riel > Cc: Roman Gushchin > Cc: Michal Hocko > Cc: Johannes Weiner > Cc: Tejun Heo > Cc: Good catch. Thank you. Acked-by: Rik van Riel --=20 All Rights Reversed. --=-12qNsl9snEwifMAZ7N/9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAlwvvrUACgkQznnekoTE 3oNgnAgAq6FDLf8JFXdxaI5a/OrCOHkZMEgApfIj4niwaw4iM9qXvM5krVAQ2X+r vPFrxY7h0mcDljuUAuKxMoBbKnBVHZM72iLk/iD8T2mXT43aEtLsDYM/Nn/B6ric uOcG+ScFutfcfOoF0B62pPFIQ/WjA9EY5Oc5yx19lRe1/tZpatwHZnOmCbQa7xvp EGNr3C7dkz4xmgAOEv9k2+yPqgM1AstekA85rQBiQWY/8pNx+vAxOy97UKrfJa2Z C3Ar/TgmuN2xUwCtPWNAIt4tt3tND5rtdgoczUu5duORPLPpCqlgPwQcizLq85bI p+DF4agefINLKG1AnjiNta1jjpiACQ== =tR4H -----END PGP SIGNATURE----- --=-12qNsl9snEwifMAZ7N/9--