Re: [PATCH net] tipc: better validate user input in tipc_nl_retrieve_key()

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 15 Mar 2021 03:06:58 -0700 you wrote: > From: Eric Dumazet > > Before calling tipc_aead_key_size(ptr), we need to ensure > we have enough data to dereference ptr->keylen. > > We probably also want to make sure tipc_ae

[PATCH net] tipc: better validate user input in tipc_nl_retrieve_key()

2021-03-15 Thread Eric Dumazet
From: Eric Dumazet Before calling tipc_aead_key_size(ptr), we need to ensure we have enough data to dereference ptr->keylen. We probably also want to make sure tipc_aead_key_size() wont overflow with malicious ptr->keylen values. Syzbot reported: BUG: KMSAN: uninit-value in __tipc_nl_node_set_