Re: [PATCH bpf-next v6] bpf: Fix use-after-free on mm_struct in bpf_find_vma()

From: Sanghyun Park

Date: Wed Jul 08 2026 - 03:20:19 EST


On Wed, Jul 08, 2026 at 07:38:44AM +0200, Kumar Kartikeya Dwivedi wrote:
> Please avoid top-posting.

Sorry about that.

> We had to drop this from the tree because of build-time warnings [0], since
> mmput_needed will not be used in case CONFIG_MMU is unset. It should be easy
> to address by adding __maybe_unused to the mmput_needed's declaration. Could
> you make that fix and respin?
>
> [0]: https://lore.kernel.org/bpf/202607080951.rMUtVX8X-lkp@xxxxxxxxx

I will send v7 shortly with mmput_needed marked __maybe_unused.