Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1303514
| From | Florian Westphal <fw@strlen.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation |
| Date | 2016-01-07 13:10 +0100 |
| Message-ID | <qOhya-7Vb-23@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <qO2IO-5Vv-5@gated-at.bofh.it> <qO3vc-6u0-1@gated-at.bofh.it> <qO4rg-782-3@gated-at.bofh.it> <qO69I-88W-13@gated-at.bofh.it> <qOgC5-7hc-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Konstantin Khlebnikov <koct9i@gmail.com> wrote: > On Thu, Jan 7, 2016 at 2:49 AM, Florian Westphal <fw@strlen.de> wrote: > > ... but it seems that those three are the only affected callers > > of skb_gso_segment (tbf is ok since skb isn't owned by anyone, > > ovs does save/restore already). > > > > I think this patch is the right way, we just need similar > > save/restore in nfqnl_enqueue_packet and xfrm_output_gso(). > > Which CB could be here? at this point skb isn't owned by netlink yet. inet(6)_skb_parm, nfqnl_enqueue_packet is called via netfilter hooks, skb is owned by ipv4 or ipv6 stack. > > The latter two can be used by either ipv4 or ipv6 so it might > > be preferable to just save/restore sizeof(struct skb_gso_cb); > > or a union of inet_skb_parm+inet6_skb_parm. > > Or just shift GSO CB and add couple checks like > BUILD_BUG_ON(sizeof(SKB_GSO_CB(skb)->room) < sizeof(*IPCB(skb))); Right, that works too. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-06 20:20 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Cong Wang <xiyou.wangcong@gmail.com> - 2016-01-06 21:00 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-06 21:20 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Thadeu Lima de Souza Cascardo <cascardo@redhat.com> - 2016-01-06 22:10 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Florian Westphal <fw@strlen.de> - 2016-01-06 23:10 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Florian Westphal <fw@strlen.de> - 2016-01-07 01:00 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-07 12:10 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-07 12:40 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Eric Dumazet <edumazet@google.com> - 2016-01-07 13:00 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-07 13:10 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Eric Dumazet <edumazet@google.com> - 2016-01-07 14:00 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Konstantin Khlebnikov <koct9i@gmail.com> - 2016-01-07 20:40 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Eric Dumazet <edumazet@google.com> - 2016-01-07 20:50 +0100
Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation Florian Westphal <fw@strlen.de> - 2016-01-07 13:10 +0100
[PATCH] net: prevent corruption of skb when using skb_gso_segment Thadeu Lima de Souza Cascardo <cascardo@redhat.com> - 2016-01-07 19:50 +0100
Re: [PATCH] net: prevent corruption of skb when using skb_gso_segment Florian Westphal <fw@strlen.de> - 2016-01-07 20:40 +0100
[PATCH v2] net: prevent corruption of skb when using skb_gso_segment Thadeu Lima de Souza Cascardo <cascardo@redhat.com> - 2016-01-07 22:20 +0100
csiph-web