Skip to contentSkip to conversation

Bad backport of "net: Fix skb_set_peeked use-after-free bug" in 3.18.23

DISCUSSION Paul Mackerras 2 participants 2 messages Dec 14, 2015 Stable branch

lore
Share & tools
lore
#0 lore raw

Commit d9a1133495b4 ("net: Fix skb_set_peeked use-after-free bug") in 3.18.23 claims to be a backport of commit a0a2a6602496, but in fact the patch is identical to commit 738ac1ebb96d ("net: Clone skb before setting peeked flag"), which is the commit that introduces the use-after-free bug that a0a2a6602496 fixes.

The result is that we have been seeing crashes in __skb_recv_datagram since I merged v3.18.24 into the kernel code we are using for a product. Could someone fix this with an actual backport of a0a2a6602496 please?

Thanks,
Paul.

#1 lore raw
Quoted 10 lines · Paul Mackerras

Commit d9a1133495b4 ("net: Fix skb_set_peeked use-after-free bug") in 3.18.23 claims to be a backport of commit a0a2a6602496, but in fact the patch is identical to commit 738ac1ebb96d ("net: Clone skb before setting peeked flag"), which is the commit that introduces the use-after-free bug that a0a2a6602496 fixes.

The result is that we have been seeing crashes in __skb_recv_datagram since I merged v3.18.24 into the kernel code we are using for a product. Could someone fix this with an actual backport of a0a2a6602496 please?

Sorry about that, looks like my script has gone haywire :/

I've fixed it, pushed queue and will ship tomorrow after testing.

Thanks,
Sasha