OpenZFS-2.0-release report

All your general support questions for OpenZFS on OS X.

Re: OpenZFS-2.0-release report

Postby tallica » Sat Dec 19, 2020 1:44 am

Hello!

Just got a kernel panic when trying to send ZFS between hosts. More details below:

sender host:
Code: Select all
macOS 10.15.7
zfs-1.9.4-0
zfs-kmod-1.9.4-0


receiver host:
Code: Select all
macOS 11.1
zfs-2.0.0-1
zfs-kmod-macOS-2.0.0-2-g0197ddc9c5


command:
Code: Select all
$ zfs send Tank/Databases/foo@2020-12-16-dump | ssh host /usr/local/zfs/bin/zfs receive Tank/Databases/foo
libzfs_macos_wrapfd: checking if we need pipe wrap
libzfs_macos_wrapfd: is pipe: work on fd 0
libzfs_macos_wrapfd: readfd 6 (0)
libzfs_macos_wrapfd: writefd 7 (0)
libzfs_macos_wrapfd: spawning thread
client_loop: send disconnect: Broken pipe


backtrace:
Code: Select all
panic(cpu 2 caller 0xffffff80075ed0e6): Kernel trap at 0x0000000000000000, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000000, CR3: 0x0000000035db516d, CR4: 0x00000000001626e0
RAX: 0xffffff7fa9b6a738, RBX: 0xffffff86b4e49c70, RCX: 0x9b4e3aa68a4b000b, RDX: 0xffffffb0b056387c
RSP: 0xffffffb0b0563868, RBP: 0xffffffb0b05638d0, RSI: 0xffffffb0b0563880, RDI: 0xffffff86b4e49c70
R8:  0x0000000000000000, R9:  0x199704bea32d8000, R10: 0x2000000000000000, R11: 0xffffffb08d9c39c0
R12: 0xffffffb0b0563960, R13: 0xffffffb0b05638e8, R14: 0xffffffb08d3c8000, R15: 0xffffffb0b05638e8
RFL: 0x0000000000010282, RIP: 0x0000000000000000, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000010, Fault CPU: 0x2, PL: 0, VF: 0

Backtrace (CPU 2), Frame : Return Address
0xffffffb0b0563280 : 0xffffff80074b9aed mach_kernel : _handle_debugger_trap + 0x3dd
0xffffffb0b05632d0 : 0xffffff80075fc6e3 mach_kernel : _kdp_i386_trap + 0x143
0xffffffb0b0563310 : 0xffffff80075ecd1a mach_kernel : _kernel_trap + 0x55a
0xffffffb0b0563360 : 0xffffff800745ea2f mach_kernel : _return_from_trap + 0xff
0xffffffb0b0563380 : 0xffffff80074b938d mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffb0b05634a0 : 0xffffff80074b9678 mach_kernel : _panic_trap_to_debugger + 0x268
0xffffffb0b0563510 : 0xffffff8007cbe3ca mach_kernel : _panic + 0x54
0xffffffb0b0563580 : 0xffffff80075ed0e6 mach_kernel : _sync_iss_to_iks + 0x2c6
0xffffffb0b0563700 : 0xffffff80075ecdcd mach_kernel : _kernel_trap + 0x60d
0xffffffb0b0563750 : 0xffffff800745ea2f mach_kernel : _return_from_trap + 0xff
0xffffffb0b0563770 : 0x0
0xffffffb0b05638d0 : 0xffffff7fa965ca20 net.lundman.zfs : _dsl_deleg_access_impl + 0x180
0xffffffb0b0563a10 : 0xffffff7fa96f6311 net.lundman.zfs : _zfs_secpolicy_write_perms + 0xd1
0xffffffb0b0563a60 : 0xffffff7fa96fff09 net.lundman.zfs : _zfs_secpolicy_recv + 0x19
0xffffffb0b0563a80 : 0xffffff7fa96f7f9f net.lundman.zfs : _zfsdev_ioctl_common + 0x44f
0xffffffb0b0563b40 : 0xffffff7fa9702718 net.lundman.zfs : _zfsdev_ioctl + 0x68
0xffffffb0b0563b80 : 0xffffff8007786c65 mach_kernel : _spec_ioctl + 0x75
0xffffffb0b0563bb0 : 0xffffff800777b0ee mach_kernel : _VNOP_IOCTL + 0x1ce
0xffffffb0b0563c30 : 0xffffff800776c27c mach_kernel : _utf8_normalizeOptCaseFoldAndMatchSubstring + 0xefc
0xffffffb0b0563e30 : 0xffffff8007a777e4 mach_kernel : _ioctl + 0x514
0xffffffb0b0563f40 : 0xffffff8007b68cdb mach_kernel : _unix_syscall64 + 0x27b
0xffffffb0b0563fa0 : 0xffffff800745f1f6 mach_kernel : _hndl_unix_scall64 + 0x16
      Kernel Extensions in backtrace:
         net.lundman.zfs(2.0)[72483E1E-DD77-3873-BC77-C1B8AFF10A58]@0xffffff7fa9606000->0xffffff7fa992dfff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[AA8F8B9D-BA6E-3EBB-8195-4792042ADF71]@0xffffff8009f4c000->0xffffff8009f5dfff

Process name corresponding to current thread: zfs
Boot args: keepsyms=1

Mac OS version:
20C69

Kernel version:
Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64
Kernel UUID: 82E2050C-5936-3D24-AD3B-EC4EC5C09E11
KernelCache slide: 0x0000000007200000
KernelCache base:  0xffffff8007400000
Kernel slide:      0x0000000007210000
Kernel text base:  0xffffff8007410000
__HIB  text base: 0xffffff8007300000
System model name: MacBookAir6,2 (Mac-7DF21CB3ED6977E5)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 40736991308835
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000250cd1e57215
  Sleep   : 0x000024551a99ca55 0x0002769f7ce8e5b0 0x0000244dfaf5c89d
  Wake    : 0x000024552458ee31 0x0002c1932337e540 0x00002455239da0c0
last started kext at 39866738089325: >!UAudio 401.4 (addr 0xffffff7fa790f000, size 307200)
last stopped kext at 38490958504638: >usb.!UUserHCI 1 (addr 0xffffff7fa7d9d000, size 98304)
loaded kexts:
net.lundman.zfs 2.0.0
>usb.!UUserHCI  1
@filesystems.smbfs  3.4.1
>!AUpstreamUserClient 3.6.8
>AudioAUUC  1.70
@fileutil 20.036.15
>X86PlatformShim  1.0.0
>AGPM 119
>!APlatformEnabler  2.7.0d0
@filesystems.autofs 3.0
>!AGraphicsDevicePolicy 6.2.2
@AGDCPluginDisplayMetrics 6.2.2
>pmtelemetry  1
>LuaHardwareAccess  1.0.16
|IOUserEthernet 1.0.1
>!AHDA  283.15
|IO!BSerialManager  8.0.2f9
@Dont_Steal_Mac_OS_X  7.0.0
>!AHV 1
>!ADiskImages2  1
>!A!IHD5000Graphics 16.0.1
>!AThunderboltIP  4.0.3
>!ABacklight  180.3
>eficheck 1
>!AMCCSControl  1.14
>!A!IFramebufferAzul  16.0.1
>!A!ISlowAdaptiveClocking 4.0.0
>!ACameraInterface  7.6.0
>!ALPC  3.1
>!ASMCLMU 212
>!UCardReader 511.60.2
@filesystems.tmpfs  1
@filesystems.hfs.kext 556.60.1
@BootCache  40
@!AFSCompression.!AFSCompressionTypeZlib  1.0.0
@!AFSCompression.!AFSCompressionTypeDataless  1.0.0d1
>!ATopCaseHIDEventDriver  4020.6
@filesystems.apfs 1677.60.23
>AirPort.BrcmNIC  1400.1.1
@private.KextAudit  1.0
>!ASmartBatteryManager  161.0.0
>!AACPIButtons  6.1
>!ARTC  2.0
>!AHPET 1.8
>!ASMBIOS 2.1
>!AACPIEC 6.1
>!AAPIC 1.7
@!ASystemPolicy 2.0.0
@nke.applicationfirewall  310
|IOKitRegistryCompatibility 1
|EndpointSecurity 1
>!UAudio  401.4
>usb.cdc  5.0.0
>usb.!UHostCompositeDevice  1.2
@kext.triggers  1.0
>!AGraphicsControl  6.2.2
>DspFuncLib 283.15
@kext.OSvKernDSPLib 529
|IOSerial!F 11
|IOAVB!F  900.12
@plugin.IOgPTPPlugin  900.11
|IOEthernetAVB!C  1.1.0
>!AHDA!C  283.15
|IOHDA!F  283.15
|IOAudio!F  300.6.1
@vecLib.kext  1.2.0
>!ABacklightExpert  1.1.0
>X86PlatformPlugin  1.0.0
@!AGPUWrangler  6.2.2
|IONDRVSupport  585
>!ASMBus!C  1.0.18d1
|IOAccelerator!F2 439.52
@!AGraphicsDeviceControl  6.2.2
|IOSlowAdaptiveClocking!F 1.0.0
>IOPlatformPlugin!F 6.0.0d8
|IOGraphics!F 585
|Broadcom!BHost!CUSBTransport 8.0.2f9
|IO!BHost!CUSBTransport 8.0.2f9
|IO!BHost!CTransport  8.0.2f9
>usb.!UHub  1.2
>usb.networking 5.0.0
>!AThunderboltDPInAdapter 8.1.4
>!AThunderboltDPAdapter!F 8.1.4
>!AThunderboltPCIDownAdapter  4.1.1
>!ABSDKextStarter 3
|IOSurface  289.3
@filesystems.hfs.encodings.kext 1
>!AMultitouchDriver 4400.28
>!AInputDeviceSupport 4400.35
>!AHS!BDriver 4020.6
>IO!BHIDDriver  8.0.2f9
>!AHIDKeyboard  222
>!AHSSPIHIDDriver 61
|IONVMe!F 2.1.0
>!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
|IOUSB!F  900.4.2
>!AHSSPISupport 61
>!A!ILpssSpi!C  3.0.60
>!A!ILpssGspi 3.0.60
>usb.!UXHCIPCI  1.2
>usb.!UXHCI 1.2
>!A!ILpssDmac 3.0.60
>!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.2f9
|IOReport!F 47
|IO!BPacketLogger 8.0.2f9
$quarantine 4
$sandbox  300.0
@kext.!AMatch 1.0.0d1
|CoreAnalytics!F  1
>!ASSE  1.0
>!AKeyStore 2
>!UTDM  511.60.2
|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 11.1
@kec.Libm 1



EDIT:

I was able to identify the issue. There's no kernel panics when calling zfs commands with sudo.

So, this one works for me:

Code: Select all
zfs send Tank/Databases/foo@2020-12-16-dump | ssh host sudo /usr/local/zfs/bin/zfs receive Tank/Databases/foo


Same goes for other commands like

Code: Select all
$ zfs create Tank/foobar
vs
Code: Select all
$ sudo zfs create Tank/foobar


To reproduce it you need to allow user certain permissions:

Code: Select all
$ sudo zfs allow -u <username> compression,mountpoint,create,mount,receive Tank


Code: Select all
$ zfs allow Tank
---- Permissions on Tank ---------------------------------------------
Local+Descendent permissions:
   user <username> compression,create,mount,mountpoint,receive
tallica
 
Posts: 1
Joined: Sat Dec 19, 2020 1:40 am

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 37 guests

cron