Re: in:imklog segfault in 4.12+git on most sparc64's

From: Al Viro
Date: Wed Jul 12 2017 - 00:01:06 EST

> 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[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
w getrlimit()/setrlimit(): move compat to native
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> :040000 040000 5e1a0c25f4554ccdc824b18dc50078d379cdbf9a
> 6d820451a388c5771a2a410578365d14a0194e4e M kernel
> --
> Meelis Roos (mroos@xxxxxxxx)

With apologies for ed scripts,

ed kernel/sys.c <<'EOF'
/struct rlimit r32/s/rlimit/compat_&/

AFAICS, that should fix it. If it does, commit message would be

fix a braino in compat_sys_getrlimit()

Fixes: commit d9e968cb9f84 "getrlimit()/setrlimit(): move compat to native"
Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

Again, my apologies for format of that all - I'm almost completely
off-net and while typing an ed script is feasible, context diff is
too far over the top. Usimg mutt in ssh session from android is
not fun, to put it mildly...