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

2018-05-11 Thread David Miller
From: Roman Mashak Date: Fri, 11 May 2018 10:55:09 -0400 > When application fails to pass flags in netlink TLV for a new skbedit action, > the kernel results in the following oops: ... > The caller calls action's ->init() and passes pointer to "struct tc_action > *a", >

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

2018-05-11 Thread Cong Wang
On Fri, May 11, 2018 at 7:55 AM, Roman Mashak wrote: > 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]

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

2018-05-11 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: