zfs send encrypt causes kernel NULL pointer dereference
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
High
|
Dimitri John Ledkov |
Bug Description
zfs send -I works well:
# uname -a
Linux sdeziel-desktop 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
# zfs send -I data/simon/
5660616
# dmesg -c
#
but when sending encrypted data sets, some snapshot combinations cause problem:
# zfs send -wI data/simon/
# # hung as nothing is written to the pipe.
# dmesg -c
[ 1179.862792] BUG: kernel NULL pointer dereference, address: 0000000000000030
[ 1179.862798] #PF: supervisor read access in kernel mode
[ 1179.862801] #PF: error_code(0x0000) - not-present page
[ 1179.862803] PGD 0 P4D 0
[ 1179.862806] Oops: 0000 [#5] SMP PTI
[ 1179.862809] CPU: 1 PID: 13834 Comm: zfs Tainted: P D IO 5.11.0-27-generic #29~20.04.1-Ubuntu
[ 1179.862813] Hardware name: /D54250WYK, BIOS WYLPT10H.
[ 1179.862815] RIP: 0010:dmu_
[ 1179.862922] Code: d0 48 89 43 58 49 8b 45 60 48 89 43 38 49 8b 45 68 48 89 43 40 49 8b 45 70 48 89 43 48 49 8b 45 78 48 89 43 50 e9 9f fe ff ff <49> 8b 45 30 45 85 c0 74 39 48 85 c0 78 04 80 4b 31 02 48 8d 53 70
[ 1179.862924] RSP: 0018:ffffa51ae6
[ 1179.862927] RAX: d1141450686f75df RBX: ffff952730fdde00 RCX: 0000000000000000
[ 1179.862929] RDX: 00000000000080f7 RSI: 0000000000000013 RDI: ffff952730fddf38
[ 1179.862931] RBP: ffffa51ae6267938 R08: 0000000001000000 R09: 0000000000020000
[ 1179.862933] R10: 00000000000080f7 R11: 0000000000020000 R12: ffffa51ae6267ab8
[ 1179.862935] R13: 0000000000000000 R14: 0000000000020000 R15: 0000000000000000
[ 1179.862937] FS: 00007fa6a03ac7c
[ 1179.862939] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1179.862941] CR2: 0000000000000030 CR3: 000000025a648001 CR4: 00000000001706e0
[ 1179.862943] Call Trace:
[ 1179.862945] ? wait_woken+
[ 1179.862951] do_dump+0x5da/0x900 [zfs]
[ 1179.863035] ? spl_kmem_
[ 1179.863046] dmu_send_
[ 1179.863129] ? dbuf_rele_
[ 1179.863204] ? dbuf_rele+0x3d/0x50 [zfs]
[ 1179.863279] ? dmu_buf_
[ 1179.863354] dmu_send_
[ 1179.863435] ? mze_find+0xd4/0xf0 [zfs]
[ 1179.863551] zfs_ioc_
[ 1179.863665] ? zfs_ioc_
[ 1179.863778] zfsdev_
[ 1179.863892] ? __kmalloc_
[ 1179.863899] zfsdev_
[ 1179.864008] __x64_sys_
[ 1179.864012] do_syscall_
[ 1179.864018] entry_SYSCALL_
[ 1179.864023] RIP: 0033:0x7fa6a09a050b
[ 1179.864026] Code: 0f 1e fa 48 8b 05 85 39 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 55 39 0d 00 f7 d8 64 89 01 48
[ 1179.864028] RSP: 002b:00007ffdb9
[ 1179.864032] RAX: ffffffffffffffda RBX: 000055dd6be41f60 RCX: 00007fa6a09a050b
[ 1179.864033] RDX: 00007ffdb968b5c0 RSI: 0000000000005a1c RDI: 0000000000000003
[ 1179.864035] RBP: 00007ffdb968b580 R08: 0000000000005a1c R09: 0000000000000003
[ 1179.864037] R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffdb968b5c0
[ 1179.864038] R13: 000055dd6be41f70 R14: 0000000000000000 R15: 0000000000000001
[ 1179.864041] Modules linked in: vhost_vsock vmw_vsock_
[ 1179.864103] snd_seq_midi libarc4 efi_pstore videobuf2_memops btintel snd_seq_midi_event videobuf2_v4l2 wmi_bmof snd_rawmidi iwlwifi videobuf2_common bluetooth snd_pcm ecdh_generic snd_seq videodev ecc snd_seq_device mc snd_timer cfg80211 mei_me snd i2c_i801 mei e1000e lpc_ich i2c_smbus soundcore sch_fq_codel nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 msr ip_tables x_tables autofs4 btrfs blake2b_generic libcrc32c xor raid6_pq hid_generic usbhid hid dm_crypt aesni_intel i915 glue_helper i2c_algo_bit crypto_simd drm_kms_helper cryptd syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core drm ahci libahci xhci_pci wmi xhci_pci_renesas mac_hid video
[ 1179.864157] CR2: 0000000000000030
[ 1179.864159] ---[ end trace 8e7cbf6bc2c0c353 ]---
[ 1179.864524] RIP: 0010:dmu_
[ 1179.864610] Code: d0 48 89 43 58 49 8b 45 60 48 89 43 38 49 8b 45 68 48 89 43 40 49 8b 45 70 48 89 43 48 49 8b 45 78 48 89 43 50 e9 9f fe ff ff <49> 8b 45 30 45 85 c0 74 39 48 85 c0 78 04 80 4b 31 02 48 8d 53 70
[ 1179.864613] RSP: 0018:ffffa51ac8
[ 1179.864616] RAX: d1141450686f75df RBX: ffff9526877d4a00 RCX: 0000000000000000
[ 1179.864618] RDX: 00000000000080f7 RSI: 0000000000000013 RDI: ffff9526877d4b38
[ 1179.864620] RBP: ffffa51ac8f87938 R08: 0000000001000000 R09: 0000000000020000
[ 1179.864622] R10: 00000000000080f7 R11: 0000000000020000 R12: ffffa51ac8f87ab8
[ 1179.864623] R13: 0000000000000000 R14: 0000000000020000 R15: 0000000000000000
[ 1179.864625] FS: 00007fa6a03ac7c
[ 1179.864628] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1179.864630] CR2: 0000000000000030 CR3: 000000025a648001 CR4: 00000000001706e0
Additional information:
$ lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
$ zfs --version
zfs-0.8.
zfs-kmod-
$ apt-cache policy linux-image-
linux-image-
Installed: 5.11.0-
Candidate: 5.11.0-
Version table:
*** 5.11.0-
500 http://
100 /var/lib/
zfsutils-linux:
Installed: 0.8.3-1ubuntu12.12
Candidate: 0.8.3-1ubuntu12.12
Version table:
*** 0.8.3-1ubuntu12.12 500
500 http://
100 /var/lib/
0.
500 http://
0.
500 http://
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC2D0p: sdeziel 2406 F...m pulseaudio
/dev/snd/
/dev/snd/
CasperMD5CheckR
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2021-05-02 (109 days ago)
InstallationMedia: Ubuntu 20.04.2 LTS "Focal Fossa" - Release amd64 (20210421)
NonfreeKernelMo
Package: linux (not installed)
ProcEnviron:
LANGUAGE=en_CA:en
TERM=xterm-
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.187.16
Tags: focal
Uname: Linux 5.11.0-27-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 09/02/2019
dmi.bios.release: 4.6
dmi.bios.vendor: Intel Corp.
dmi.bios.version: WYLPT10H.
dmi.board.name: D54250WYK
dmi.board.vendor: Intel Corporation
dmi.board.version: H13922-303
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCor
affects: | zfs-linux (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
assignee: | nobody → Colin Ian King (colin-king) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | Incomplete → New |
Changed in linux (Ubuntu): | |
assignee: | Colin Ian King (colin-king) → nobody |
assignee: | nobody → Dimitri John Ledkov (xnox) |
I've read of issues such as this occurring because of raw sends being used when the large_blocks feature is not enabled. Can you attach the output of the following commnand:
sudo zpool get all POOLNAME
where POOLNAME is the name of your pool.