After searching for another issue #790683 I noticed the following from sys-kernel/gentoo-sources-5.12.1 [ 162.622764] ------------[ cut here ]------------ [ 162.622773] Attempted to advance past end of bvec iter [ 162.622786] WARNING: CPU: 7 PID: 2899 at include/linux/bvec.h:105 iov_iter_advance+0x39b/0x3b0 [ 162.622801] Modules linked in: ctr ccm rfcomm cmac bnep joydev zfs(PO) zunicode(PO) zzstd(O) btusb zlua(O) btrtl zavl(PO) btbcm icp(PO) uvcvideo btintel bluetooth videobuf2_vmalloc zcommon(PO) videobuf2_memops ecdh_generic znvpair(PO) amdgpu videobuf2_v4l2 ecc ath10k_pci videodev spl(O) ath10k_core drm_ttm_helper snd_hda_codec_conexant zlib_deflate kvm_amd ath zlib_inflate wmi_bmof videobuf2_common snd_hda_codec_generic ttm kvm sdhci_pci irqbypass r8169 psmouse snd_hda_codec_hdmi aesni_intel mfd_core crypto_simd iosf_mbi gpu_sched snd_hda_intel i2c_algo_bit snd_intel_dspcfg cqhci realtek cryptd snd_hda_codec evdev drm_kms_helper mac80211 snd_hda_core syscopyarea sysfillrect i2c_piix4 sysimgblt sdhci mdio_devres cfg80211 snd_pcm fb_sys_fops libphy ccp cec snd_timer libarc4 mmc_core sha1_generic wireguard thinkpad_acpi nvram ledtrig_audio platform_profile ip6_udp_tunnel udp_tunnel wmi snd soundcore rfkill ac battery video i2c_scmi button sch_fq_codel drm backlight fuse i2c_core configfs [ 162.622952] efivarfs [ 162.622959] CPU: 7 PID: 2899 Comm: ThreadPoolForeg Tainted: P O 5.12.1-gentoo #1 [ 162.622966] Hardware name: LENOVO 20KU000NMH/20KU000NMH, BIOS R0UET78W (1.58 ) 11/17/2020 [ 162.622970] RIP: 0010:iov_iter_advance+0x39b/0x3b0 [ 162.622977] Code: 8a fe ff ff 4d 89 e1 45 31 d2 e9 42 ff ff ff 49 89 f2 e9 70 ff ff ff 48 c7 c7 88 cf e8 81 c6 05 6a 0b dc 00 01 e8 31 82 38 00 <0f> 0b 4c 8b 4b 18 eb b6 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 [ 162.622982] RSP: 0018:ffffc9000a5bfc18 EFLAGS: 00010286 [ 162.622986] RAX: 0000000000000000 RBX: ffffc9000a5bfd78 RCX: 0000000000000027 [ 162.622989] RDX: ffff88844efd2d88 RSI: 0000000000000001 RDI: ffff88844efd2d80 [ 162.622992] RBP: 0000000000000000 R08: ffffffff8206b928 R09: 00000000fffff7ff [ 162.622994] R10: ffffffff82033940 R11: ffffffff82033940 R12: 0000000000000042 [ 162.622996] R13: ffffc9000a5bfd78 R14: ffff8881871b3000 R15: ffffc9000a5bfcd0 [ 162.622999] FS: 00007f54515e8640(0000) GS:ffff88844efc0000(0000) knlGS:0000000000000000 [ 162.623003] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 162.623005] CR2: 00007f54509e5000 CR3: 0000000136302000 CR4: 00000000003506e0 [ 162.623008] Call Trace: [ 162.623014] zio_do_crypt_abd+0x1ad9/0x2b20 [zfs] [ 162.623048] do_iter_readv_writev+0x14f/0x1b0 [ 162.623055] do_iter_write+0x7c/0x1b0 [ 162.623059] iter_file_splice_write+0x2cb/0x460 [ 162.623065] direct_splice_actor+0x2c/0x40 [ 162.623069] splice_direct_to_actor+0xeb/0x210 [ 162.623074] ? pipe_to_sendpage+0xa0/0xa0 [ 162.623078] do_splice_direct+0x8b/0xd0 [ 162.623082] do_sendfile+0x30c/0x450 [ 162.623086] do_syscall_64+0x33/0x40 [ 162.623091] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 162.623096] RIP: 0033:0x7f545a0fe69a [ 162.623099] Code: 4c 89 d2 4c 89 c6 e9 c5 fd ff ff 0f 1f 44 00 00 31 c0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 49 89 ca b8 28 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 9e 77 0c 00 f7 d8 64 89 01 48 [ 162.623102] RSP: 002b:00007f54515e61c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 [ 162.623106] RAX: ffffffffffffffda RBX: 0000000000000042 RCX: 00007f545a0fe69a [ 162.623109] RDX: 0000000000000000 RSI: 0000000000000111 RDI: 000000000000012c [ 162.623111] RBP: 00007f54515e6210 R08: 00003e70005c4003 R09: 0000000000000001 [ 162.623113] R10: 0000000000000042 R11: 0000000000000246 R12: 00007f54515e64e0 [ 162.623115] R13: 00007f54515e6520 R14: 0000000000000000 R15: 0000000000000111 [ 162.623119] ---[ end trace 61296ec5d5e6be01 ]---
Latest known kernel that does not boot with this issue: 5.11.13-gentoo
While the issue is in 5.12.3-gentoo and 5.12.4-gentoo. It is not in the vanilla 5.12.4.
Since it happens with vanilla tool, reported upstream.
https://github.com/openzfs/zfs/issues/12041
https://github.com/openzfs/zfs/commit/8a20656774b8347cbdda30bb12fe8bb1b729f655.patch
Looks like the fix is in a patch from upstream zfs
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=919f0c385d58501b3b1aa32543ff3772aea483ee commit 919f0c385d58501b3b1aa32543ff3772aea483ee Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-06-04 01:20:37 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-06-04 01:25:13 +0000 sys-fs/zfs-kmod: revbump 2.0.4, add 5.12 support and fixes run eautoreconf, as a lot of m4 files changed Bug: https://bugs.gentoo.org/792627 Bug: https://bugs.gentoo.org/790686 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../files/zfs-8.0.4_5.12_compat_bio_max_segs.patch | 91 ++ .../zfs-8.0.4_5.12_compat_idmapped_mounts.patch | 1231 ++++++++++++++++++++ .../zfs-8.0.4_5.12_compat_iov_iter_advance.patch | 40 + .../files/zfs-8.0.4_5.12_compat_tmpfile.patch | 89 ++ .../files/zfs-8.0.4_5.12_compat_userns.patch | 173 +++ .../zfs-8.0.4_spl_kmem_cache_slab_limit_16K.patch | 59 + .../zfs-kmod/files/zfs-8.0.4_stream_resume.patch | 33 + sys-fs/zfs-kmod/zfs-kmod-2.0.4-r1.ebuild | 186 +++ 8 files changed, 1902 insertions(+)
we are done here