Re: [PATCHv2 net] net: sched: fix NULL pointer dereference when action calls some targets

2017-08-18 Thread David Miller
From: Xin Long Date: Fri, 18 Aug 2017 11:01:36 +0800 > As we know in some target's checkentry it may dereference par.entryinfo > to check entry stuff inside. But when sched action calls xt_check_target, > par.entryinfo is set with NULL. It would cause kernel panic when calling > some targets. >

Re: [PATCHv2 net] net: sched: fix NULL pointer dereference when action calls some targets

2017-08-18 Thread Pablo Neira Ayuso
On Fri, Aug 18, 2017 at 11:01:36AM +0800, Xin Long wrote: > As we know in some target's checkentry it may dereference par.entryinfo > to check entry stuff inside. But when sched action calls xt_check_target, > par.entryinfo is set with NULL. It would cause kernel panic when calling > some targets.

[PATCHv2 net] net: sched: fix NULL pointer dereference when action calls some targets

2017-08-17 Thread Xin Long
As we know in some target's checkentry it may dereference par.entryinfo to check entry stuff inside. But when sched action calls xt_check_target, par.entryinfo is set with NULL. It would cause kernel panic when calling some targets. It can be reproduce with: # tc qd add dev eth1 ingress handle f