Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()
From: Tony Luck
Date: Mon Oct 07 2019 - 15:49:33 EST
On Mon, Oct 7, 2019 at 12:09 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hmm? I thought ia64 did unaligneds ok.
If PSR.ac is set, we trap. If it isn't set, then model specific
(though all implementations will
trap for an unaligned access that crosses a 4K boundary).
Linux sets PSR.ac. Applications can use prctl(PR_SET_UNALIGN) to choose whether
they want the kernel to silently fix things or to send SIGBUS.
Kernel always noisily (rate limited) fixes up unaligned access.
Your patch does make all the messages go away.
Tested-by: Tony Luck <tony.luck@xxxxxxxxx>