Re: [PATCH bpf-next v4 1/6] mm, bpf: Introduce try_alloc_pages() for opportunistic page allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 15, 2025 at 12:35 AM Michal Hocko <mhocko@xxxxxxxx> wrote:
>
> On Tue 14-01-25 17:23:20, Alexei Starovoitov wrote:
> > On Tue, Jan 14, 2025 at 2:31 AM Michal Hocko <mhocko@xxxxxxxx> wrote:
> [...]
> > > LGTM, I am not entirely clear on kmsan_alloc_page part though.
> >
> > Which part is still confusing?
>
> It is not confusing as much as I have no idea how the kmsan code is
> supposed to work. Why do we even need to memset if __GFP_ZERO is used.

kmsan's main objective is to find uninitialized memory access.
So when the page is initialized kmsan needs to notice.
It's similar to kasan_unpoison logic.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux