]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-sched-fix-NULL-dereference-in-goto-chain-control-action'
authorDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 13:01:09 +0000 (22:01 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 13:01:09 +0000 (22:01 +0900)
commit61b4b6afb0b64fcc6120bb4fb5ef6fb5b6f67cc6
tree551ed13178e7e3c880085dc904b56ea33425b00d
parent60311535b16a8c51b8908ebfcf485e0e4d646479
parent94a2caaf955413f2031930dd3cdca2fbf3d7dc18
Merge branch 'net-sched-fix-NULL-dereference-in-goto-chain-control-action'

Davide Caratti says:

====================
net/sched: fix NULL dereference in 'goto chain' control action

in a couple of TC actions (i.e. csum and tunnel_key), the control action
is stored together with the action-specific configuration data.
This avoids a race condition (see [1]), but it causes a crash when 'goto
chain' is used with the above actions. Since this race condition is
tolerated on the other TC actions (it's present even on actions where the
spinlock is still used), storing the control action in the common area
should be acceptable for tunnel_key and csum as well.

[1] https://www.spinics.net/lists/netdev/msg472047.html
====================

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