summaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2021-04-06 18:45:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-16 12:00:22 +0200
commit91ed28d697f6d6227c5508a110f87b306774c714 (patch)
treeed92acecf2b5e8ad42c7e462ee5cd09c275a693b /lib/dynamic_debug.c
parent508e8b008438e3c13e0bd1de5aa4d60d37f4124e (diff)
net: tun: set tun->dev->addr_len during TUNSETLINK processing
commit cca8ea3b05c972ffb5295367e6c544369b45fbdd upstream. When changing type with TUNSETLINK ioctl command, set tun->dev->addr_len to match the appropriate type, using new tun_get_addr_len utility function which returns appropriate address length for given type. Fixes a KMSAN-found uninit-value bug reported by syzbot at: https://syzkaller.appspot.com/bug?id=0766d38c656abeace60621896d705743aeefed51 Reported-by: syzbot+001516d86dbe88862cec@syzkaller.appspotmail.com Diagnosed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions