[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180531085116.GA17729@kroah.com>
Date: Thu, 31 May 2018 10:51:16 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Florian Westphal <fw@...len.de>
Cc: peter pi <tiangangpi@...il.com>, Jan Engelhardt <jengelh@...i.de>,
Eric Dumazet <eric.dumazet@...il.com>,
Greg Hackmann <ghackmann@...gle.com>,
Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
Michal Kubecek <mkubecek@...e.cz>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v2] netfilter: properly initialize xt_table_info structure
On Thu, May 31, 2018 at 10:24:36AM +0200, Florian Westphal wrote:
> peter pi <tiangangpi@...il.com> wrote:
> > Hi Greg, I applied this patch on 4.4 and tested it on my Pixel 2, it seems
> > the problem still exists,
>
> What is the problem exactly?
The problem is that kernel data is being sent to userspace due to an
uncleared buffer that was allocated and then copied to userspace. This
can be reproduced by dumping the current set of iptables rules. Peter
had an example reproducing script that he used to specifically show
this. Peter, can you provide that?
I thought that initializing this buffer to zero would solve the problem,
but I guess I cleared the wrong buffer :(
thanks,
greg k-h
Powered by blists - more mailing lists