From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EB82C7EE2E for ; Mon, 27 Feb 2023 07:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjB0HMl (ORCPT ); Mon, 27 Feb 2023 02:12:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjB0HMj (ORCPT ); Mon, 27 Feb 2023 02:12:39 -0500 Received: from out-28.mta1.migadu.com (out-28.mta1.migadu.com [95.215.58.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C3341B54A for ; Sun, 26 Feb 2023 23:12:37 -0800 (PST) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1677481955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/xXaaQom8mDHJA5re/wVR2Gr6jNo+6nCEO59AZkZGfY=; b=YQ6T55nPIluDWjA7F/ABkTa/hvIEyIITBMl+BYge7MKBXtpPjKeaav/yH/nyegFcAdy1It Njw5j2fbdlxlq/cXhYoUb6O0hC8CRlTkWhaaKQwD3Qldsn3IU74l56Dc42xKPH5siSALBo 2S931t/mSsJcW/99YGX8WnYZ4Mh+cPw= MIME-Version: 1.0 Subject: Re: [PATCH] selftests: cgroup: Add 'malloc' failures checks in test_memcontrol X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230226131634.34366-1-ivan.orlov0322@gmail.com> Date: Mon, 27 Feb 2023 15:11:54 +0800 Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Tejun Heo , lizefan.x@bytedance.com, shuah@kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org Content-Transfer-Encoding: 7bit Message-Id: <8C12D50C-97D1-4969-9D02-290B1AB56C72@linux.dev> References: <20230226131634.34366-1-ivan.orlov0322@gmail.com> To: Ivan Orlov X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 26, 2023, at 21:16, Ivan Orlov wrote: > > There are several 'malloc' calls in test_memcontrol, which can be > unsuccessful. This patch will add 'malloc' failures checking to > give more details about test's fail reasons and avoid possible > undefined behavior during the future null dereference (like the > one in alloc_anon_50M_check_swap function). > > Signed-off-by: Ivan Orlov Reviewed-by: Muchun Song Thanks.