lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 15 Jan 2020 17:07:37 +0100 From: Davide Caratti <dcaratti@...hat.com> To: Eric Dumazet <edumazet@...gle.com>, "David S . Miller" <davem@...emloft.net> Cc: netdev <netdev@...r.kernel.org>, Eric Dumazet <eric.dumazet@...il.com>, syzbot <syzkaller@...glegroups.com> Subject: Re: [PATCH v2 net] net/sched: act_ife: initalize ife->metalist earlier On Wed, 2020-01-15 at 07:58 -0800, Eric Dumazet wrote: > It seems better to init ife->metalist earlier in tcf_ife_init() > to avoid the following crash : hi Eric, thanks for following up! [...] > --- > v2: addressed Davide feedback. > net/sched/act_ife.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c > index 5e6379028fc392031f4b84599f666a2c61f071d2..ab748701374f65028c79cb789d065305430ea4c5 100644 > --- a/net/sched/act_ife.c > +++ b/net/sched/act_ife.c > @@ -537,6 +537,9 @@ static int tcf_ife_init(struct net *net, struct nlattr *nla, > } > > ife = to_ife(*a); > + if (ret = ACT_P_CREATED) > + INIT_LIST_HEAD(&ife->metalist); > + I didn't test the hunk above, but I think there is a typo, this assigns 'ret' rather than checking if it's equal to ACT_P_CREATED. It should be something like: if (ret == ACT_P_CREATED) INIT_LIST_HEAD(&ife->metalist); correct? thanks! -- davide
Powered by blists - more mailing lists