Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2019-01-04 Thread Michal Hocko
On Thu 03-01-19 12:52:54, Shakeel Butt wrote: > On Mon, Dec 31, 2018 at 2:12 AM Michal Hocko wrote: > > > > On Sun 30-12-18 19:59:53, Shakeel Butt wrote: > > > On Sun, Dec 30, 2018 at 12:00 AM Michal Hocko wrote: > > > > > > > > On Sun 30-12-18 08:45:13, Michal Hocko wrote: > > > > > On Sat

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2019-01-03 Thread Shakeel Butt
On Mon, Dec 31, 2018 at 2:12 AM Michal Hocko wrote: > > On Sun 30-12-18 19:59:53, Shakeel Butt wrote: > > On Sun, Dec 30, 2018 at 12:00 AM Michal Hocko wrote: > > > > > > On Sun 30-12-18 08:45:13, Michal Hocko wrote: > > > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > > > > On Sat, Dec 29,

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-31 Thread Michal Hocko
On Sun 30-12-18 19:59:53, Shakeel Butt wrote: > On Sun, Dec 30, 2018 at 12:00 AM Michal Hocko wrote: > > > > On Sun 30-12-18 08:45:13, Michal Hocko wrote: > > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > > > > > On Sat

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Shakeel Butt
On Sat, Dec 29, 2018 at 11:45 PM Michal Hocko wrote: > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > > Michal Hocko wrote: > > > > > On Fri 28-12-18 17:55:24, Shakeel

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Shakeel Butt
On Sun, Dec 30, 2018 at 12:00 AM Michal Hocko wrote: > > On Sun 30-12-18 08:45:13, Michal Hocko wrote: > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > > > Michal

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Michal Hocko
On Sun 30-12-18 08:45:13, Michal Hocko wrote: > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > > Michal Hocko wrote: > > > > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote:

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Michal Hocko
On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > Michal Hocko wrote: > > > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > > > > The [ip,ip6,arp]_tables use x_tables_info

Re: Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Shakeel Butt
Hi Kirill, On Sat, Dec 29, 2018 at 1:52 AM Kirill Tkhai wrote: > > Hi, Michal! > > On 29.12.2018 10:33, Michal Hocko wrote: > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > >> The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > >> memory is already accounted to kmemcg.

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Shakeel Butt
On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > Michal Hocko wrote: > > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > > > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > > > > memory is already

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Michal Hocko
On Sat 29-12-18 10:52:15, Florian Westphal wrote: > Michal Hocko wrote: > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > > > memory is already accounted to kmemcg. Do the same for ebtables. The > > > syzbot, by using

Re: Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Kirill Tkhai
Hi, Michal! On 29.12.2018 10:33, Michal Hocko wrote: > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: >> The [ip,ip6,arp]_tables use x_tables_info internally and the underlying >> memory is already accounted to kmemcg. Do the same for ebtables. The >> syzbot, by using

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Florian Westphal
Michal Hocko wrote: > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > > memory is already accounted to kmemcg. Do the same for ebtables. The > > syzbot, by using setsockopt(EBT_SO_SET_ENTRIES), was able to OOM the > >

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-28 Thread Michal Hocko
On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > memory is already accounted to kmemcg. Do the same for ebtables. The > syzbot, by using setsockopt(EBT_SO_SET_ENTRIES), was able to OOM the > whole system from a restricted

[PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-28 Thread Shakeel Butt
The [ip,ip6,arp]_tables use x_tables_info internally and the underlying memory is already accounted to kmemcg. Do the same for ebtables. The syzbot, by using setsockopt(EBT_SO_SET_ENTRIES), was able to OOM the whole system from a restricted memcg, a potential DoS. Reported-by: