Thread (3 messages) 3 messages, 3 authors, 2021-12-16

Re: [PATCH -next] mm/memcg: Use struct_size() helper in kzalloc()

From: Johannes Weiner <hidden>
Date: 2021-12-16 11:26:43
Also in: lkml

On Thu, Dec 16, 2021 at 10:20:24AM +0800, Wang Weiyang wrote:
Make use of the struct_size() helper instead of an open-coded version, in
order to avoid any potential type mistakes or integer overflows that, in
the worst scenario, could lead to heap overflows.

Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Wang Weiyang <redacted>
Acked-by: Johannes Weiner <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help