]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'fix-use-after-free-bugs-in-skb-list-processing'
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 21:55:54 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 21:55:54 +0000 (14:55 -0700)
commit1ea32982469f7146827cb78f43eb452025b74368
treeae65bea3d9a4e669d59c4a765cfdf007f7d0ee38
parent7f86d2abc7d36ba79d13c05455d89b39dd1d6cd9
parentf9607a3b9d845df641bc90bbd99483a435783ac2
Merge branch 'fix-use-after-free-bugs-in-skb-list-processing'

Edward Cree says:

====================
fix use-after-free bugs in skb list processing

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>