Re: [PATCH net-next 1/1] net sched actions: fix invalid pointer dereferencing if skbedit flags missing

2018-05-10 Thread Cong Wang
On Wed, May 9, 2018 at 2:18 PM, Roman Mashak wrote: > The caller calls action's ->init() and passes pointer to "struct tc_action > *a", > which later may initialized to point at the existing action, otherwise > "struct tc_action *a" is still invalid, and therefore

[PATCH net-next 1/1] net sched actions: fix invalid pointer dereferencing if skbedit flags missing

2018-05-09 Thread Roman Mashak
When application fails to pass flags in netlink TLV for a new skbedit action, the kernel results in the following oops: [8.307732] BUG: unable to handle kernel paging request at 00021130 [8.309167] PGD 8000193d1067 P4D 8000193d1067 PUD 180e0067 PMD 0 [8.310595] Oops: