Merge pull request #260 from sclaibin/tk4/master_fix_cve

net_sched: cls_route: remove from list when handle is 0
This commit is contained in:
sclaibin 2022-08-31 16:13:30 +08:00 committed by GitHub
commit c5b4c812ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ static int route4_change(struct net *net, struct sk_buff *in_skb,
rcu_assign_pointer(f->next, f1);
rcu_assign_pointer(*fp, f);
if (fold && fold->handle && f->handle != fold->handle) {
if (fold) {
th = to_hash(fold->handle);
h = from_hash(fold->handle >> 16);
b = rtnl_dereference(head->table[th]);