Re: [RFC 0/4] Fix machine check recovery for copy_from_user

2021-04-09 Thread Aili Yao
On Thu, 8 Apr 2021 14:39:09 + "Luck, Tony" wrote: > > I have one scenario, may you take into account: > > > > If one copyin case occurs, write() returned by your patch, the user process > > may > > check the return values, for errors, it may exit the process, then the > > error page > >

RE: [RFC 0/4] Fix machine check recovery for copy_from_user

2021-04-08 Thread Luck, Tony
> I have one scenario, may you take into account: > > If one copyin case occurs, write() returned by your patch, the user process > may > check the return values, for errors, it may exit the process, then the error > page > will be freed, and then the page maybe alloced to other process or to

Re: [RFC 0/4] Fix machine check recovery for copy_from_user

2021-04-07 Thread Aili Yao
On Thu, 25 Mar 2021 17:02:31 -0700 Tony Luck wrote: > Maybe this is the way forward? I made some poor choices before > to treat poison consumption in the kernel when accessing user data > (get_user() or copy_from_user()) ... in particular assuming that > the right action was sending a SIGBUS to

[RFC 0/4] Fix machine check recovery for copy_from_user

2021-03-25 Thread Tony Luck
Maybe this is the way forward? I made some poor choices before to treat poison consumption in the kernel when accessing user data (get_user() or copy_from_user()) ... in particular assuming that the right action was sending a SIGBUS to the task as if it had synchronously accessed the poison