On Sep 2, 2020, at 5:54 AM, peterz@infradead.org wrote:
On Tue, Sep 01, 2020 at 09:18:57AM -0700, Nadav Amit wrote:
Unless I misunderstand the logic, __force_order should also be used by rdpkru() and wrpkru() which do not have dependency on __force_order. I also did not understand why native_write_cr0() has R/W dependency on __force_order, and why native_write_cr4() no longer has any dependency on __force_order.
There was a fairly large thread about this thing here:
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.kerne...
I didn't keep up, but I think the general concensus was that it's indeed a bit naf.
Thanks for pointer. I did not see the discussion, and embarrassingly, I have also never figured out how to reply on lkml emails without registering to lkml.
Anyhow, indeed, the patch that Arvind provided seems to address this issue.