Re: [PATCH bpf-next v3 2/3] bpf, sockmap: avoid using sk_socket after free when reading

2025-04-05 Thread Cong Wang
On Mon, Mar 17, 2025 at 05:22:55PM +0800, Jiayuan Chen wrote: > There are potential concurrency issues, as shown below. > ''' > CPU0 CPU1 > sk_psock_verdict_data_ready: > socket *sock = sk->sk_socket > if (!sock) return >close(fd

Re: [PATCH bpf-next v3 2/3] bpf, sockmap: avoid using sk_socket after free when reading

2025-03-26 Thread Jiayuan Chen
March 20, 2025 at 08:34, "Cong Wang" wrote: > > On Mon, Mar 17, 2025 at 05:22:55PM +0800, Jiayuan Chen wrote: > > > > > There are potential concurrency issues, as shown below. > > > > ''' > > > > CPU0 CPU1 > > > > sk_psock_verdict_data_ready: > > > > socket *sock = sk->sk_socket > > >

[PATCH bpf-next v3 2/3] bpf, sockmap: avoid using sk_socket after free when reading

2025-03-17 Thread Jiayuan Chen
There are potential concurrency issues, as shown below. ''' CPU0 CPU1 sk_psock_verdict_data_ready: socket *sock = sk->sk_socket if (!sock) return close(fd): ...