Thread (16 messages) 16 messages, 5 authors, 2020-04-22

Re: [PATCH 5/5] sysctl: pass kernel pointers to ->proc_handler

From: Christoph Hellwig <hch@lst.de>
Date: 2020-04-22 17:23:03
Also in: bpf, linux-fsdevel, linux-mm, lkml

On Tue, Apr 21, 2020 at 12:23:30PM -0700, Andrey Ignatov wrote:
quoted
 	if (ret == 1 && ctx.new_updated) {
-		*new_buf = ctx.new_val;
+		*buf = ctx.new_val;
Original value of *buf should be freed before overriding it here
otherwise it's lost/leaked unless I missed something.

Other than this BPF part of this patch looks good to me. Feel free to
add my Ack on the next iteration with this fix.
Thanks, fixed.

Can you also comment on "bpf-cgroup: remove unused exports" ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help