Re: [PATCH net,v5,1/2] net/smc: initialize ipv6_pinfo_offset in smc_inet6_prot and add smc6_sock structure

From: Jeongjun Park
Date: Tue Aug 20 2024 - 06:32:10 EST


Jeongjun Park wrote:
> Since smc_inet6_prot does not initialize ipv6_pinfo_offset, inet6_create()
> copies an incorrect address value, sk + 0 (offset), to inet_sk(sk)->pinet6.
>
> To solve this, we need to add code to smc_inet6_prot to initialize
> ipv6_pinfo_offset.
>
> Fixes: d25a92ccae6b ("net/smc: Introduce IPPROTO_SMC")
> Signed-off-by: Jeongjun Park <aha310510@xxxxxxxxx>

Reported-by: syzkaller <syzkaller@xxxxxxxxxxxxxxxx>