Re: [bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

Jan Stancek
2019-12-09T08:26:50Z

----- Original Message -----
>
>
> On 12/6/19 6:09 PM, dftxbs3e wrote:
> > Hello!
> >
> > I am very happy that someone has found this issue.
> >
> > I have been suffering from rather random SIGBUS errors in similar
> > conditions described by the author.
> >
> > I don't have much troubleshooting information to provide, however, I hit
> > the issue regularly so I could investigate during that.
> >
> > How do you debug such an issue? I tried a debugger etc. but besides
> > crashing with SIGBUS, I couldnt get any other meaningful information.

If it's same issue, you could check if dropping caches helps.
Figure out what page is it with crash or systemtap and look at page->flags
and ((struct iomap_page *)page->private)->uptodate bitmap.

>
> You may want to test the patch Christoph sent on the original thread for
> this issue.

Or v5.5-rc1, Christoph's patch has been merged:
1cea335d1db1 ("iomap: fix sub-page uptodate handling")