On Wed, 2 Dec 2026 18:23:00 +0800 Wen Jiang <[email protected]> wrote:

> On Wed, 2 Dec 2026 at 17:45, Barry Song <[email protected]> wrote:
> >
> > On Wed, Dec 2, 2026 at 5:36 PM David Hildenbrand (Arm) <[email protected]> 
> > wrote:
> > [...]
> >
> > > >
> > > > Hi David,
> > > >
> > > > Thanks, the analysis is right. This patch sets VM_UNINITIALIZED on the
> > > > area until the mapping is complete, so show_busy_info() skips it the
> > > > same way vread_iter() does, and clear_vm_uninitialized_flag() orders
> > > > the stores to area->pages and area->nr_pages before the flag is
> > > > cleared. So this race is covered as well.
> > >
> > > Is this patch already upstream or could we still add Fixes and decide on 
> > > stable?
> >
> > It's still in mm-new/mm-unstable, so I think it's perfectly fine to
> > add a Fixes tag?

On Wed, 2 Dec 2026 10:13:34 +0100 "David Hildenbrand (Arm)" <[email protected]> 
wrote:

> Apparently this thing here fixes an issue:
> 
> When CONFIG_PROC_FS and CONFIG_NUMA are enabled, a race between vmap()
> called with VM_MAP_PUT_PAGES and a concurrent /proc/vmallocinfo read can
> cause a NULL pointer dereference in show_numa_info():

/proc/vmallocinfo is mode 0400.

And I am told that the vmap(VM_MAP_PUT_PAGES) callsites are also
privileged:

- i915 GVT setup: Host administrator creates a virtual GPU; this
  calls shmem_pin_map().

- i915 selftests: Must be built and enabled through driver/module
  setup; normally administrator controlled.  These also call
  shmem_pin_map().

- I/O-iterator KUnit test: Runs at boot or module load when
  configured; administrator controlled.

> Yes, the tag would be
> 
> Fixes: b944afc9d64d ("mm: add a VM_MAP_PUT_PAGES flag for vmap")
> 
> David, do you think it should also have Cc: stable?

The patch needs some dental work to make it apply to mainline and given
the above I'd say we skip cc:stable?

Reply via email to