lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check
    On Sun, Jul 26, 2020 at 8:39 PM Gaurav Singh <gaurav1086@gmail.com> wrote:
    >
    > ipv6_pinfo is initlialized by inet6_sk() which returns NULL.

    Why? It only returns NULL for timewait or request sock, but
    I don't see how ip6_autoflowlabel() could be called on these
    sockets. So please explain.

    > Hence it can cause segmentation fault. Fix this by adding a
    > NULL check.

    Which exact call path? Do you have a full stack trace?

    Thanks.

    \
     
     \ /
      Last update: 2020-07-27 21:51    [W:2.591 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site