[OpenAFS] Further FreeBSD 11.1 Issues

Michael H Lambert lambert@psc.edu
Fri, 11 May 2018 13:38:45 -0400

I'm running 1.8.0 release with git commit =
54e84a98f9747bb5bb2ad4b8031115ad7684c914 cherry picked (yeah, that can =
be dangerous).  The OS is FreeBSD 11.1p10.

When stopping AFS, I see

# /usr/local/etc/rc.d/afsd onestop
afs_vop_reclaim: afs_FlushVCache failed code 16 vnode
vc 0xfffffe0035567000 vp 0xfffff80128cb61d8 tag afs, fid:, opens =
0, writ
ers 0
  states statd readonly
afs: WARM shutting down of: vcaches... BkG... CB... afs... CTrunc... =
Event... UnmaskRxkSignals... RxListener... osi_StopListener: =
rxk_ListenerPid 867
 ALL allocated tables... done
Warning: memory type afsmisc leaked memory on destroy (1794 allocations, =
bytes leaked).

The afs_FlushVCache message doesn't look like something I'd expect to =
see, but it doesn't seem *obvious* that it's doing harm.

However, things seem to be going further south on a reboot.  It looks =
like the same afs_FlushVCache routine:

Fatal trap 12: page fault while in kernel mode
cpuid =3D 1; apic id =3D 01
fault virtual address   =3D 0x1d4
fault code              =3D supervisor read data, page not present
instruction pointer     =3D 0x20:0xffffffff82693a0c
stack pointer           =3D 0x28:0xfffffe085e5675b0
frame pointer           =3D 0x28:0xfffffe085e5675e0
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 1090 (umount)
trap number             =3D 12
panic: page fault
cpuid =3D 2
KDB: stack backtrace:
#0 0xffffffff80aada57 at kdb_backtrace+0x67
#1 0xffffffff80a6bb36 at vpanic+0x186
#2 0xffffffff80a6b9a3 at panic+0x43
#3 0xffffffff80ee3192 at trap_fatal+0x322
#4 0xffffffff80ee31eb at trap_pfault+0x4b
#5 0xffffffff80ee2948 at trap+0x2a8
#6 0xffffffff80ec3bf0 at calltrap+0x8
#7 0xffffffff8269384b at afs_FlushVCache+0x24b
#8 0xffffffff82710d28 at afs_vop_reclaim+0x138
#9 0xffffffff810515b9 at VOP_RECLAIM_APV+0x89
#10 0xffffffff80b2a1cc at vgonel+0x21c
#11 0xffffffff80b29a38 at vflush+0x448
#12 0xffffffff8270be87 at afs_unmount+0x117
#13 0xffffffff80b2182c at dounmount+0x64c
#14 0xffffffff80b21110 at sys_unmount+0x3c0
#15 0xffffffff80ee3d74 at amd64_syscall+0x6c4
#16 0xffffffff80ec4422 at fast_syscall_common+0x106



Michael H Lambert, GigaPoP Manager             Phone: +1 412 268-4960
Pittsburgh Supercomputing Center/3ROX          FAX:   +1 412 268-5832
300 S Craig St, Pittsburgh, PA  15213 USA      lambert@psc.edu