[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a1c943f7-a775-48a9-9c20-4780baff9d71@linux.dev>
Date: Tue, 5 Nov 2024 15:01:26 -0800
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: zijianzhang@...edance.com
Cc: bpf@...r.kernel.org, borisp@...dia.com, john.fastabend@...il.com,
kuba@...nel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, horms@...nel.org, daniel@...earbox.net, ast@...nel.org,
stfomichev@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH v2 bpf] bpf: Add sk_is_inet and IS_ICSK check in
tls_sw_has_ctx_tx/rx
On 10/30/24 9:18 AM, zijianzhang@...edance.com wrote:
> From: Zijian Zhang <zijianzhang@...edance.com>
>
> As the introduction of the support for vsock and unix sockets in sockmap,
> tls_sw_has_ctx_tx/rx cannot presume the socket passed in must be IS_ICSK.
> vsock and af_unix sockets have vsock_sock and unix_sock instead of
> inet_connection_sock. For these sockets, tls_get_ctx may return an invalid
> pointer and cause page fault in function tls_sw_ctx_rx.
> Fixes: 0608c69c9a80 ("bpf: sk_msg, sock{map|hash} redirect through ULP")
> Fixes: e91de6afa81c ("bpf: Fix running sk_skb program types with ktls")
Please tag the correct commit that introduced the bug. These SHAs are before the
vsock and unix sock support was added.
pw-bot: cr
Powered by blists - more mailing lists