Re: [Patch bpf-next v2] bpf: clear percpu pointers in bpf_prog_clone_free()

2021-02-22 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Wed, 17 Feb 2021 16:16:47 -0800 you wrote: > From: Cong Wang > > Similar to bpf_prog_realloc(), bpf_prog_clone_create() also copies > the percpu pointers, but the clone still shares them with the original > prog, so we have to

[Patch bpf-next v2] bpf: clear percpu pointers in bpf_prog_clone_free()

2021-02-17 Thread Cong Wang
From: Cong Wang Similar to bpf_prog_realloc(), bpf_prog_clone_create() also copies the percpu pointers, but the clone still shares them with the original prog, so we have to clear these two percpu pointers in bpf_prog_clone_free(). Otherwise we would get a double free: BUG: kernel NULL pointer