[OpenAFS-devel] Latest build kernel panic on AIX 6.1 6100-09-12

Ben Huntsman ben@huntsmans.net
Tue, 16 Aug 2022 16:30:03 +0000


--_000_MWHPR0701MB367432E912977C828DB0CC18A76B9MWHPR0701MB3674_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Awesome!  Ok, I switched back to master, did a git pull, then rebased my to=
pic on origin/master and recompiled.  We got further, but still panic:

# /opt/openafs/sbin/afsd -stat 300 -dcache 100 -daemons 2 -volumes 50
afs: Binding rx to 0.0.0.0:7001
Starting AFS cache scan...afsd: All AFS daemons started.


Here's the stack trace from the kernel dump:

CRASH INFORMATION:
CPU 0 CSA F00000002FF47600 at time of crash, error code for LEDs: 30000000
pvthread+01B000 STACK:
[F1000000C04A2DB0]afs_mount+0001F0 (F1000A03E0251110, F1000A03E0911C7C,
   F1000000C04A2BC0)
[F1000000C0499CB0]vfs_mount+000090 (F1000A03E0251110, F1000A03E0911C7C)
[00014D70].hkey_legacy_gate+00004C ()
[006155AC]vfs_mount+00002C (??, ??)
[00701D7C]smount+0004FC (??)
[00702AC8]vmount+000248 (??, ??)
[00003888]mfspurr_sc_flih01+0000E4 ()
[kdb_get_virtual_memory] no real storage @ 2FF1F4F8
[10001918]10001918 ()
[kdb_read_mem] no real storage @ FFFFFFFFFFF6130


And here's the mst:

Machine State Save Area
iar   : F1000000C04A2DB0  msr   : 8000000000009032  cr    : 22222024
lr    : F1000000C04A2D78  ctr   : 0000000000043740  xer   : 20000008
mq    : DEADBEEF  asr   : FFFFFFFFFFFFFFFF  amr   : 0008C00000000000
r0  : F1000000C04A2D78  r1  : F00000002FF471F0  r2  : F1000000C05955A0
r3  : 0000000000000001  r4  : 0000000000000000  r5  : 000000000000000D
r6  : F1000A03E0911C7C  r7  : 0000000000000000  r8  : 0000000000000000
r9  : 0000000000000007  r10 : 003B32F62EFD4E61  r11 : 0008C00000000000
r12 : 0000000000014F54  r13 : F1000A03E04A1400  r14 : 0000000000000009
r15 : 000000002FF22CAC  r16 : 000000002FF22CD4  r17 : 00000000DEADBEEF
r18 : 00000000DEADBEEF  r19 : 00000000000034E0  r20 : FFFFFFFFFFFFFFFF
r21 : FFFFFFFFFFFFFFFF  r22 : F1000A03E0251110  r23 : F3FCC00000000000
r24 : 00000000009EA3A8  r25 : 0000000000000000  r26 : 0000000000000001
r27 : FFFFFFFFFFFFFFFF  r28 : 0000000000000000  r29 : 0000000000000000
r30 : 0000000000000000  r31 : F1000000C0560B10

prev      0000000000000000 stackfix  0000000000000000 int_ticks 0000
cfar      F1000000C04A2B7C
kjmpbuf   0000000000000000 excbranch 0000000000000000 no_pfault 00
intpri    0B               backt     00               flags     00
hw_fru_id 00000000         hw_cpu_id 00000000
fpscr     0000000000000000 fpscrx    00000000         fpowner   00
fpeu      01               fpinfo    00               alloc     F000
o_iar     F1000000C04A2DB0 o_toc     F1000000C05955A0
o_arg1    0000000000000001 o_vaddr   0000000000000004
krlockp   0000000000000000 rmgrwa    F1000816B0035E20
amrstackhigh  F00000002FFCCFF0 amrstacklow   F00000002FFCC000
amrstackcur   F00000002FFCCFE0 amrstackfix   0000000000000000
kstackhigh    0000000000000000 kstacksize    00000000
frrstart  700DFEED00000000 frrend    700DFEED00000000
frrcur    700DFEED00000000 frrstatic 0000 kjmpfrroff 0000
frrovcnt  0000 frrbarrcnt 0000 frrmask 00 callrmgr 00
Except :
excp_type 00000086  EXCEPT_PROT
 orgea 0000000000000004 dsisr 000000000A000000  bit set: DSISR_PROT DSISR_S=
T
 vmh   0000000010002510 curea 0000000000000004 pftyp 4000000000000106


Looks like we're getting close now!

Thanks!

-Ben

________________________________
From: Benjamin Kaduk <kaduk@mit.edu>
Sent: Tuesday, August 16, 2022 8:46 AM
To: Ben Huntsman <ben@huntsmans.net>
Cc: Jeffrey E Altman <jaltman@auristor.com>; openafs-devel@openafs.org <ope=
nafs-devel@openafs.org>
Subject: Re: [OpenAFS-devel] Latest build kernel panic on AIX 6.1 6100-09-1=
2

