diff options
| author | Phillip Potter <[email protected]> | 2021-04-06 17:45:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-04-06 23:52:21 +0000 |
| commit | cca8ea3b05c972ffb5295367e6c544369b45fbdd (patch) | |
| tree | f13f95fc5dac5b583891c2a2c3c8939602009844 /net/tipc/node.c | |
| parent | ethtool: fix incorrect datatype in set_eee ops (diff) | |
| download | kernel-cca8ea3b05c972ffb5295367e6c544369b45fbdd.tar.gz kernel-cca8ea3b05c972ffb5295367e6c544369b45fbdd.zip | |
net: tun: set tun->dev->addr_len during TUNSETLINK processing
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: [email protected]
Diagnosed-by: Eric Dumazet <[email protected]>
Signed-off-by: Phillip Potter <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
