Messages in this thread | | | From | Cong Wang <> | Date | Sat, 8 Aug 2020 10:37:26 -0700 | Subject | Re: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check |
| |
On Sat, Aug 8, 2020 at 10:07 AM Gaurav Singh <gaurav1086@gmail.com> wrote: > > This PR fixes a possible segmentation violation. > > In function: ip6_xmit(), we have > const struct ipv6_pinfo *np = inet6_sk(sk); which returns NULL > unconditionally (regardless sk being NULL or not). > > In include/linux/ipv6.h: > > static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk) > { > return NULL; > } >
Tell us who will use ip6_autoflowlabel() when CONFIG_IPV6 is disabled. :)
| |