On 7/30/20 6:13 PM, Christian Brauner wrote:
On Thu, Jul 30, 2020 at 06:09:00PM +0200, Christoph Hellwig wrote:
__bpfilter_process_sockopt never initialized the pos variable passed to
the pipe write.  This has been mostly harmless in the past as pipes
ignore the offset, but the switch to kernel_write no verified the

s/no/now/

position, which can lead to a failure depending on the exact stack
initialization patter.  Initialize the variable to zero to make

s/patter/pattern/

rw_verify_area happy.

Fixes: 6955a76fbcd5 ("bpfilter: switch to kernel_write")
Reported-by: Christian Brauner <christian.brau...@ubuntu.com>
Reported-by: Rodrigo Madera <rodrigo.mad...@gmail.com>
Signed-off-by: Christoph Hellwig <h...@lst.de>
Tested-by: Rodrigo Madera <rodrigo.mad...@gmail.com>
---

Thanks for tracking this down, Christoph! This fixes the logging issue
for me.
Tested-by: Christian Brauner <christian.brau...@ubuntu.com>
Reviewed-by: Christian Brauner <christian.brau...@ubuntu.com>

Applied to bpf & fixed up the typos in the commit msg, thanks everyone!

Reply via email to