Re: [PATCH net] net-timestamp: avoid use-after-free in ip_recv_error

2017-04-17 Thread David Miller
From: Willem de Bruijn Date: Wed, 12 Apr 2017 19:24:35 -0400 > From: Willem de Bruijn > > Syzkaller reported a use-after-free in ip_recv_error at line > > info->ipi_ifindex = skb->dev->ifindex; > > This function is called on dequeue from the error queue, at which > point the device pointe

[PATCH net] net-timestamp: avoid use-after-free in ip_recv_error

2017-04-12 Thread Willem de Bruijn
From: Willem de Bruijn Syzkaller reported a use-after-free in ip_recv_error at line info->ipi_ifindex = skb->dev->ifindex; This function is called on dequeue from the error queue, at which point the device pointer may no longer be valid. Save ifindex on enqueue in __skb_complete_tx_timesta