[RFC PATCH v2 1/2] ARM/mm/fault: always goto bad_area when handling with page faults of kernel address
Russell King (Oracle)
linux at armlinux.org.uk
Fri Nov 28 09:01:18 PST 2025
On Fri, Nov 28, 2025 at 01:03:59PM +0100, Sebastian Andrzej Siewior wrote:
> On 2025-11-28 10:27:56 [+0800], Xie Yuanbin wrote:
> > According to the discussion, it might be better to handle the kernel
> > address fault directly, just like what x86 does, instead of finding VMA.
>
> the kernel fault shouldn't have a VMA
>
> > Link: https://elixir.bootlin.com/linux/v6.18-rc7/source/arch/x86/mm/fault.c#L1473
> > ```c
> > if (unlikely(fault_in_kernel_space(address)))
> > do_kern_addr_fault(regs, error_code, address);
> > else
> > do_user_addr_fault(regs, error_code, address);
> > ```
> >
> > It seems your patches hasn't been merged into the linux-next branch yet.
>
> I hope Russell will add them once he gets to it. They got reviewed, I
> added them to the patch system.
I'm not sure which patches you're talking about, but discussion is
still ongoing, so it would be greatly premature to merge anything.
https://lore.kernel.org/r/aSmUnZZATTn3JD7m@willie-the-truck
There are now many threads each with their own discussion, which
makes it more difficult to work out which is the implementation that
should be merged. Clearly, not everyone knows about the other
discussion threads.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list