Re: [PATCH v10 2/6] arm64: add support for machine check error safe

2024-01-30 Thread Tong Tiangen
在 2024/1/30 21:07, Mark Rutland 写道: On Tue, Jan 30, 2024 at 06:57:24PM +0800, Tong Tiangen wrote: 在 2024/1/30 1:51, Mark Rutland 写道: On Mon, Jan 29, 2024 at 09:46:48PM +0800, Tong Tiangen wrote: diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 55f6455a8284..312932dc100b 10

Re: [PATCH v10 2/6] arm64: add support for machine check error safe

2024-01-30 Thread Mark Rutland
On Tue, Jan 30, 2024 at 06:57:24PM +0800, Tong Tiangen wrote: > 在 2024/1/30 1:51, Mark Rutland 写道: > > On Mon, Jan 29, 2024 at 09:46:48PM +0800, Tong Tiangen wrote: > > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > > index 55f6455a8284..312932dc100b 100644 > > > --- a/arch/arm64

Re: [PATCH v10 2/6] arm64: add support for machine check error safe

2024-01-30 Thread Tong Tiangen
在 2024/1/30 1:51, Mark Rutland 写道: On Mon, Jan 29, 2024 at 09:46:48PM +0800, Tong Tiangen wrote: For the arm64 kernel, when it processes hardware memory errors for synchronize notifications(do_sea()), if the errors is consumed within the kernel, the current processing is panic. However, it is

Re: [PATCH v10 2/6] arm64: add support for machine check error safe

2024-01-29 Thread Mark Rutland
On Mon, Jan 29, 2024 at 09:46:48PM +0800, Tong Tiangen wrote: > For the arm64 kernel, when it processes hardware memory errors for > synchronize notifications(do_sea()), if the errors is consumed within the > kernel, the current processing is panic. However, it is not optimal. > > Take uaccess for

[PATCH v10 2/6] arm64: add support for machine check error safe

2024-01-29 Thread Tong Tiangen
For the arm64 kernel, when it processes hardware memory errors for synchronize notifications(do_sea()), if the errors is consumed within the kernel, the current processing is panic. However, it is not optimal. Take uaccess for example, if the uaccess operation fails due to memory error, only the u