lkml.org 
[lkml]   [2020]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bpfilter logging write errors in dmesg
On Thu, Jul 30, 2020 at 08:06:54AM +0200, Christoph Hellwig wrote:
> Ho Rodrigo,
>
> please try this patch:
>
> diff --git a/net/bpfilter/bpfilter_kern.c b/net/bpfilter/bpfilter_kern.c
> index 1905e01c3aa9a7..4494ea6056cdb8 100644
> --- a/net/bpfilter/bpfilter_kern.c
> +++ b/net/bpfilter/bpfilter_kern.c
> @@ -39,7 +39,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname,
> {
> struct mbox_request req;
> struct mbox_reply reply;
> - loff_t pos;
> + loff_t pos = 0;
> ssize_t n;
> int ret = -EFAULT;
>

Christoph,

This killed the issue!

Can't believe I missed it... The pos numbers were a dead giveaway!

Let me know if you wish to do any other tests on my end.

Best regards,
Madera

\
 
 \ /
  Last update: 2020-07-30 17:55    [W:0.046 / U:6.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site