From: Roman Gushchin Subject: Re: [PATCH] selftests: cgroup: Add 'malloc' failures checks in test_memcontrol Date: Mon, 27 Feb 2023 10:15:49 -0800 Message-ID: References: <20230226131634.34366-1-ivan.orlov0322@gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1677521754; 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: in-reply-to:in-reply-to:references:references; bh=1FqEARzb0Q6bxxQRwlEFlZpVOXV7iA8ldzvL5C+2zTY=; b=Tpv77X0esdfptb1uj8Rrr0hRzuL5puORlWX8o5J/DfmWTURVT9shN0EbHrTP11S++Sbdu8 v/9OzxLRjdNJyX+p364t2Jge4JmkLORX1/Q3vZ0Q81liICuuAU+++u9EL7Y4uEcNtPJhYE mgqS0a16KP0cyGPiUzqotahGbhpspBc= Content-Disposition: inline In-Reply-To: <20230226131634.34366-1-ivan.orlov0322-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ivan Orlov Cc: hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, shakeelb-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, muchun.song-fxUVXftIFDnyG1zEObXtfA@public.gmane.org, tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org, shuah-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-kselftest-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, skhan-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org On Sun, Feb 26, 2023 at 04:16:33PM +0300, 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 Acked-by: Roman Gushchin Thanks!