Re: [syzbot] [mm?] WARNING in mas_nomem

Jason Gunthorpe <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
On Thu, Aug 06, 2026 at 10:29:27AM -0400, Liam R. Howlett wrote:

> @@ -5609,8 +5612,7 @@ void *mas_store(struct ma_state *mas, void *entry)
>  		goto store;
>  
>  	mas_alloc_nodes(mas, GFP_NOWAIT);
> -	if (mas_is_err(mas))
> -		return NULL;
> +	mas_nomem(mas, GFP_KERNEL | __GFP_NOFAIL);

It still feels really weird to ignore the return code from mas_nomem..

 void mas_nomem_nofail() 

? and maybe it can have a WARN_ON

Jason
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.