Re: [PATCH] lan78xx: fix ip header misalignment

2019-01-21 Thread Yuriy M. Kaminskiy
On 21.01.2019 14:47, Yuriy M. Kaminskiy wrote: lan78xx.c:rx_submit() allocates space for frame-to-be-received with netdev_alloc_skb_ip_align(), which misalign start of buffer by 2 bytes in expectation that frame will start from 14-byte ethernet header, then ip header; if start of buffer

[PATCH] lan78xx: fix ip header misalignment

2019-01-21 Thread Yuriy M. Kaminskiy
patch should not have any conflicts, all affected code is pretty same). P.S. I'm not subscribed, please CC me on reply. >From 2bd6b0a11e222be2df97da948924c71bf13d7192 Mon Sep 17 00:00:00 2001 From: "Yuriy M. Kaminskiy" Date: Mon, 21 Jan 2019 02:51:24 +0300 Subject: [PATCH] lan7

Re: userns, netns, and quick physical memory consumption by unprivileged user

2016-03-14 Thread Yuriy M. Kaminskiy
On 03/14/16 12:14 , Michal Hocko wrote: > On Fri 11-03-16 18:06:59, Yuriy M. Kaminskiy wrote: > [...] >> And also tried with memcg: >> t=/sys/fs/cgroup/memory/test1;mkdir $t;echo 0 >$t/tasks; >> echo 48M >$t/memory.limit_in_bytes; su testuser [...] >>

Re: userns, netns, and quick physical memory consumption by unprivileged user

2016-03-12 Thread Yuriy M. Kaminskiy
On 03/11/16 18:34 , Florian Westphal wrote: > Yuriy M. Kaminskiy wrote: >> BTW, all those hash/conntrack/etc default sizes was calculated from >> physical memory size in assumption there will be only *one* instance of >> those tables. Obviously, introduction of ne

Re: userns, netns, and quick physical memory consumption by unprivileged user

2016-03-11 Thread Yuriy M. Kaminskiy
ping (+ more test results at bottom) On Wed, 02 Mar 2016, I wrote: > While looking at CVE-2016-2847, I remembered about infamous > nf_conntrack: falling back to vmalloc > message, that was often triggered by network namespace creation (message > was removed recently, but it changed nothing wi

Re: skb_under_panic in ip_tunnel_xmit

2016-03-05 Thread Yuriy M. Kaminskiy
Eric Dumazet writes: > On mer., 2016-03-02 at 09:11 -0800, Francesco Ruggeri wrote: >> I can consistently get this panic on 4.4.1 as well as 3.18. >> >> [ 2076.264975] gre: GRE over IPv4 demultiplexor driver >> [ 2076.269326] ip_gre: GRE over IPv4 tunneling driver >> [ 2076.274464] conntrack: g

[q] userns, netns, and quick physical memory consumption by unprivileged user

2016-03-02 Thread Yuriy M. Kaminskiy
While looking at 759c01142a5d0f364a462346168a56de28a80f52, I remembered about infamous nf_conntrack: falling back to vmalloc message, that was often triggered by network namespace creation (message was removed recently, but it changed nothing with underlying problem). So, how about something l