Re: [syzbot] [net?] general protection fault in ip6_pol_route (3)
From: Hillf Danton
Date: Wed Feb 05 2025 - 06:35:24 EST
On Tue, 04 Feb 2025 06:07:34 -0800
> syzbot found the following issue on:
>
> HEAD commit: f1b785f4c787 Merge tag 'for_linus' of git://git.kernel.org..
> git tree: upstream
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1209e4c0580000
#syz test upstream master
--- x/net/ipv6/route.c
+++ y/net/ipv6/route.c
@@ -2258,7 +2258,7 @@ struct rt6_info *ip6_pol_route(struct ne
return rt;
}
- } else {
+ } else if (res.nh) {
/* Get a percpu copy */
local_bh_disable();
rt = rt6_get_pcpu_route(&res);
--