Re: in:imklog segfault in 4.12+git on most sparc64's
From: David Miller
Date: Tue Jul 11 2017 - 23:13:51 EST
From: Meelis Roos <mroos@xxxxxxxx>
Date: Tue, 11 Jul 2017 14:48:27 +0300 (EEST)
>> I tested yesterdays git with 4.13 sparc merge on a big bunch of my test
>> machines.
>>
>> Good news: the timestamps starting from boot seem to work on all the
>> machines, starting with Ultra 1 and Ultra 2.
>>
>> Bad news: all working sun4u machines have the following line in dmesg
>> (PID varies):
>> in:imklog[1036]: segfault at 49 ip 0000000000035bb0 (rpc 00000000f779dfa0) sp 00000002f7a78818 error 30002 in rsyslogd[10000+88000]
>>
>> This is with Debian unstable 32-bit userland as of 2015 summer. It did
>> not happen with 4.12.
>
> I bisected it to the commit below. CC Al Viro.
>
> In following commits around this one (some bisect steps before, and the
> last step) the crashes were slightly different from the original crash
> yersterday, like
>
> in:imuxsock[1606]: segfault at fffffff8 ip 00000000f774e154 (rpc 00000000f774dfe8) sp 00000001f7965a68 error 30002 in libc-2.19.so[f76cc000+16a000]
>
> but this was the first commit introducing the crashes.
>
> d9e968cb9f849770288f5fde3d8d3a5f7e339052 is the first bad commit
> commit d9e968cb9f849770288f5fde3d8d3a5f7e339052
> Author: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> Date: Wed May 31 04:33:51 2017 -0400
>
> getrlimit()/setrlimit(): move compat to native
>
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>
> :040000 040000 5e1a0c25f4554ccdc824b18dc50078d379cdbf9a
> 6d820451a388c5771a2a410578365d14a0194e4e M kernel
I can't figure out what is wrong in this change, except that it does
two things at once.
It moves code, and changes it at the same time. That should have been
done in two changes.
Because of that, we can't tell which of the two things introduced the
regression.
Al?