On Mon, 30 Nov 2026, netd…@kernel.org wrote:
> - How the issue was discovered, e.g. hit in production, hit during
> development, syzbot report, manual code inspection, LLM or static
> analysis tool scan.
>
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by LLM and not proven at runtime). If it was triggered
> please include the symptoms, like the stack trace or kernel messages.
1. Discovery: Found during a GLM-5.4-assisted code audit of
net/xdp/xdp_umem.c and verified manually against v7.3.6 and mainline.
2. Testing: Compile-tested only (CONFIG_XDP_SOCKETS=y with -Werror); not
triggered at runtime. By inspection, setsockopt(XDP_UMEM_REG) on a
multi-page range where a trailing page is unmapped or read-only
(pin_user_pages() passes FOLL_WRITE) results in 0 < npgs < umem->npgs
and takes this error path.
Thanks,
Hu Xinyao