On Tue, Aug 16, 2022 at 03:19:39PM +0000, Ben Huntsman wrote:
> Hey there!
>    Thank you, I will give that a try.
>
>    Dumb question though, how do I cherry-pick that commit into my topic b=
ranch?

Well ... in this case, since it was a simple+obvious fix I already merged
it into master, so you can just re-fetch the tip of master.

But in the general case, you'd need to be managing patches locally,
presumably with cherry-pick.  (The project in general uses a
cherry-pick-based workflow; the only times I remember using merge commits
are in the aftermath of security releases, e.g., if I need to make a
release that's "previous release plus security fix" but the existing
release branch is not suitable, and then I merge the security-fix branch
back in.)  Gerrit exposes each revision of each changeset as a distinct ref
that's fetchable -- in the upper right of the page there's a "Download"
dropdown that gives the command to fetch and checkout/cherry-pick/etc. the
specific change in question.  I'll also note that often a given change in
gerrit is part of a stack of changes, so you may need to grab predecessor
commits as well as the named one (but this one was standalone).

-Ben

--_000_MWHPR0701MB367432E912977C828DB0CC18A76B9MWHPR0701MB3674_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Awesome!&nbsp; Ok, I switched back to master, did a git pull, then rebased =
my topic on origin/master and recompiled.&nbsp; We got further, but still p=
anic:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
# /opt/openafs/sbin/afsd -stat 300 -dcache 100 -daemons 2 -volumes 50
<div>afs: Binding rx to 0.0.0.0:7001</div>
<div>Starting AFS cache scan...afsd: All AFS daemons started.</div>
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Here's the stack trace from the kernel dump:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
CRASH INFORMATION:
<div>CPU 0 CSA F00000002FF47600 at time of crash, error code for LEDs: 3000=
0000</div>
<div>pvthread+01B000 STACK:</div>
<div>[F1000000C04A2DB0]afs_mount+0001F0 (F1000A03E0251110, F1000A03E0911C7C=
,</div>
<div>&nbsp; &nbsp;F1000000C04A2BC0)</div>
<div>[F1000000C0499CB0]vfs_mount+000090 (F1000A03E0251110, F1000A03E0911C7C=
)</div>
<div>[00014D70].hkey_legacy_gate+00004C ()</div>
<div>[006155AC]vfs_mount+00002C (??, ??)</div>
<div>[00701D7C]smount+0004FC (??)</div>
<div>[00702AC8]vmount+000248 (??, ??)</div>
<div>[00003888]mfspurr_sc_flih01+0000E4 ()</div>
<div>[kdb_get_virtual_memory] no real storage @ 2FF1F4F8</div>
<div>[10001918]10001918 ()</div>
<div>[kdb_read_mem] no real storage @ FFFFFFFFFFF6130</div>
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
And here's the mst:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Machine State Save Area
<div>iar &nbsp; : F1000000C04A2DB0 &nbsp;msr &nbsp; : 8000000000009032 &nbs=
p;cr &nbsp; &nbsp;: 22222024</div>
<div>lr &nbsp; &nbsp;: F1000000C04A2D78 &nbsp;ctr &nbsp; : 0000000000043740=
 &nbsp;xer &nbsp; : 20000008</div>
<div>mq &nbsp; &nbsp;: DEADBEEF &nbsp;asr &nbsp; : FFFFFFFFFFFFFFFF &nbsp;a=
mr &nbsp; : 0008C00000000000</div>
<div>r0 &nbsp;: F1000000C04A2D78 &nbsp;r1 &nbsp;: F00000002FF471F0 &nbsp;r2=
 &nbsp;: F1000000C05955A0</div>
<div>r3 &nbsp;: 0000000000000001 &nbsp;r4 &nbsp;: 0000000000000000 &nbsp;r5=
 &nbsp;: 000000000000000D</div>
<div>r6 &nbsp;: F1000A03E0911C7C &nbsp;r7 &nbsp;: 0000000000000000 &nbsp;r8=
 &nbsp;: 0000000000000000</div>
