Re: [PATCH 01/13] mm: introduce vma_flags_can_grow() and vma_can_grow()
Lance Yang <[email protected]> Thu, 2 Jul 2026 15:27:50 +0800
| Newsgroups | gmane.comp.freedesktop.xorg.nouveau,gmane.linux.ports.mips,gmane.linux.kernel,gmane.linux.ports.ppc64.devel,gmane.comp.video.dri.devel,gmane.linux.ports.arm.kernel,gmane.linux.kernel.samsung-soc,gmane.comp.freedesktop.xorg.drivers.intel,gmane.linux.ports.arm.msm,gmane.comp.freedesktop.xorg.drivers.freedreno,gmane.linux.ports.arm.rockchip,gmane.linux.ports.tegra,gmane.comp.emulators.xen.devel,gmane.linux.kernel.aio.general,gmane.linux.file-systems,gmane.linux.kernel.mm,gmane.linux.sound |
|---|---|
| Message-ID | <20260702072750.45641-1-lance.yang__22156.1656495155$1782977752$gmane$org@linux.dev> |
On Mon, Jun 29, 2026 at 08:25:24PM +0100, Lorenzo Stoakes wrote: >These test whether the VMA has stack sematics, i.e. is able to grow upwards >or downwards depending on the architecture. > >In order to account for arches which do not support upward-growing stacks, >introduce VMA_GROWSUP whose definition depends on the architecture >supporting it, and use vma_flags_test_single_mask() in vma_flags_can_grow() >to account for this. > >Update the VMA userland tests to reflect the changes > >No functional change intended. > >Signed-off-by: Lorenzo Stoakes <[email protected]> >--- Nice cleanup! Feel free to add: Reviewed-by: Lance Yang <[email protected]>