lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20141105.221411.110310506063834477.davem@davemloft.net> Date: Wed, 05 Nov 2014 22:14:11 -0500 (EST) From: David Miller <davem@...emloft.net> To: dborkman@...hat.com Cc: lw1a2.jing@...il.com, netdev@...r.kernel.org, edumazet@...gle.com, hannes@...essinduktion.org, david.stevens@...cle.com Subject: Re: [PATCH net v4] ipv6: mld: fix add_grhead skb_over_panic for devs with large MTUs From: Daniel Borkmann <dborkman@...hat.com> Date: Wed, 5 Nov 2014 20:27:38 +0100 > It has been reported that generating an MLD listener report on > devices with large MTUs (e.g. 9000) and a high number of IPv6 > addresses can trigger a skb_over_panic(): ... > mld_newpack() skb allocations are usually requested with dev->mtu > in size, since commit 72e09ad107e7 ("ipv6: avoid high order allocations") > we have changed the limit in order to be less likely to fail. > > However, in MLD/IGMP code, we have some rather ugly AVAILABLE(skb) > macros, which determine if we may end up doing an skb_put() for > adding another record. To avoid possible fragmentation, we check > the skb's tailroom as skb->dev->mtu - skb->len, which is a wrong > assumption as the actual max allocation size can be much smaller. > > The IGMP case doesn't have this issue as commit 57e1ab6eaddc > ("igmp: refine skb allocations") stores the allocation size in > the cb[]. > > Set a reserved_tailroom to make it fit into the MTU and use > skb_availroom() helper instead. This also allows to get rid of > igmp_skb_size(). > > Reported-by: Wei Liu <lw1a2.jing@...il.com> > Fixes: 72e09ad107e7 ("ipv6: avoid high order allocations") > Signed-off-by: Daniel Borkmann <dborkman@...hat.com> This has always been a tricky area, applied and queued up for -stable, thanks everyone. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists