Panic restarting on Big Sur

All your general support questions for OpenZFS on OS X.

Panic restarting on Big Sur

Postby Marco » Wed Dec 16, 2020 12:15 am

Hi. I was happily running OpenZFS on Catalina on my Intel MacBook Air (13inch, 2017, with 8 G 1600 MHz DDR3).

Yesterday I upgraded to Big Sur 11.0.1, then I installed OpenZFS. When I restarted for the first time, I had a kernel panic. I had to restart, and it was repeated.

So I restarted in safe mode, holding Shift.The start up process completed correctly, and I saved the panic report. I post it here:

Code: Select all
panic(cpu 0 caller 0xffffff80061efa76): Kernel trap at 0xffffff7fa76e4782, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffff80093e4008, CR3: 0x000000000a06e000, CR4: 0x00000000003626e0
RAX: 0x00000000000060e2, RBX: 0xffffff80093e4008, RCX: 0xffffff8005f60000, RDX: 0x0000000000000000
RSP: 0xffffffb07b3ebcb0, RBP: 0xffffffb07b3ebcf0, RSI: 0xffffff8006011148, RDI: 0xffffff8006010020
R8:  0x00000006ea4b0ed1, R9:  0x0000000000000000, R10: 0x0000020000011000, R11: 0xffffffa026f71280
R12: 0x0000000000000000, R13: 0xffffff8006011188, R14: 0x0000000000000000, R15: 0xffffff800978f9c8
RFL: 0x0000000000010246, RIP: 0xffffff7fa76e4782, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0xffffff80093e4008, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 2

Backtrace (CPU 0), Frame : Return Address
0xffffffb07b3eb6d0 : 0xffffff80060bc66d
0xffffffb07b3eb720 : 0xffffff80061ff073
0xffffffb07b3eb760 : 0xffffff80061ef6aa
0xffffffb07b3eb7b0 : 0xffffff8006061a2f
0xffffffb07b3eb7d0 : 0xffffff80060bbf0d
0xffffffb07b3eb8f0 : 0xffffff80060bc1f8
0xffffffb07b3eb960 : 0xffffff80068bee1a
0xffffffb07b3eb9d0 : 0xffffff80061efa76
0xffffffb07b3ebb50 : 0xffffff80061ef75d
0xffffffb07b3ebba0 : 0xffffff8006061a2f
0xffffffb07b3ebbc0 : 0xffffff7fa76e4782
0xffffffb07b3ebcf0 : 0xffffff7fa76e4031
0xffffffb07b3ebd40 : 0xffffff7fa76e3dcd
0xffffffb07b3ebd90 : 0xffffff7fa754e296
0xffffffb07b3ebdd0 : 0xffffff80067ef09b
0xffffffb07b3ebe40 : 0xffffff80067eec46
0xffffffb07b3ebef0 : 0xffffff80067eddcf
0xffffffb07b3ebf50 : 0xffffff80067f0b46
0xffffffb07b3ebfa0 : 0xffffff800606113e
      Kernel Extensions in backtrace:
         net.lundman.zfs(2.0)[CAE25768-6E1C-3371-979C-4687214D912D]@0xffffff7fa744a000->0xffffff7fa7779fff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[3FE3BE82-782C-3D93-8EFA-F06A4594D17C]@0xffffff8008b37000->0xffffff8008b48fff

Process name corresponding to current thread: kernel_task

Mac OS version:
20B50

Kernel version:
Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64
Kernel UUID: 84C6DC45-6B02-335F-9439-5D2A9BC385A4
KernelCache slide: 0x0000000005e00000
KernelCache base:  0xffffff8006000000
Kernel slide:      0x0000000005e10000
Kernel text base:  0xffffff8006010000
__HIB  text base: 0xffffff8005f00000
System model name: MacBookAir7,2 (Mac-937CB26E2E02BB01)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 29702713887
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x00000006ea6b7865
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x0000000cffd46e6e 0x0000000000000000
last started kext at 28828694981: >!APlatformEnabler   2.7.0d0 (addr 0xffffff7fa56d0000, size 8192)
loaded kexts:
net.lundman.zfs   2.0.0
>!APlatformEnabler   2.7.0d0
>AGPM   119
>X86PlatformShim   1.0.0
@fileutil   20.036.15
@filesystems.autofs   3.0
>!AGraphicsDevicePolicy   6.1.27
@AGDCPluginDisplayMetrics   6.1.27
>pmtelemetry   1
>LuaHardwareAccess   1.0.16
|IOUserEthernet   1.0.1
>usb.!UUserHCI   1
|IO!BSerialManager   8.0.1f5
>AGDCBacklightControl   6.1.27
>!ABacklight   180.3
@Dont_Steal_Mac_OS_X   7.0.0
>!AHV   1
>!AHDAHardwareConfigDriver   283.15
>!AMCCSControl   1.14
>!ADiskImages2   1
>!A!IBDWGraphics   16.0.0
>!AHDA   283.15
>eficheck   1
>!ALPC   3.1
>!ASMCLMU   212
>!A!IBDWGraphicsFramebuffer   16.0.0
>!AThunderboltIP   4.0.3
>ACPI_SMC_PlatformPlugin   1.0.0
>!ACameraInterface   7.6.0
>!A!ISlowAdaptiveClocking   4.0.0
>!AFIVRDriver   4.1.0
|IO!BUSBDFU   8.0.1f5
|SCSITaskUserClient   436.40.6
>!UCardReader   511.40.9
>!AFileSystemDriver   3.0.1
@filesystems.tmpfs   1
@filesystems.hfs.kext   556.41.1
@BootCache   40
@!AFSCompression.!AFSCompressionTypeZlib   1.0.0
@!AFSCompression.!AFSCompressionTypeDataless   1.0.0d1
>!ATopCaseHIDEventDriver   4000.27
@filesystems.apfs   1677.50.1
>!AAHCIPort   346
>AirPort.BrcmNIC   1400.1.1
@private.KextAudit   1.0
>!ASmartBatteryManager   161.0.0
>!ARTC   2.0
>!AACPIButtons   6.1
>!AHPET   1.8
>!ASMBIOS   2.1
>!AACPIEC   6.1
>!AAPIC   1.7
@!ASystemPolicy   2.0.0
@nke.applicationfirewall   310
|IOKitRegistryCompatibility   1
|EndpointSecurity   1
@kext.triggers   1.0
>!AGraphicsControl   6.1.27
|IOSerial!F   11
|IOAVB!F   900.12
>!ABacklightExpert   1.1.0
>!ASMBus!C   1.0.18d1
>DspFuncLib   283.15
@kext.OSvKernDSPLib   529
@!AGPUWrangler   6.1.27
|IONDRVSupport   585
@plugin.IOgPTPPlugin   900.11
|IOEthernetAVB!C   1.1.0
>!ASMBusPCI   1.0.14d1
|IOAccelerator!F2   439.35.4
@!AGraphicsDeviceControl   6.1.27
>!AThunderboltEDMSink   5.0.3
>!AThunderboltDPOutAdapter   8.1.4
>!AHDA!C   283.15
|IOHDA!F   283.15
|IOGraphics!F   585
|IOAudio!F   300.6.1
@vecLib.kext   1.2.0
>IOPlatformPluginLegacy   1.0.0
>X86PlatformPlugin   1.0.0
>IOPlatformPlugin!F   6.0.0d8
|IOSlowAdaptiveClocking!F   1.0.0
|Broadcom!BHost!CUSBTransport   8.0.1f5
|IO!BHost!CUSBTransport   8.0.1f5
|IO!BHost!CTransport   8.0.1f5
>usb.IOUSBHostHIDDevice   1.2
>usb.!UHub   1.2
>usb.cdc   5.0.0
>usb.networking   5.0.0
>usb.!UHostCompositeDevice   1.2
>!AThunderboltPCIDownAdapter   4.1.1
>!AThunderboltDPInAdapter   8.1.4
>!AThunderboltDPAdapter!F   8.1.4
>!ABSDKextStarter   3
|IOSurface   289.3
@filesystems.hfs.encodings.kext   1
>!AMultitouchDriver   4400.28
>!AInputDeviceSupport   4400.35
>!AHS!BDriver   4000.27
>IO!BHIDDriver   8.0.1f5
>!AHIDKeyboard   222
>!AHSSPIHIDDriver   61
>!AXsanScheme   3
|IOAHCIBlock!S   332
|IOAHCI!F   294
>!AThunderboltNHI   7.2.8
|IOThunderbolt!F   9.3.2
|IO80211!F   1200.12.2b1
|IOSkywalk!F   1
>mDNSOffloadUserClient   1.0.1b8
>corecapture   1.0.4
>usb.!UHostPacketFilter   1.0
|IOUSB!F   900.4.2
>!AHSSPISupport   61
>!A!ILpssSpi!C   3.0.60
>!A!ILpssI2C   3.0.60
>!A!ILpssDmac   3.0.60
>!A!ILpssGspi   3.0.60
>usb.!UXHCIPCI   1.2
>usb.!UXHCI   1.2
>!AEFINVRAM   2.1
>!AEFIRuntime   2.1
|IOSMBus!F   1.1
|IOHID!F   2.0.0
$!AImage4   3.0.0
|IOTimeSync!F   900.11
|IONetworking!F   3.4
>DiskImages   493.0.0
|IO!B!F   8.0.1f5
|IOReport!F   47
|IO!BPacketLogger   8.0.1f5
$quarantine   4
$sandbox   300.0
@kext.!AMatch   1.0.0d1
|CoreAnalytics!F   1
>!ASSE   1.0
>!AKeyStore   2
>!UTDM   511.40.9
|IOUSBMass!SDriver   184.40.6
|IOSCSIBlockCommandsDevice   436.40.6
|IO!S!F   2.1
|IOSCSIArchitectureModel!F   436.40.6
>!AMobileFileIntegrity   1.0.5
@kext.CoreTrust   1
>!AFDEKeyStore   28.30
>!AEffaceable!S   1.0
>!ACredentialManager   1.0
>KernelRelayHost   1
|IOUSBHost!F   1.2
>!UHostMergeProperties   1.2
>usb.!UCommon   1.0
>!ABusPower!C   1.0
>!ASEPManager   1.0.1
>IOSlaveProcessor   1
>!AACPIPlatform   6.1
>!ASMC   3.1.9
|IOPCI!F   2.9
|IOACPI!F   1.4
>watchdog   1
@kec.pthread   1
@kec.corecrypto   1.0
@kec.Libm   1


I decided to uninstall OpenZFS, so as to be able to install to update to Big Sur 11.1.
If anybody can help, I would be grateful.
Please let me know if any more information is needed.
Marco
 
Posts: 38
Joined: Tue Mar 25, 2014 1:39 am

Re: Panic restarting on Big Sur

Postby mike0810 » Wed Dec 16, 2020 12:53 am

Did you enable keepsyms=1 in your nvram boot settings?

In terminal, type

sudo nvram boot-args="keepsyms=1"

Then reboot, reinstall the newest package from

viewtopic.php?f=20&t=3478
mike0810
 
Posts: 55
Joined: Fri Jan 16, 2015 5:17 pm

Re: Panic restarting on Big Sur

Postby Marco » Wed Dec 16, 2020 1:05 am

Thank you, I will try this and I will let you know.
Marco
 
Posts: 38
Joined: Tue Mar 25, 2014 1:39 am

Re: Panic restarting on Big Sur

Postby Marco » Wed Dec 16, 2020 1:45 am

Terminal doesn't allow me to execute the command.

It says:

nvram: Error setting variable - 'boot-args': (iokit/common) not permitted

Another piece of information. I don't know if it is relevant.
I have also found old OpenZFS extensions in /Library/StagedExtensions/Library/Extensions
They are spl.kext and zfs.kext.
spl.kext is 1.9.4 and was created and modified on 28 February 2020.
zfs.kext is 2.0.0, was created on 28 Feb 2020 and modified on 20 November 2020.

I have reset the PRAM and tried to reinstall, but the panic at startup was repeated.
Marco
 
Posts: 38
Joined: Tue Mar 25, 2014 1:39 am

Re: Panic restarting on Big Sur

Postby mike0810 » Wed Dec 16, 2020 2:31 am

sudo kextcache --clear-staging

Also, boot args nvram has to be edited in the recovery mode, so boot with cmd-r into recovery partition.
mike0810
 
Posts: 55
Joined: Fri Jan 16, 2015 5:17 pm

Re: Panic restarting on Big Sur

Postby Marco » Wed Dec 16, 2020 4:46 am

I followed your intructions, and this time there was no panic.

I am sorry for missing the same intruction in the download page. I read it three weeks ago when it wasn't relevant for me, because I was still on Catalina, and I became blind to it when it made the difference on Big Sur.

Thank you very much for your patience.
Marco
 
Posts: 38
Joined: Tue Mar 25, 2014 1:39 am

Re: Panic restarting on Big Sur

Postby mike0810 » Wed Dec 16, 2020 4:47 am

No issue, good that it works again :)
mike0810
 
Posts: 55
Joined: Fri Jan 16, 2015 5:17 pm

Re: Panic restarting on Big Sur

Postby ath » Thu Dec 17, 2020 7:43 am

I'm sometimes (70% of cases?) encountering a (seemingly different, RIP = 0) panic when mounting an encrypted volume:

Code: Select all
panic(cpu 4 caller 0xffffff80071efa76): Kernel trap at 0x0000000000000000, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000000, CR3: 0x0000000d8635e0af, CR4: 0x00000000003626e0
RAX: 0xffffff7fa89bbd98, RBX: 0xffffff87196387f0, RCX: 0x1719e508f98b0027, RDX: 0xffffffc1d4c8b89c
RSP: 0xffffffc1d4c8b888, RBP: 0xffffffc1d4c8b8f0, RSI: 0xffffffc1d4c8b8a0, RDI: 0xffffff87196387f0
R8:  0x123456789abcdef0, R9:  0x123456789abcdef0, R10: 0x000000044b82fe44, R11: 0x0000000000000000
R12: 0xffffffc1d4c8b980, R13: 0xffffffc1d4c8b908, R14: 0xffffffc189a4e040, R15: 0xffffffc1d4c8b908
RFL: 0x0000000000010286, RIP: 0x0000000000000000, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000010, Fault CPU: 0x4, PL: 0, VF: 0

