[Pkg-zfsonlinux-devel] Bug#1084964: zfs-dkms: Multiple "memcpy: detected field-spanning write" warnings seen at boot

Kev Kitchens kitchens.sync at me.com
Sat Oct 12 02:10:00 BST 2024


Package: zfs-dkms
Version: 2.2.6-1
Severity: minor
X-Debbugs-Cc: kitchens.sync at me.com

After upgrading to kernel 6.11.2, the kernel message log prints several stack traces at boot from the ZFS module. For example:

[   13.796773] memcpy: detected field-spanning write (size 24) of single field "(char *)(lr + 1) + snamesize" at /var/lib/dkms/zfs/2.2.6/build/module/zfs/zfs_log.c:515 (size 0)
[   13.796800] WARNING: CPU: 14 PID: 2905 at /var/lib/dkms/zfs/2.2.6/build/module/zfs/zfs_log.c:515 do_zfs_log_rename+0x130/0x180 [zfs]
[   13.797089] Modules linked in: xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables libcrc32c overlay binfmt_misc intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common skx_edac skx_edac_common nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul ghash_clmulni_intel nls_ascii sha512_ssse3 nls_cp437 sha256_ssse3 ipmi_ssif vfat sha1_ssse3 fat mei_pxp mei_hdcp irdma aesni_intel gf128mul crypto_simd cryptd zfs(PO) snd_hda_codec_hdmi ice rapl snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec intel_cstate gnss ib_uverbs snd_hda_core snd_hwdep snd_pcm ib_core snd_timer intel_uncore snd mei_gsc soundcore pcspkr iTCO_wdt intel_pmc_bxt mei_me mei iTCO_vendor_support watchdog ioatdma intel_pch_thermal acpi_power_meter dca ipmi_si acpi_ipmi ipmi_devintf ipmi_msghandler acpi_pad spl(O) joydev sg evdev nvme_fabrics configfs
[   13.797171]  efi_pstore nfnetlink efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod ses enclosure i915 dm_mod drm_buddy video wmi drm_display_helper cec ast rc_core mpt3sas ttm i2c_algo_bit drm_shmem_helper xhci_pci drm_kms_helper xhci_hcd raid_class scsi_transport_sas i40e drm scsi_mod nvme crc32_pclmul usbcore crc32c_intel nvme_core libie i2c_i801 scsi_common lpc_ich i2c_smbus usb_common button
[   13.797216] CPU: 14 UID: 124 PID: 2905 Comm: PMS Logger Tainted: P        W  O       6.11.2-amd64 #1  Debian 6.11.2-1
[   13.797222] Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE
[   13.797223] Hardware name: Supermicro SSG-5029P-E1CTR12L/X11SPH-nCTF, BIOS 4.4 07/15/2024
[   13.797225] RIP: 0010:do_zfs_log_rename+0x130/0x180 [zfs]
[   13.797520] Code: 41 5e 41 5f e9 01 01 01 00 48 8b 74 24 28 31 c9 48 c7 c2 78 4f 8a c1 48 c7 c7 28 4f 8a c1 c6 05 b8 f3 0f 00 01 e8 80 53 17 cd <0f> 0b eb a3 48 8b 74 24 20 31 c9 48 89 04 24 48 c7 c2 d0 4e 8a c1
[   13.797523] RSP: 0018:ffff9a93f7fe7718 EFLAGS: 00010282
[   13.797526] RAX: 0000000000000000 RBX: ffff8b72c1341000 RCX: 0000000000000027
[   13.797528] RDX: ffff8b9e7ff21788 RSI: 0000000000000001 RDI: ffff8b9e7ff21780
[   13.797530] RBP: ffff8b7176ce6540 R08: 0000000000000000 R09: ffff9a93f7fe7598
[   13.797532] R10: ffff8b9f3ff30768 R11: 0000000000000003 R12: ffff8b724b52cab8
[   13.797534] R13: ffff8b71ef1e8490 R14: ffff8b71ef1e8400 R15: ffff8b724b52c7b8
[   13.797536] FS:  00007f58e2002b38(0000) GS:ffff8b9e7ff00000(0000) knlGS:0000000000000000
[   13.797539] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   13.797541] CR2: 00007f58e2001ff8 CR3: 000000025c8f2006 CR4: 00000000007706f0
[   13.797543] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   13.797545] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   13.797547] PKRU: 55555554
[   13.797548] Call Trace:
[   13.797550]  <TASK>
[   13.797552]  ? do_zfs_log_rename+0x130/0x180 [zfs]
[   13.797845]  ? __warn.cold+0x8e/0xe8
[   13.797850]  ? do_zfs_log_rename+0x130/0x180 [zfs]
[   13.798143]  ? report_bug+0xff/0x140
[   13.798146]  ? console_unlock+0x84/0x130
[   13.798152]  ? handle_bug+0x3c/0x80
[   13.798156]  ? exc_invalid_op+0x17/0x70
[   13.798160]  ? asm_exc_invalid_op+0x1a/0x20
[   13.798168]  ? do_zfs_log_rename+0x130/0x180 [zfs]
[   13.798461]  ? do_zfs_log_rename+0x130/0x180 [zfs]
[   13.798772]  zfs_rename+0x1180/0x16e0 [zfs]
[   13.799096]  zpl_rename2+0x9a/0x190 [zfs]
[   13.799383]  ? take_dentry_name_snapshot+0x68/0xc0
[   13.799390]  vfs_rename+0x727/0xc00
[   13.799397]  ? security_path_rename+0x5d/0xa0
[   13.799402]  do_renameat2+0x5e9/0x620
[   13.799410]  __x64_sys_rename+0x74/0xb0
[   13.799413]  do_syscall_64+0x82/0x190
[   13.799418]  ? syscall_exit_to_user_mode+0x4d/0x210
[   13.799422]  ? do_syscall_64+0x8e/0x190
[   13.799424]  ? zfs_inactive+0xa8/0x210 [zfs]
[   13.799688]  ? unmap_mapping_range+0x85/0x140
[   13.799695]  ? mntput_no_expire+0x4a/0x260
[   13.799700]  ? do_unlinkat+0xbe/0x330
[   13.799704]  ? syscall_exit_to_user_mode+0x4d/0x210
[   13.799707]  ? do_syscall_64+0x8e/0x190
[   13.799712]  ? __do_sys_newlstat+0x51/0x80
[   13.799719]  ? syscall_exit_to_user_mode+0x172/0x210
[   13.799723]  ? do_syscall_64+0x8e/0x190
[   13.799726]  ? __count_memcg_events+0x58/0xf0
[   13.799730]  ? count_memcg_events.constprop.0+0x1a/0x30
[   13.799736]  ? handle_mm_fault+0x1bb/0x2c0
[   13.799741]  ? do_user_addr_fault+0x36c/0x620
[   13.799747]  ? exc_page_fault+0x7e/0x180
[   13.799751]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   13.799757] RIP: 0033:0x7f58e777d777
[   13.799769] Code: 00 e9 36 e4 ff ff b8 57 00 00 00 0f 05 9b 83 f8 eb 75 08 b8 54 00 00 00 0f 05 9b 48 63 f8 e9 30 e6 fc ff b8 52 00 00 00 0f 05 <9b> 48 89 c7 e9 20 e6 fc ff 55 53 50 48 89 fb 83 bf 8c 00 00 00 00
[   13.799772] RSP: 002b:00007f58e2001df8 EFLAGS: 00000282 ORIG_RAX: 0000000000000052
[   13.799776] RAX: ffffffffffffffda RBX: 00007f58e2001e78 RCX: 00007f58e777d777
[   13.799779] RDX: 00007f58e2001e60 RSI: 00007f58e42da940 RDI: 00007f58e42e64e0
[   13.799781] RBP: 00007f58e2001e20 R08: 00007f58e42da9ac R09: 00007f58e42da940
[   13.799782] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000001
[   13.799785] R13: 00007f58e2001ef0 R14: 00007f58e2001e60 R15: 00007f58e2001e90
[   13.799790]  </TASK>
[   13.799791] ---[ end trace 0000000000000000 ]---

This appears to be resovled upstream in https://github.com/openzfs/zfs/pull/16539

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.2-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfs-dkms depends on:
ii  debconf [debconf-2.0]  1.5.87
ii  dkms                   3.0.13-1
ii  file                   1:5.45-3
ii  libc6-dev [libc-dev]   2.40-3
ii  libpython3-stdlib      3.12.6-1
ii  lsb-release            12.1-1
ii  perl                   5.38.2-5

Versions of packages zfs-dkms recommends:
ii  linux-libc-dev  6.11.2-1
ii  zfs-zed         2.2.6-1
ii  zfsutils-linux  2.2.6-1

Versions of packages zfs-dkms suggests:
ii  debhelper  13.20

-- debconf information:
  zfs-dkms/stop-build-for-unknown-kernel: true
  zfs-dkms/stop-build-for-32bit-kernel: true
* zfs-dkms/note-incompatible-licenses:



More information about the Pkg-zfsonlinux-devel mailing list