netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/3] fix use-after-free bugs in skb list processing
@ 2018-07-09 17:08 Edward Cree
  2018-07-09 17:09 ` [PATCH v3 net-next 1/3] net: core: fix uses-after-free in " Edward Cree
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Edward Cree @ 2018-07-09 17:08 UTC (permalink / raw)
  To: davem; +Cc: netdev

A couple of bugs in skb list handling were spotted by Dan Carpenter, with
 the help of Smatch; following up on them I found a couple more similar
 cases.  This series fixes them by changing the relevant loops to use the
 dequeue-enqueue model (rather than in-place list modification).

v3: fixed another similar bug in __netif_receive_skb_list_core().

v2: dropped patch #3 (new list.h helper), per DaveM's request.

Edward Cree (3):
  net: core: fix uses-after-free in list processing
  netfilter: fix use-after-free in NF_HOOK_LIST
  net: core: fix use-after-free in __netif_receive_skb_list_core

 include/linux/netfilter.h | 10 +++++++---
 net/core/dev.c            | 30 ++++++++++++++++++++----------
 2 files changed, 27 insertions(+), 13 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-09 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 17:08 [PATCH v3 net-next 0/3] fix use-after-free bugs in skb list processing Edward Cree
2018-07-09 17:09 ` [PATCH v3 net-next 1/3] net: core: fix uses-after-free in " Edward Cree
2018-07-09 17:10 ` [PATCH v3 net-next 2/3] netfilter: fix use-after-free in NF_HOOK_LIST Edward Cree
2018-07-09 17:10 ` [PATCH v3 net-next 3/3] net: core: fix use-after-free in __netif_receive_skb_list_core Edward Cree
2018-07-09 21:56 ` [PATCH v3 net-next 0/3] fix use-after-free bugs in skb list processing David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).