Thread (45 messages) 45 messages, 7 authors, 2021-08-05

Re: [PATCH 4/5] mm, memcg: avoid possible NULL pointer dereferencing in mem_cgroup_init()

From: Miaohe Lin <hidden>
Date: 2021-07-30 01:50:20
Also in: linux-mm, lkml

On 2021/7/29 21:52, Matthew Wilcox wrote:
On Thu, Jul 29, 2021 at 08:57:54PM +0800, Miaohe Lin wrote:
quoted
rtpn might be NULL in very rare case. We have better to check it before
dereferencing it. Since memcg can live with NULL rb_tree_per_node in
soft_limit_tree, warn this case and continue.
Why would we need to warn?  the GFP flags don't contain NOWARN, so
we already know an allocation failed.
I see. Will remove it. Many thanks!
.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help