<div>r9 &nbsp;: 0000000000000007 &nbsp;r10 : 003B32F62EFD4E61 &nbsp;r11 : 0=
008C00000000000</div>
<div>r12 : 0000000000014F54 &nbsp;r13 : F1000A03E04A1400 &nbsp;r14 : 000000=
0000000009</div>
<div>r15 : 000000002FF22CAC &nbsp;r16 : 000000002FF22CD4 &nbsp;r17 : 000000=
00DEADBEEF</div>
<div>r18 : 00000000DEADBEEF &nbsp;r19 : 00000000000034E0 &nbsp;r20 : FFFFFF=
FFFFFFFFFF</div>
<div>r21 : FFFFFFFFFFFFFFFF &nbsp;r22 : F1000A03E0251110 &nbsp;r23 : F3FCC0=
0000000000</div>
<div>r24 : 00000000009EA3A8 &nbsp;r25 : 0000000000000000 &nbsp;r26 : 000000=
0000000001</div>
<div>r27 : FFFFFFFFFFFFFFFF &nbsp;r28 : 0000000000000000 &nbsp;r29 : 000000=
0000000000</div>
<div>r30 : 0000000000000000 &nbsp;r31 : F1000000C0560B10</div>
<div><br>
</div>
<div>prev &nbsp; &nbsp; &nbsp;0000000000000000 stackfix &nbsp;0000000000000=
000 int_ticks 0000</div>
<div>cfar &nbsp; &nbsp; &nbsp;F1000000C04A2B7C</div>
<div>kjmpbuf &nbsp; 0000000000000000 excbranch 0000000000000000 no_pfault 0=
0</div>
<div>intpri &nbsp; &nbsp;0B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; backt &nbsp; &nbsp; 00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f=
lags &nbsp; &nbsp; 00</div>
<div>hw_fru_id 00000000 &nbsp; &nbsp; &nbsp; &nbsp; hw_cpu_id 00000000</div=
>
<div>fpscr &nbsp; &nbsp; 0000000000000000 fpscrx &nbsp; &nbsp;00000000 &nbs=
p; &nbsp; &nbsp; &nbsp; fpowner &nbsp; 00</div>
<div>fpeu &nbsp; &nbsp; &nbsp;01 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; fpinfo &nbsp; &nbsp;00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; alloc &nbsp; &nbsp; F000</div>
<div>o_iar &nbsp; &nbsp; F1000000C04A2DB0 o_toc &nbsp; &nbsp; F1000000C0595=
5A0</div>
<div>o_arg1 &nbsp; &nbsp;0000000000000001 o_vaddr &nbsp; 0000000000000004</=
div>
<div>krlockp &nbsp; 0000000000000000 rmgrwa &nbsp; &nbsp;F1000816B0035E20</=
div>
<div>amrstackhigh &nbsp;F00000002FFCCFF0 amrstacklow &nbsp; F00000002FFCC00=
0</div>
<div>amrstackcur &nbsp; F00000002FFCCFE0 amrstackfix &nbsp; 000000000000000=
0</div>
<div>kstackhigh &nbsp; &nbsp;0000000000000000 kstacksize &nbsp; &nbsp;00000=
000</div>
<div>frrstart &nbsp;700DFEED00000000 frrend &nbsp; &nbsp;700DFEED00000000</=
div>
<div>frrcur &nbsp; &nbsp;700DFEED00000000 frrstatic 0000 kjmpfrroff 0000</d=
iv>
<div>frrovcnt &nbsp;0000 frrbarrcnt 0000 frrmask 00 callrmgr 00</div>
<div>Except :</div>
<div>excp_type 00000086 &nbsp;EXCEPT_PROT</div>
<div>&nbsp;orgea 0000000000000004 dsisr 000000000A000000 &nbsp;bit set: DSI=
SR_PROT DSISR_ST</div>
<div>&nbsp;vmh &nbsp; 0000000010002510 curea 0000000000000004 pftyp 4000000=
000000106</div>
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Looks like we're getting close now!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Thanks!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
-Ben</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Benjamin Kaduk &lt;ka=
duk@mit.edu&gt;<br>
<b>Sent:</b> Tuesday, August 16, 2022 8:46 AM<br>
<b>To:</b> Ben Huntsman &lt;ben@huntsmans.net&gt;<br>
<b>Cc:</b> Jeffrey E Altman &lt;jaltman@auristor.com&gt;; openafs-devel@ope=
nafs.org &lt;openafs-devel@openafs.org&gt;<br>
<b>Subject:</b> Re: [OpenAFS-devel] Latest build kernel panic on AIX 6.1 61=
00-09-12</font>
<div>&nbsp;</div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">On Tue, Aug 16, 2022 at 03:19:39PM +0000, Ben Hunt=
sman wrote:<br>
&gt; Hey there!<br>
&gt;&nbsp;&nbsp;&nbsp; Thank you, I will give that a try.<br>
&gt; <br>
&gt;&nbsp;&nbsp;&nbsp; Dumb question though, how do I cherry-pick that comm=
it into my topic branch?<br>
<br>
Well ... in this case, since it was a simple+obvious fix I already merged<b=
r>
it into master, so you can just re-fetch the tip of master.<br>
<br>
But in the general case, you'd need to be managing patches locally,<br>
presumably with cherry-pick.&nbsp; (The project in general uses a<br>
cherry-pick-based workflow; the only times I remember using merge commits<b=
r>
are in the aftermath of security releases, e.g., if I need to make a<br>
release that's &quot;previous release plus security fix&quot; but the exist=
ing<br>
release branch is not suitable, and then I merge the security-fix branch<br=
>
back in.)&nbsp; Gerrit exposes each revision of each changeset as a distinc=
t ref<br>
that's fetchable -- in the upper right of the page there's a &quot;Download=
&quot;<br>
dropdown that gives the command to fetch and checkout/cherry-pick/etc. the<=
br>
specific change in question.&nbsp; I'll also note that often a given change=
 in<br>
gerrit is part of a stack of changes, so you may need to grab predecessor<b=
r>
commits as well as the named one (but this one was standalone).<br>
<br>
-Ben<br>
</div>
</span></font></div>
</body>
</html>

--_000_MWHPR0701MB367432E912977C828DB0CC18A76B9MWHPR0701MB3674_--