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.