Backtrace (CPU 4), Frame : Return Address
0xffffffc1d4c8b2a0 : 0xffffff80070bc66d mach_kernel : _handle_debugger_trap + 0x3dd
0xffffffc1d4c8b2f0 : 0xffffff80071ff073 mach_kernel : _kdp_i386_trap + 0x143
0xffffffc1d4c8b330 : 0xffffff80071ef6aa mach_kernel : _kernel_trap + 0x55a
0xffffffc1d4c8b380 : 0xffffff8007061a2f mach_kernel : _return_from_trap + 0xff
0xffffffc1d4c8b3a0 : 0xffffff80070bbf0d mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffc1d4c8b4c0 : 0xffffff80070bc1f8 mach_kernel : _panic_trap_to_debugger + 0x268
0xffffffc1d4c8b530 : 0xffffff80078bee1a mach_kernel : _panic + 0x54
0xffffffc1d4c8b5a0 : 0xffffff80071efa76 mach_kernel : _sync_iss_to_iks + 0x2c6
0xffffffc1d4c8b720 : 0xffffff80071ef75d mach_kernel : _kernel_trap + 0x60d
0xffffffc1d4c8b770 : 0xffffff8007061a2f mach_kernel : _return_from_trap + 0xff
0xffffffc1d4c8b790 : 0x0
0xffffffc1d4c8b8f0 : 0xffffff7fa84a74e3 net.lundman.zfs : _dsl_deleg_access_impl + 0x183
0xffffffc1d4c8ba30 : 0xffffff7fa85434e1 net.lundman.zfs : _zfs_secpolicy_write_perms + 0xd1
0xffffffc1d4c8ba80 : 0xffffff7fa85451a3 net.lundman.zfs : _zfsdev_ioctl_common + 0x443
0xffffffc1d4c8bb40 : 0xffffff7fa854f838 net.lundman.zfs : _zfsdev_ioctl + 0x68
0xffffffc1d4c8bb80 : 0xffffff8007389595 mach_kernel : _spec_ioctl + 0x75
0xffffffc1d4c8bbb0 : 0xffffff800737da1e mach_kernel : _VNOP_IOCTL + 0x1ce
0xffffffc1d4c8bc30 : 0xffffff800736ebac mach_kernel : _utf8_normalizeOptCaseFoldAndMatchSubstring + 0xefc
0xffffffc1d4c8be30 : 0xffffff8007678cd4 mach_kernel : _ioctl + 0x514
0xffffffc1d4c8bf40 : 0xffffff8007769ceb mach_kernel : _unix_syscall64 + 0x27b
0xffffffc1d4c8bfa0 : 0xffffff80070621f6 mach_kernel : _hndl_unix_scall64 + 0x16
      Kernel Extensions in backtrace:
         net.lundman.zfs(2.0)[CAE25768-6E1C-3371-979C-4687214D912D]@0xffffff7fa844e000->0xffffff7fa877dfff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[3FE3BE82-782C-3D93-8EFA-F06A4594D17C]@0xffffff8009b37000->0xffffff8009b48fff

Process name corresponding to current thread: zfs
Boot args: -v keepsyms=1 debug=0x100 chunklist-security-epoch=0 -chunklist-no-rev2-dev chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version:
20B29

Kernel version:
Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64
Kernel UUID: 84C6DC45-6B02-335F-9439-5D2A9BC385A4
KernelCache slide: 0x0000000006e00000
KernelCache base:  0xffffff8007000000
Kernel slide:      0x0000000006e10000
Kernel text base:  0xffffff8007010000
__HIB  text base: 0xffffff8006f00000
System model name: iMac18,3 (Mac-XXXXXXXXXX)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0


Running on a not-quite-official Mac.

Edit: Probably worth mentioning: this also crashes when entering a completely incorrect password.
ath
 
Posts: 3
Joined: Wed Sep 28, 2016 5:10 pm

Re: Panic restarting on Big Sur

Postby lundman » Sat Dec 19, 2020 2:54 pm

OK, tallica on IRC figured out that this panic happens if you forget to use sudo. If I can replicate that, I can fix it today.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Panic restarting on Big Sur

Postby ath » Sun Dec 20, 2020 9:33 am

lundman wrote:OK, tallica on IRC figured out that this panic happens if you forget to use sudo. If I can replicate that, I can fix it today.

I can confirm that adding a "sudo" indeed prevents this from crashing. Good to know a a workaround, thanks! I guess I must have subconsciously added a "sudo" for the 30% of attempts where it worked before!
ath
 
Posts: 3
Joined: Wed Sep 28, 2016 5:10 pm

Next

Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 22 guests