Re: [bug report] ovpn: implement packet processing

Antonio Quartulli <[email protected]>
Newsgroups gmane.linux.kernel.janitors
Organization OpenVPN Inc.
Message-ID <[email protected]>
Hello Dan,

On 12/05/2026 10:45, Dan Carpenter wrote:
> Hello Antonio Quartulli,
> 
> Commit 8534731dbf2d ("ovpn: implement packet processing") from Apr
> 15, 2025 (linux-next), leads to the following Smatch static checker
> warning:
> 
> drivers/net/ovpn/io.c:207 ovpn_decrypt_post() warn: variable dereferenced before check 'peer' (see line 148)
> drivers/net/ovpn/io.c:305 ovpn_encrypt_post() warn: variable dereferenced before check 'peer' (see line 304)
> 

Thanks for this report.
It is valid and I will indeed remove the NULL checks.

What/who should I credit in the Reported-by tag?

On a side note: from time to time I also run smatch on the ovpn code, 
but I haven't caught these ones. Any clue?
I just ran kchecker on the ovpn folder after build_kernel_data.sh.

Regards,


-- 
Antonio Quartulli
OpenVPN Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.