Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs#16706 #1

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

zfs#16706 #1

wants to merge 17 commits into from

Conversation

snajpa
Copy link
Member

@snajpa snajpa commented Oct 30, 2024

Motivation and Context

openzfs#16706

Description

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@snajpa snajpa changed the title Dev 5 zfs#16706 Oct 30, 2024
@gmelikov
Copy link

gmelikov commented Oct 30, 2024

JFYI You don't even need PRs, CI will be triggered on pushes in any branch https://github.com/vpsfreecz/zfs/blob/vpsadminos-master-next/.github/workflows/zfs-qemu.yml#L4

@snajpa
Copy link
Member Author

snajpa commented Oct 30, 2024

awesome! @gmelikov thx!

@snajpa
Copy link
Member Author

snajpa commented Oct 30, 2024

this is easier to keep track of tho, with comments and all, easy link to send and can ping @TheUbuntuGuy about this here too :)

@snajpa
Copy link
Member Author

snajpa commented Oct 31, 2024

@gmelikov please is there any way how to kill in progress tests when I know I'm going to be pushing a next version soon? thx (the goal is to free up the workers for others)

@gmelikov
Copy link

gmelikov commented Nov 1, 2024

@snajpa I think this one should work (but only if you have appropriate rights for a repo)

image

And there was a patch to automatically stop unneeded runs if branch was updated openzfs#16562

If you're afraid about openzfs/zfs's runners - best way is to use local branch which wasn't used for PR into upstream repo.

@snajpa snajpa closed this Nov 1, 2024
@snajpa
Copy link
Member Author

snajpa commented Nov 2, 2024

ping @TheUbuntuGuy these six patches with a tip at bacde33 should probably yield a new set of stack traces as I think I've dealt with hopefully all of those you've been seeing with my patches so far :D

@TheUbuntuGuy
Copy link

I just ran this complete patch thrice. The first time, I just got some soft lockups before I aborted:

Nov 01 23:05:46 zfstest dockerd[2699]: time="2024-11-01T23:05:46.993151695-04:00" level=info msg="Download failed, retrying (1/5): local error: tls: bad record MAC"
Nov 01 23:05:47 zfstest dockerd[2699]: time="2024-11-01T23:05:47.013431019-04:00" level=info msg="Download failed, retrying (1/5): local error: tls: bad record MAC"
[  104.113098] watchdog: BUG: soft lockup - CPU#64 stuck for 26s! [kcompactd0:928][  116.136536] watchdog: BUG: soft lockup - CPU#126 stuck for 26s! [dockerd:3797]
[  120.084350] watchdog: BUG: soft lockup - CPU#8 stuck for 22s! [kworker/8:1:1153][  132.111786] watchdog: BUG: soft lockup - CPU#64 stuck for 53s! [kcompactd0:928]

The second time got a crash with some new traces, including new extra spooky messages about the scheduler breaking:

Nov 01 23:11:06 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x737cf5efc3d75a1c: 0000 [#1] PREEMPT SMP NOPTI
Nov 01 23:11:06 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P           OE      6.10.14-xxx #1
Nov 01 23:11:06 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:06 zfstest kernel: RIP: 0010:nvlist_free+0x2d/0x90 [zfs]
Nov 01 23:11:06 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
Nov 01 23:11:06 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:06 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:06 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:06 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:06 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:06 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:06 zfstest kernel: FS:  0000000000000000(0000) GS:ffff9522f4180000(0000) knlGS:0000000000000000
Nov 01 23:11:06 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:06 zfstest kernel: CR2: 000000c003b93000 CR3: 0000000173c2e000 CR4: 0000000000350ef0
Nov 01 23:11:06 zfstest kernel: Call Trace:
Nov 01 23:11:06 zfstest kernel:  <TASK>
Nov 01 23:11:06 zfstest kernel:  ? __die_body+0x1b/0x60
Nov 01 23:11:06 zfstest kernel:  ? die_addr+0x39/0x60
Nov 01 23:11:06 zfstest kernel:  ? exc_general_protection+0x24c/0x430
Nov 01 23:11:06 zfstest kernel:  ? asm_exc_general_protection+0x22/0x30
Nov 01 23:11:06 zfstest kernel:  ? nvlist_free+0x2d/0x90 [zfs]
Nov 01 23:11:06 zfstest kernel:  zfs_inode_destroy+0x9f/0x100 [zfs]
Nov 01 23:11:06 zfstest kernel:  destroy_inode+0x32/0x70
Nov 01 23:11:06 zfstest kernel:  evict+0x15e/0x260
Nov 01 23:11:06 zfstest kernel:  ? _raw_spin_lock+0x13/0x30
Nov 01 23:11:06 zfstest kernel:  ? _raw_spin_unlock+0x15/0x30
Nov 01 23:11:06 zfstest kernel:  ? list_lru_del+0x82/0xd0
Nov 01 23:11:06 zfstest kernel:  dispose_list+0x32/0x50
Nov 01 23:11:06 zfstest kernel:  evict_inodes+0x147/0x190
Nov 01 23:11:06 zfstest kernel:  generic_shutdown_super+0x39/0x160
Nov 01 23:11:06 zfstest kernel:  kill_anon_super+0x12/0x40
Nov 01 23:11:06 zfstest kernel:  deactivate_locked_super+0x2c/0x80
Nov 01 23:11:06 zfstest kernel:  cleanup_mnt+0x104/0x160
Nov 01 23:11:06 zfstest kernel:  task_work_run+0x55/0x80
Nov 01 23:11:06 zfstest kernel:  do_exit+0x301/0xb20
Nov 01 23:11:06 zfstest kernel:  __x64_sys_exit+0x17/0x20
Nov 01 23:11:06 zfstest kernel:  x64_sys_call+0x714/0x720
Nov 01 23:11:06 zfstest kernel:  do_syscall_64+0x41/0xd0
Nov 01 23:11:06 zfstest kernel:  entry_SYSCALL_64_after_hwframe+0x4b/0x53
Nov 01 23:11:06 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:06 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
Nov 01 23:11:06 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:06 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:06 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:06 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:06 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:06 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:06 zfstest kernel:  </TASK>
Nov 01 23:11:06 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:06 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x9fe846d01afd50e9: 0000 [#2] PREEMPT SMP NOPTI
Nov 01 23:11:07 zfstest kernel: CPU: 9 PID: 3618 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:07 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:07 zfstest kernel: RIP: 0010:memcpy_orig+0x29/0x110
Nov 01 23:11:07 zfstest kernel: Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
Nov 01 23:11:07 zfstest kernel: RSP: 0018:ffffadd1f8597880 EFLAGS: 00010206
Nov 01 23:11:07 zfstest kernel: RAX: 9fe846d01afd50e9 RBX: ffffadd1f8597920 RCX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RDX: 000000000001ffc0 RSI: ffff952093fc0020 RDI: 9fe846d01afd50e9
Nov 01 23:11:07 zfstest kernel: RBP: 0000000000020000 R08: 7eb54ecbfcdf87d9 R09: 34c35494f3ab19c8
Nov 01 23:11:07 zfstest kernel: R10: 313f9a32f354f6da R11: 9ba56e0b2f5e98a5 R12: ffff9521832c44e0
Nov 01 23:11:07 zfstest kernel: R13: 0000000000020000 R14: ffffadd1f8597920 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel: FS:  00007f69096006c0(0000) GS:ffff9522f4280000(0000) knlGS:0000000000000000
Nov 01 23:11:07 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:07 zfstest kernel: CR2: 000055b00b1fb6c0 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:07 zfstest kernel: Call Trace:
Nov 01 23:11:07 zfstest kernel:  <TASK>
Nov 01 23:11:07 zfstest kernel:  ? __die_body+0x1b/0x60
Nov 01 23:11:07 zfstest kernel:  ? die_addr+0x39/0x60
Nov 01 23:11:07 zfstest kernel:  ? exc_general_protection+0x24c/0x430
Nov 01 23:11:07 zfstest kernel:  ? asm_exc_general_protection+0x22/0x30
Nov 01 23:11:07 zfstest kernel:  ? memcpy_orig+0x29/0x110
Nov 01 23:11:07 zfstest kernel:  abd_copy_to_buf_off_cb+0x1e/0x30 [zfs]
Nov 01 23:11:07 zfstest kernel:  abd_iterate_func+0x97/0xe0 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? abd_advance_abd_iter+0x70/0x70 [zfs]
Nov 01 23:11:07 zfstest kernel:  abd_copy_to_buf_off+0x38/0x60 [zfs]
Nov 01 23:11:07 zfstest kernel:  arc_buf_fill+0x3b7/0x490 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? percpu_counter_add_batch+0x2e/0xa0
Nov 01 23:11:07 zfstest kernel:  ? arc_buf_alloc_impl+0xe8/0x200 [zfs]
Nov 01 23:11:07 zfstest kernel:  arc_read+0x12cf/0x1620 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? dbuf_rele_and_unlock+0x330/0x330 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? preempt_count_add+0x61/0xa0
Nov 01 23:11:07 zfstest kernel:  dbuf_read_impl.constprop.0+0x269/0x370 [zfs]
Nov 01 23:11:07 zfstest kernel:  dbuf_read+0x339/0x560 [zfs]
Nov 01 23:11:07 zfstest kernel:  dmu_buf_hold_array_by_dnode+0x118/0x540 [zfs]
Nov 01 23:11:07 zfstest kernel:  dmu_read_uio_dnode+0x51/0x110 [zfs]
Nov 01 23:11:07 zfstest kernel:  zfs_read+0x31e/0x4d0 [zfs]
Nov 01 23:11:07 zfstest kernel:  zpl_iter_read+0xa2/0x100 [zfs]
Nov 01 23:11:07 zfstest kernel:  vfs_read+0x247/0x330
Nov 01 23:11:07 zfstest kernel:  ksys_read+0x5f/0xe0
Nov 01 23:11:07 zfstest kernel:  do_syscall_64+0x41/0xd0
Nov 01 23:11:07 zfstest kernel:  entry_SYSCALL_64_after_hwframe+0x4b/0x53
Nov 01 23:11:07 zfstest kernel: RIP: 0033:0x55b00a339dee
Nov 01 23:11:07 zfstest kernel: Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
Nov 01 23:11:07 zfstest kernel: RSP: 002b:000000c0015e74e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RAX: ffffffffffffffda RBX: 0000000000000031 RCX: 000055b00a339dee
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000008000 RSI: 000000c002aee000 RDI: 0000000000000031
Nov 01 23:11:07 zfstest kernel: RBP: 000000c0015e7528 R08: 0000000000000000 R09: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R10: 0000000000000000 R11: 0000000000000206 R12: 000000c0015e7658
Nov 01 23:11:07 zfstest kernel: R13: ffffffffffffffff R14: 000000c000cdda40 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel:  </TASK>
Nov 01 23:11:07 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:07 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x7c4dd6f152934469: 0000 [#3] PREEMPT SMP NOPTI
Nov 01 23:11:07 zfstest kernel: CPU: 69 PID: 2591 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:07 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:07 zfstest kernel: RIP: 0010:memset_orig+0x94/0xac
Nov 01 23:11:07 zfstest kernel: Code: 66 0f 1f 44 00 00 ff c9 48 89 07 48 8d 7f 08 75 f5 83 e2 07 74 0a ff ca 88 07 48 8d 7f 01 75 f6 4c 89 d0 c3 48 83 fa 07 76 e7 <48> 89 07 49 c7 c0 08 00 00 00 4d 29 c8 4c 01 c7 4c 29 c2 e9 72 ff
Nov 01 23:11:07 zfstest kernel: RSP: 0018:ffffadd1c3e379f8 EFLAGS: 00010216
Nov 01 23:11:07 zfstest kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000020000 RSI: 0000000000000000 RDI: 7c4dd6f152934469
Nov 01 23:11:07 zfstest kernel: RBP: ffff95218c02ae00 R08: 0000000000000000 R09: 0000000000000001
Nov 01 23:11:07 zfstest kernel: R10: 7c4dd6f152934469 R11: 00000000ffffffff R12: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R13: 0000000000000002 R14: 0000000000000009 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel: FS:  00007f69534006c0(0000) GS:ffff9522f6080000(0000) knlGS:0000000000000000
Nov 01 23:11:07 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:07 zfstest kernel: CR2: 000000c003075960 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:07 zfstest kernel: Call Trace:
Nov 01 23:11:07 zfstest kernel:  <TASK>
Nov 01 23:11:07 zfstest kernel:  ? __die_body+0x1b/0x60
Nov 01 23:11:07 zfstest kernel:  ? die_addr+0x39/0x60
Nov 01 23:11:07 zfstest kernel:  ? exc_general_protection+0x24c/0x430
Nov 01 23:11:07 zfstest kernel:  ? asm_exc_general_protection+0x22/0x30
Nov 01 23:11:07 zfstest kernel:  ? memset_orig+0x94/0xac
Nov 01 23:11:07 zfstest kernel:  dbuf_read_hole+0x10b/0x110 [zfs]
Nov 01 23:11:07 zfstest kernel:  dbuf_read_impl.constprop.0+0x53/0x370 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? _raw_spin_unlock+0x15/0x30
Nov 01 23:11:07 zfstest kernel:  ? dbuf_create+0x1d2/0x2d0 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? preempt_count_add+0x61/0xa0
Nov 01 23:11:07 zfstest kernel:  ? _raw_spin_lock+0x13/0x30
Nov 01 23:11:07 zfstest kernel:  ? _raw_spin_unlock+0x15/0x30
Nov 01 23:11:07 zfstest kernel:  ? dbuf_hold_impl+0x105/0x670 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? preempt_count_add+0x61/0xa0
Nov 01 23:11:07 zfstest kernel:  ? _raw_spin_lock+0x13/0x30
Nov 01 23:11:07 zfstest kernel:  ? rrw_enter_read_impl+0xa4/0xf0 [zfs]
Nov 01 23:11:07 zfstest kernel:  dbuf_read+0x339/0x560 [zfs]
Nov 01 23:11:07 zfstest kernel:  ? _raw_spin_unlock+0x15/0x30
Nov 01 23:11:07 zfstest kernel:  dmu_buf_will_dirty_impl+0x135/0x1c0 [zfs]
Nov 01 23:11:07 zfstest kernel:  dmu_write_uio_dnode+0x127/0x280 [zfs]
Nov 01 23:11:07 zfstest kernel:  zfs_write+0x500/0xc40 [zfs]
Nov 01 23:11:07 zfstest kernel:  zpl_iter_write+0xe6/0x130 [zfs]
Nov 01 23:11:07 zfstest kernel:  vfs_write+0x318/0x440
Nov 01 23:11:07 zfstest kernel:  ksys_write+0x5f/0xe0
Nov 01 23:11:07 zfstest kernel:  do_syscall_64+0x41/0xd0
Nov 01 23:11:07 zfstest kernel:  entry_SYSCALL_64_after_hwframe+0x4b/0x53
Nov 01 23:11:07 zfstest kernel: RIP: 0033:0x55b00a339dee
Nov 01 23:11:07 zfstest kernel: Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
Nov 01 23:11:07 zfstest kernel: RSP: 002b:000000c0015ece08 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
Nov 01 23:11:07 zfstest kernel: RAX: ffffffffffffffda RBX: 000000000000001d RCX: 000055b00a339dee
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000008000 RSI: 000000c003bd6000 RDI: 000000000000001d
Nov 01 23:11:07 zfstest kernel: RBP: 000000c0015ece48 R08: 0000000000000000 R09: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R10: 0000000000000000 R11: 0000000000000202 R12: 000000c0015ecf78
Nov 01 23:11:07 zfstest kernel: R13: ffffffffffffffff R14: 000000c0016836c0 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel:  </TASK>
Nov 01 23:11:07 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:07 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: RIP: 0010:nvlist_free+0x2d/0x90 [zfs]
Nov 01 23:11:07 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
Nov 01 23:11:08 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:08 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:08 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:08 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:08 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:08 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:08 zfstest kernel: FS:  0000000000000000(0000) GS:ffff9522f4180000(0000) knlGS:0000000000000000
Nov 01 23:11:08 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:08 zfstest kernel: CR2: 000000c003b93000 CR3: 0000000111c18000 CR4: 0000000000350ef0
Nov 01 23:11:08 zfstest kernel: Fixing recursive fault but reboot is needed!
Nov 01 23:11:08 zfstest kernel: check_preemption_disabled: 2 callbacks suppressed
Nov 01 23:11:08 zfstest kernel: BUG: using smp_processor_id() in preemptible [00000000] code: dockerd/3321
Nov 01 23:11:08 zfstest kernel: caller is __schedule+0x32/0xad0
Nov 01 23:11:08 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:08 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:08 zfstest kernel: Call Trace:
Nov 01 23:11:08 zfstest kernel:  <TASK>
Nov 01 23:11:08 zfstest kernel:  dump_stack_lvl+0x62/0x80
Nov 01 23:11:08 zfstest kernel:  check_preemption_disabled+0xc2/0xe0
Nov 01 23:11:08 zfstest kernel:  __schedule+0x32/0xad0
Nov 01 23:11:08 zfstest kernel:  ? _printk+0x58/0x70
Nov 01 23:11:08 zfstest kernel:  do_task_dead+0x3e/0x40
Nov 01 23:11:08 zfstest kernel:  make_task_dead+0x138/0x150
Nov 01 23:11:08 zfstest kernel:  rewind_stack_and_make_dead+0x16/0x20
Nov 01 23:11:08 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:08 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
Nov 01 23:11:08 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:08 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:08 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:08 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:08 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:08 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:08 zfstest kernel:  </TASK>
Nov 01 23:11:08 zfstest kernel: BUG: scheduling while atomic: dockerd/3321/0x00000000
Nov 01 23:11:08 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:08 zfstest kernel: Preemption disabled at:
Nov 01 23:11:08 zfstest kernel: [<0000000000000000>] 0x0
Nov 01 23:11:08 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:08 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:08 zfstest kernel: Call Trace:
Nov 01 23:11:08 zfstest kernel:  <TASK>
Nov 01 23:11:08 zfstest kernel:  dump_stack_lvl+0x62/0x80
Nov 01 23:11:08 zfstest kernel:  __schedule_bug+0x88/0xa0
Nov 01 23:11:08 zfstest kernel:  __schedule+0x920/0xad0
Nov 01 23:11:08 zfstest kernel:  ? _printk+0x58/0x70
Nov 01 23:11:08 zfstest kernel:  do_task_dead+0x3e/0x40
Nov 01 23:11:08 zfstest kernel:  make_task_dead+0x138/0x150
Nov 01 23:11:08 zfstest kernel:  rewind_stack_and_make_dead+0x16/0x20
Nov 01 23:11:08 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:08 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
Nov 01 23:11:08 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:08 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:08 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:08 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:08 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:08 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:08 zfstest kernel:  </TASK>
Nov 01 23:11:09 zfstest kernel: RIP: 0010:nvlist_free+0x2d/0x90 [zfs]
Nov 01 23:11:09 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
Nov 01 23:11:09 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:09 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:09 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:09 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:10 zfstest kernel: FS:  00007f69534006c0(0000) GS:ffff9522f6080000(0000) knlGS:0000000000000000
Nov 01 23:11:10 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:10 zfstest kernel: CR2: 000000c003075960 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:10 zfstest kernel: RIP: 0010:nvlist_free+0x2d/0x90 [zfs]
Nov 01 23:11:10 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
Nov 01 23:11:10 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:10 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:10 zfstest kernel: FS:  00007f69096006c0(0000) GS:ffff9522f4280000(0000) knlGS:0000000000000000
Nov 01 23:11:10 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:10 zfstest kernel: CR2: 000055b00b1fb6c0 CR3: 00000001425bc000 CR4: 0000000000350ef0

The last time confirmed for sure that the scheduler is not having a good time:

[   62.298834] Kernel panic - not syncing: corrupted stack end detected inside scheduler
[   62.302774] CPU: 124 PID: 3059 Comm: docker Tainted: P           OE      6.10.14-xxx #1
[   62.306642] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[   62.309466] Call Trace:
[   62.310074]  <TASK>
[   62.310572]  panic+0x30f/0x350
[   62.311297]  ? __futex_wait+0x14e/0x1b0
[   62.312133]  __schedule+0xacb/0xad0
[   62.312934]  ? clockevents_program_event+0x85/0xe0
[   62.313964]  ? _raw_spin_unlock_irqrestore+0x23/0x40
[   62.315199]  ? hrtimer_start_range_ns+0x115/0x380
[   62.316296]  schedule+0x26/0xa0
[   62.317048]  do_nanosleep+0x7a/0x110
[   62.317838]  hrtimer_nanosleep+0x90/0x110
[   62.318649]  ? hrtimer_init_sleeper+0x80/0x80
[   62.319536]  __x64_sys_nanosleep+0xae/0xe0
[   62.320474]  do_syscall_64+0x41/0xd0
[   62.321217]  entry_SYSCALL_64_after_hwframe+0x4b/0x53
[   62.322249] RIP: 0033:0x55d040f00077
[   62.322977] Code: 8b 44 24 20 b9 40 42 0f 00 f7 f1 48 89 04 24 b8 e8 03 00 00 f7 e2 48 89 44 24 08 48 89 e7 be 00 00 00 00 b8 23 00 00 00 0f 05 <48> 83 c4 10 5d c3 cc cc cc b8 ba 00 00 00 0f 05 89 44 24 08 c3 cc
[   62.326814] RSP: 002b:00007f87251ffda0 EFLAGS: 00000212 ORIG_RAX: 0000000000000023
[   62.328545] RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 000055d040f00077
[   62.330154] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f87251ffda0
[   62.331684] RBP: 00007f87251ffdb0 R08: 0000000000000093 R09: 00007f876bf7b000
[   62.333222] R10: 00007f876bf7a080 R11: 0000000000000212 R12: 00007f87251ffda0
[   62.334738] R13: 0000000000000016 R14: 000000c000006a80 R15: 00007f8724a00000
[   62.336132]  </TASK>
[   62.339228] Kernel Offset: 0x3ba00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[   63.307681] ---[ end Kernel panic - not syncing: corrupted stack end detected inside scheduler ]---

@snajpa
Copy link
Member Author

snajpa commented Nov 2, 2024

@TheUbuntuGuy thank you - you see I can't reproduce it at that level you're reaching, so... I'd like you to know that I really really appreciate your help, thank you! I'm going to look at it tonight

@TheUbuntuGuy
Copy link

No problem. I'm just as invested as you in getting this resolved, I just don't have the low level expertise in the ZFS codebase to tackle an issue as complex as this.

I released that I should really be decoding the stack traces for you, so here is trace 2 in my last message:

Nov 01 23:11:06 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x737cf5efc3d75a1c: 0000 [#1] PREEMPT SMP NOPTI
Nov 01 23:11:06 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P           OE      6.10.14-xxx #1
Nov 01 23:11:06 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:06 zfstest kernel: RIP: 0010:nvlist_free (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/nvpair/nvpair.c:885) zfs
Nov 01 23:11:06 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
All code
========
   0:   00 00                   add    %al,(%rax)
   2:   48 85 ff                test   %rdi,%rdi
   5:   0f 84 81 00 00 00       je     0x8c
   b:   41 55                   push   %r13
   d:   41 54                   push   %r12
   f:   49 89 fc                mov    %rdi,%r12
  12:   55                      push   %rbp
  13:   53                      push   %rbx
  14:   4c 8b 6f 08             mov    0x8(%rdi),%r13
  18:   4d 85 ed                test   %r13,%r13
  1b:   74 56                   je     0x73
  1d:   49 8b 5d 00             mov    0x0(%r13),%rbx
  21:   48 85 db                test   %rbx,%rbx
  24:   74 1f                   je     0x45
  26:   48 8d 6b 18             lea    0x18(%rbx),%rbp
  2a:*  48 8b 1b                mov    (%rbx),%rbx              <-- trapping instruction
  2d:   48 89 ef                mov    %rbp,%rdi
  30:   e8 58 00 00 00          call   0x8d
  35:   48 89 ee                mov    %rbp,%rsi
  38:   4c 89 e7                mov    %r12,%rdi
  3b:   e8 7d fe ff ff          call   0xfffffffffffffebd

Code starting with the faulting instruction
===========================================
   0:   48 8b 1b                mov    (%rbx),%rbx
   3:   48 89 ef                mov    %rbp,%rdi
   6:   e8 58 00 00 00          call   0x63
   b:   48 89 ee                mov    %rbp,%rsi
   e:   4c 89 e7                mov    %r12,%rdi
  11:   e8 7d fe ff ff          call   0xfffffffffffffe93
Nov 01 23:11:06 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:06 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:06 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:06 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:06 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:06 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:06 zfstest kernel: FS:  0000000000000000(0000) GS:ffff9522f4180000(0000) knlGS:0000000000000000
Nov 01 23:11:06 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:06 zfstest kernel: CR2: 000000c003b93000 CR3: 0000000173c2e000 CR4: 0000000000350ef0
Nov 01 23:11:06 zfstest kernel: Call Trace:
Nov 01 23:11:06 zfstest kernel:  <TASK>
Nov 01 23:11:06 zfstest kernel: ? __die_body (arch/x86/kernel/dumpstack.c:421) 
Nov 01 23:11:06 zfstest kernel: ? die_addr (arch/x86/kernel/dumpstack.c:462) 
Nov 01 23:11:06 zfstest kernel: ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
Nov 01 23:11:06 zfstest kernel: ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
Nov 01 23:11:06 zfstest kernel: ? nvlist_free (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/nvpair/nvpair.c:885) zfs
Nov 01 23:11:06 zfstest kernel: zfs_inode_destroy (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/zfs/zfs_znode_os.c:396) zfs
Nov 01 23:11:06 zfstest kernel: destroy_inode (fs/inode.c:312) 
Nov 01 23:11:06 zfstest kernel: evict (fs/inode.c:722 (discriminator 2)) 
Nov 01 23:11:06 zfstest kernel: ? _raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 ./include/linux/spinlock.h:187 ./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) 
Nov 01 23:11:06 zfstest kernel: ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
Nov 01 23:11:06 zfstest kernel: ? list_lru_del (mm/list_lru.c:142) 
Nov 01 23:11:06 zfstest kernel: dispose_list (./include/linux/sched.h:1994 fs/inode.c:740) 
Nov 01 23:11:06 zfstest kernel: evict_inodes (fs/inode.c:794) 
Nov 01 23:11:06 zfstest kernel: generic_shutdown_super (fs/super.c:633) 
Nov 01 23:11:06 zfstest kernel: kill_anon_super (fs/super.c:434 fs/super.c:1238) 
Nov 01 23:11:06 zfstest kernel: deactivate_locked_super (fs/super.c:434 fs/super.c:475) 
Nov 01 23:11:06 zfstest kernel: cleanup_mnt (fs/namespace.c:144 fs/namespace.c:1268) 
Nov 01 23:11:06 zfstest kernel: task_work_run (./include/linux/sched.h:1994 (discriminator 1) kernel/task_work.c:206 (discriminator 1)) 
Nov 01 23:11:06 zfstest kernel: do_exit (kernel/exit.c:878) 
Nov 01 23:11:06 zfstest kernel: __x64_sys_exit (kernel/exit.c:993) 
Nov 01 23:11:06 zfstest kernel: x64_sys_call (??:?) 
Nov 01 23:11:06 zfstest kernel: do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) 
Nov 01 23:11:06 zfstest kernel: entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) 
Nov 01 23:11:06 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:06 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
objdump: '/tmp/tmp.qE7WsTE5m1.o': No such file

Code starting with the faulting instruction
===========================================
Nov 01 23:11:06 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:06 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:06 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:06 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:06 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:06 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:06 zfstest kernel:  </TASK>
Nov 01 23:11:06 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:06 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x9fe846d01afd50e9: 0000 [#2] PREEMPT SMP NOPTI
Nov 01 23:11:07 zfstest kernel: CPU: 9 PID: 3618 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:07 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:07 zfstest kernel: RIP: 0010:memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
Nov 01 23:11:07 zfstest kernel: Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
All code
========
   0:   00 48 89                add    %cl,-0x77(%rax)
   3:   f8                      clc
   4:   48 83 fa 20             cmp    $0x20,%rdx
   8:   72 7e                   jb     0x88
   a:   40 38 fe                cmp    %dil,%sil
   d:   7c 35                   jl     0x44
   f:   48 83 ea 20             sub    $0x20,%rdx
  13:   48 83 ea 20             sub    $0x20,%rdx
  17:   4c 8b 06                mov    (%rsi),%r8
  1a:   4c 8b 4e 08             mov    0x8(%rsi),%r9
  1e:   4c 8b 56 10             mov    0x10(%rsi),%r10
  22:   4c 8b 5e 18             mov    0x18(%rsi),%r11
  26:   48 8d 76 20             lea    0x20(%rsi),%rsi
  2a:*  4c 89 07                mov    %r8,(%rdi)               <-- trapping instruction
  2d:   4c 89 4f 08             mov    %r9,0x8(%rdi)
  31:   4c 89 57 10             mov    %r10,0x10(%rdi)
  35:   4c 89 5f 18             mov    %r11,0x18(%rdi)
  39:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  3d:   73 d4                   jae    0x13
  3f:   83                      .byte 0x83

Code starting with the faulting instruction
===========================================
   0:   4c 89 07                mov    %r8,(%rdi)
   3:   4c 89 4f 08             mov    %r9,0x8(%rdi)
   7:   4c 89 57 10             mov    %r10,0x10(%rdi)
   b:   4c 89 5f 18             mov    %r11,0x18(%rdi)
   f:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  13:   73 d4                   jae    0xffffffffffffffe9
  15:   83                      .byte 0x83
Nov 01 23:11:07 zfstest kernel: RSP: 0018:ffffadd1f8597880 EFLAGS: 00010206
Nov 01 23:11:07 zfstest kernel: RAX: 9fe846d01afd50e9 RBX: ffffadd1f8597920 RCX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RDX: 000000000001ffc0 RSI: ffff952093fc0020 RDI: 9fe846d01afd50e9
Nov 01 23:11:07 zfstest kernel: RBP: 0000000000020000 R08: 7eb54ecbfcdf87d9 R09: 34c35494f3ab19c8
Nov 01 23:11:07 zfstest kernel: R10: 313f9a32f354f6da R11: 9ba56e0b2f5e98a5 R12: ffff9521832c44e0
Nov 01 23:11:07 zfstest kernel: R13: 0000000000020000 R14: ffffadd1f8597920 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel: FS:  00007f69096006c0(0000) GS:ffff9522f4280000(0000) knlGS:0000000000000000
Nov 01 23:11:07 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:07 zfstest kernel: CR2: 000055b00b1fb6c0 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:07 zfstest kernel: Call Trace:
Nov 01 23:11:07 zfstest kernel:  <TASK>
Nov 01 23:11:07 zfstest kernel: ? __die_body (arch/x86/kernel/dumpstack.c:421) 
Nov 01 23:11:07 zfstest kernel: ? die_addr (arch/x86/kernel/dumpstack.c:462) 
Nov 01 23:11:07 zfstest kernel: ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
Nov 01 23:11:07 zfstest kernel: ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
Nov 01 23:11:07 zfstest kernel: ? memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
Nov 01 23:11:07 zfstest kernel: abd_copy_to_buf_off_cb (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:849) zfs
Nov 01 23:11:07 zfstest kernel: abd_iterate_func (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:783) zfs
Nov 01 23:11:07 zfstest kernel: ? abd_advance_abd_iter (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:845) zfs
Nov 01 23:11:07 zfstest kernel: abd_copy_to_buf_off (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:864) zfs
Nov 01 23:11:07 zfstest kernel: arc_buf_fill (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:2068) zfs
Nov 01 23:11:07 zfstest kernel: ? percpu_counter_add_batch (lib/percpu_counter.c:93) 
Nov 01 23:11:07 zfstest kernel: ? arc_buf_alloc_impl (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:2796) zfs
Nov 01 23:11:07 zfstest kernel: arc_read (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:5725) zfs
Nov 01 23:11:07 zfstest kernel: ? dbuf_rele_and_unlock (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1384) zfs
Nov 01 23:11:07 zfstest kernel: ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
Nov 01 23:11:07 zfstest kernel: dbuf_read_impl.constprop.0 (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1658) zfs
Nov 01 23:11:07 zfstest kernel: dbuf_read (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1856) zfs
Nov 01 23:11:07 zfstest kernel: dmu_buf_hold_array_by_dnode (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:607) zfs
Nov 01 23:11:07 zfstest kernel: dmu_read_uio_dnode (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:1414) zfs
Nov 01 23:11:07 zfstest kernel: zfs_read (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zfs_vnops.c:433) zfs
Nov 01 23:11:07 zfstest kernel: zpl_iter_read (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/zfs/zpl_file.c:256) zfs
Nov 01 23:11:07 zfstest kernel: vfs_read (fs/read_write.c:395 fs/read_write.c:476 fs/read_write.c:456) 
Nov 01 23:11:07 zfstest kernel: ksys_read (fs/read_write.c:619) 
Nov 01 23:11:07 zfstest kernel: do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) 
Nov 01 23:11:07 zfstest kernel: entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) 
Nov 01 23:11:07 zfstest kernel: RIP: 0033:0x55b00a339dee
Nov 01 23:11:07 zfstest kernel: Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
All code
========
   0:   48 83 ec 38             sub    $0x38,%rsp
   4:   e8 13 00 00 00          call   0x1c
   9:   48 83 c4 38             add    $0x38,%rsp
   d:   5d                      pop    %rbp
   e:   c3                      ret
   f:   cc                      int3
  10:   cc                      int3
  11:   cc                      int3
  12:   cc                      int3
  13:   cc                      int3
  14:   cc                      int3
  15:   cc                      int3
  16:   cc                      int3
  17:   cc                      int3
  18:   cc                      int3
  19:   cc                      int3
  1a:   cc                      int3
  1b:   cc                      int3
  1c:   49 89 f2                mov    %rsi,%r10
  1f:   48 89 fa                mov    %rdi,%rdx
  22:   48 89 ce                mov    %rcx,%rsi
  25:   48 89 df                mov    %rbx,%rdi
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   76 15                   jbe    0x47
  32:   48 f7 d8                neg    %rax
  35:   48 89 c1                mov    %rax,%rcx
  38:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   76 15                   jbe    0x1d
   8:   48 f7 d8                neg    %rax
   b:   48 89 c1                mov    %rax,%rcx
   e:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  15:   48                      rex.W
Nov 01 23:11:07 zfstest kernel: RSP: 002b:000000c0015e74e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RAX: ffffffffffffffda RBX: 0000000000000031 RCX: 000055b00a339dee
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000008000 RSI: 000000c002aee000 RDI: 0000000000000031
Nov 01 23:11:07 zfstest kernel: RBP: 000000c0015e7528 R08: 0000000000000000 R09: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R10: 0000000000000000 R11: 0000000000000206 R12: 000000c0015e7658
Nov 01 23:11:07 zfstest kernel: R13: ffffffffffffffff R14: 000000c000cdda40 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel:  </TASK>
Nov 01 23:11:07 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:07 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: Oops: general protection fault, probably for non-canonical address 0x7c4dd6f152934469: 0000 [#3] PREEMPT SMP NOPTI
Nov 01 23:11:07 zfstest kernel: CPU: 69 PID: 2591 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:07 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:07 zfstest kernel: RIP: 0010:memset_orig (arch/x86/lib/memset_64.S:110) 
Nov 01 23:11:07 zfstest kernel: Code: 66 0f 1f 44 00 00 ff c9 48 89 07 48 8d 7f 08 75 f5 83 e2 07 74 0a ff ca 88 07 48 8d 7f 01 75 f6 4c 89 d0 c3 48 83 fa 07 76 e7 <48> 89 07 49 c7 c0 08 00 00 00 4d 29 c8 4c 01 c7 4c 29 c2 e9 72 ff
All code
========
   0:   66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
   6:   ff c9                   dec    %ecx
   8:   48 89 07                mov    %rax,(%rdi)
   b:   48 8d 7f 08             lea    0x8(%rdi),%rdi
   f:   75 f5                   jne    0x6
  11:   83 e2 07                and    $0x7,%edx
  14:   74 0a                   je     0x20
  16:   ff ca                   dec    %edx
  18:   88 07                   mov    %al,(%rdi)
  1a:   48 8d 7f 01             lea    0x1(%rdi),%rdi
  1e:   75 f6                   jne    0x16
  20:   4c 89 d0                mov    %r10,%rax
  23:   c3                      ret
  24:   48 83 fa 07             cmp    $0x7,%rdx
  28:   76 e7                   jbe    0x11
  2a:*  48 89 07                mov    %rax,(%rdi)              <-- trapping instruction
  2d:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
  34:   4d 29 c8                sub    %r9,%r8
  37:   4c 01 c7                add    %r8,%rdi
  3a:   4c 29 c2                sub    %r8,%rdx
  3d:   e9                      .byte 0xe9
  3e:   72 ff                   jb     0x3f

Code starting with the faulting instruction
===========================================
   0:   48 89 07                mov    %rax,(%rdi)
   3:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
   a:   4d 29 c8                sub    %r9,%r8
   d:   4c 01 c7                add    %r8,%rdi
  10:   4c 29 c2                sub    %r8,%rdx
  13:   e9                      .byte 0xe9
  14:   72 ff                   jb     0x15
Nov 01 23:11:07 zfstest kernel: RSP: 0018:ffffadd1c3e379f8 EFLAGS: 00010216
Nov 01 23:11:07 zfstest kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000020000 RSI: 0000000000000000 RDI: 7c4dd6f152934469
Nov 01 23:11:07 zfstest kernel: RBP: ffff95218c02ae00 R08: 0000000000000000 R09: 0000000000000001
Nov 01 23:11:07 zfstest kernel: R10: 7c4dd6f152934469 R11: 00000000ffffffff R12: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R13: 0000000000000002 R14: 0000000000000009 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel: FS:  00007f69534006c0(0000) GS:ffff9522f6080000(0000) knlGS:0000000000000000
Nov 01 23:11:07 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:07 zfstest kernel: CR2: 000000c003075960 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:07 zfstest kernel: Call Trace:
Nov 01 23:11:07 zfstest kernel:  <TASK>
Nov 01 23:11:07 zfstest kernel: ? __die_body (arch/x86/kernel/dumpstack.c:421) 
Nov 01 23:11:07 zfstest kernel: ? die_addr (arch/x86/kernel/dumpstack.c:462) 
Nov 01 23:11:07 zfstest kernel: ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
Nov 01 23:11:07 zfstest kernel: ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
Nov 01 23:11:07 zfstest kernel: ? memset_orig (arch/x86/lib/memset_64.S:110) 
Nov 01 23:11:07 zfstest kernel: dbuf_read_hole (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1494) zfs
Nov 01 23:11:07 zfstest kernel: dbuf_read_impl.constprop.0 (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1599) zfs
Nov 01 23:11:07 zfstest kernel: ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
Nov 01 23:11:07 zfstest kernel: ? dbuf_create (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:3460) zfs
Nov 01 23:11:07 zfstest kernel: ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
Nov 01 23:11:07 zfstest kernel: ? _raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 ./include/linux/spinlock.h:187 ./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) 
Nov 01 23:11:07 zfstest kernel: ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
Nov 01 23:11:07 zfstest kernel: ? dbuf_hold_impl (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:3972) zfs
Nov 01 23:11:07 zfstest kernel: ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
Nov 01 23:11:07 zfstest kernel: ? _raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 ./include/linux/spinlock.h:187 ./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) 
Nov 01 23:11:07 zfstest kernel: ? rrw_enter_read_impl (/usr/src/linux-headers-6.10.14-xxx/./include/linux/spinlock.h:391 /tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/rrwlock.c:191) zfs
Nov 01 23:11:07 zfstest kernel: dbuf_read (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1856) zfs
Nov 01 23:11:07 zfstest kernel: ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
Nov 01 23:11:07 zfstest kernel: dmu_buf_will_dirty_impl (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:2692 (discriminator 1)) zfs
Nov 01 23:11:07 zfstest kernel: dmu_write_uio_dnode (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:1553) zfs
Nov 01 23:11:07 zfstest kernel: zfs_write (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zfs_vnops.c:866) zfs
Nov 01 23:11:07 zfstest kernel: zpl_iter_write (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/zfs/zpl_file.c:306) zfs
Nov 01 23:11:07 zfstest kernel: vfs_write (fs/read_write.c:497 fs/read_write.c:590 fs/read_write.c:570) 
Nov 01 23:11:07 zfstest kernel: ksys_write (fs/read_write.c:643) 
Nov 01 23:11:07 zfstest kernel: do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) 
Nov 01 23:11:07 zfstest kernel: entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) 
Nov 01 23:11:07 zfstest kernel: RIP: 0033:0x55b00a339dee
Nov 01 23:11:07 zfstest kernel: Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
All code
========
   0:   48 83 ec 38             sub    $0x38,%rsp
   4:   e8 13 00 00 00          call   0x1c
   9:   48 83 c4 38             add    $0x38,%rsp
   d:   5d                      pop    %rbp
   e:   c3                      ret
   f:   cc                      int3
  10:   cc                      int3
  11:   cc                      int3
  12:   cc                      int3
  13:   cc                      int3
  14:   cc                      int3
  15:   cc                      int3
  16:   cc                      int3
  17:   cc                      int3
  18:   cc                      int3
  19:   cc                      int3
  1a:   cc                      int3
  1b:   cc                      int3
  1c:   49 89 f2                mov    %rsi,%r10
  1f:   48 89 fa                mov    %rdi,%rdx
  22:   48 89 ce                mov    %rcx,%rsi
  25:   48 89 df                mov    %rbx,%rdi
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   76 15                   jbe    0x47
  32:   48 f7 d8                neg    %rax
  35:   48 89 c1                mov    %rax,%rcx
  38:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   76 15                   jbe    0x1d
   8:   48 f7 d8                neg    %rax
   b:   48 89 c1                mov    %rax,%rcx
   e:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  15:   48                      rex.W
Nov 01 23:11:07 zfstest kernel: RSP: 002b:000000c0015ece08 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
Nov 01 23:11:07 zfstest kernel: RAX: ffffffffffffffda RBX: 000000000000001d RCX: 000055b00a339dee
Nov 01 23:11:07 zfstest kernel: RDX: 0000000000008000 RSI: 000000c003bd6000 RDI: 000000000000001d
Nov 01 23:11:07 zfstest kernel: RBP: 000000c0015ece48 R08: 0000000000000000 R09: 0000000000000000
Nov 01 23:11:07 zfstest kernel: R10: 0000000000000000 R11: 0000000000000202 R12: 000000c0015ecf78
Nov 01 23:11:07 zfstest kernel: R13: ffffffffffffffff R14: 000000c0016836c0 R15: 0000000000000000
Nov 01 23:11:07 zfstest kernel:  </TASK>
Nov 01 23:11:07 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:07 zfstest kernel: ---[ end trace 0000000000000000 ]---
Nov 01 23:11:07 zfstest kernel: RIP: 0010:nvlist_free (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/nvpair/nvpair.c:885) zfs
Nov 01 23:11:07 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
All code
========
   0:   00 00                   add    %al,(%rax)
   2:   48 85 ff                test   %rdi,%rdi
   5:   0f 84 81 00 00 00       je     0x8c
   b:   41 55                   push   %r13
   d:   41 54                   push   %r12
   f:   49 89 fc                mov    %rdi,%r12
  12:   55                      push   %rbp
  13:   53                      push   %rbx
  14:   4c 8b 6f 08             mov    0x8(%rdi),%r13
  18:   4d 85 ed                test   %r13,%r13
  1b:   74 56                   je     0x73
  1d:   49 8b 5d 00             mov    0x0(%r13),%rbx
  21:   48 85 db                test   %rbx,%rbx
  24:   74 1f                   je     0x45
  26:   48 8d 6b 18             lea    0x18(%rbx),%rbp
  2a:*  48 8b 1b                mov    (%rbx),%rbx              <-- trapping instruction
  2d:   48 89 ef                mov    %rbp,%rdi
  30:   e8 58 00 00 00          call   0x8d
  35:   48 89 ee                mov    %rbp,%rsi
  38:   4c 89 e7                mov    %r12,%rdi
  3b:   e8 7d fe ff ff          call   0xfffffffffffffebd

Code starting with the faulting instruction
===========================================
   0:   48 8b 1b                mov    (%rbx),%rbx
   3:   48 89 ef                mov    %rbp,%rdi
   6:   e8 58 00 00 00          call   0x63
   b:   48 89 ee                mov    %rbp,%rsi
   e:   4c 89 e7                mov    %r12,%rdi
  11:   e8 7d fe ff ff          call   0xfffffffffffffe93
Nov 01 23:11:08 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:08 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:08 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:08 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:08 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:08 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:08 zfstest kernel: FS:  0000000000000000(0000) GS:ffff9522f4180000(0000) knlGS:0000000000000000
Nov 01 23:11:08 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:08 zfstest kernel: CR2: 000000c003b93000 CR3: 0000000111c18000 CR4: 0000000000350ef0
Nov 01 23:11:08 zfstest kernel: Fixing recursive fault but reboot is needed!
Nov 01 23:11:08 zfstest kernel: check_preemption_disabled: 2 callbacks suppressed
Nov 01 23:11:08 zfstest kernel: BUG: using smp_processor_id() in preemptible [00000000] code: dockerd/3321
Nov 01 23:11:08 zfstest kernel: caller is __schedule (kernel/sched/core.c:6631) 
Nov 01 23:11:08 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:08 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:08 zfstest kernel: Call Trace:
Nov 01 23:11:08 zfstest kernel:  <TASK>
Nov 01 23:11:08 zfstest kernel: dump_stack_lvl (lib/dump_stack.c:117) 
Nov 01 23:11:08 zfstest kernel: check_preemption_disabled (./arch/x86/include/asm/preempt.h:84 lib/smp_processor_id.c:53) 
Nov 01 23:11:08 zfstest kernel: __schedule (kernel/sched/core.c:6631) 
Nov 01 23:11:08 zfstest kernel: ? _printk (kernel/printk/printk.c:2377) 
Nov 01 23:11:08 zfstest kernel: do_task_dead (kernel/sched/core.c:6769) 
Nov 01 23:11:08 zfstest kernel: make_task_dead (./include/linux/refcount.h:192 ./include/linux/refcount.h:241 ./include/linux/refcount.h:258 kernel/exit.c:984) 
Nov 01 23:11:08 zfstest kernel: rewind_stack_and_make_dead (??:?) 
Nov 01 23:11:08 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:08 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
objdump: '/tmp/tmp.JRRTrvZHWI.o': No such file

Code starting with the faulting instruction
===========================================
Nov 01 23:11:08 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:08 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:08 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:08 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:08 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:08 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:08 zfstest kernel:  </TASK>
Nov 01 23:11:08 zfstest kernel: BUG: scheduling while atomic: dockerd/3321/0x00000000
Nov 01 23:11:08 zfstest kernel: Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm aesni_intel cfg80211 qxl crypto_simd snd_timer drm_ttm_helper iTCO_wdt snd ttm cryptd intel_pmc_bxt joydev soundcore iTCO_vendor_support drm_kms_helper input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net libahci psmouse crc32_pclmul i2c_mux virtio_blk xhci_pci_renesas lpc_ich dimlib
Nov 01 23:11:08 zfstest kernel: Preemption disabled at:
Nov 01 23:11:08 zfstest kernel: 0x0 
Nov 01 23:11:08 zfstest kernel: CPU: 7 PID: 3321 Comm: dockerd Tainted: P      D    OE      6.10.14-xxx #1
Nov 01 23:11:08 zfstest kernel: Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
Nov 01 23:11:08 zfstest kernel: Call Trace:
Nov 01 23:11:08 zfstest kernel:  <TASK>
Nov 01 23:11:08 zfstest kernel: dump_stack_lvl (lib/dump_stack.c:117) 
Nov 01 23:11:08 zfstest kernel: __schedule_bug (kernel/sched/core.c:5951) 
Nov 01 23:11:08 zfstest kernel: __schedule (./arch/x86/include/asm/preempt.h:35 kernel/sched/core.c:5978 kernel/sched/core.c:6634) 
Nov 01 23:11:08 zfstest kernel: ? _printk (kernel/printk/printk.c:2377) 
Nov 01 23:11:08 zfstest kernel: do_task_dead (kernel/sched/core.c:6769) 
Nov 01 23:11:08 zfstest kernel: make_task_dead (./include/linux/refcount.h:192 ./include/linux/refcount.h:241 ./include/linux/refcount.h:258 kernel/exit.c:984) 
Nov 01 23:11:08 zfstest kernel: rewind_stack_and_make_dead (??:?) 
Nov 01 23:11:08 zfstest kernel: RIP: 0033:0x7f69b3eb2176
Nov 01 23:11:08 zfstest kernel: Code: Unable to access opcode bytes at 0x7f69b3eb214c.
objdump: '/tmp/tmp.Y1tclEGDFm.o': No such file

Code starting with the faulting instruction
===========================================
Nov 01 23:11:08 zfstest kernel: RSP: 002b:00007f69229ffe60 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
Nov 01 23:11:08 zfstest kernel: RAX: ffffffffffffffda RBX: 00007f6922200000 RCX: 00007f69b3eb2176
Nov 01 23:11:08 zfstest kernel: RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
Nov 01 23:11:08 zfstest kernel: RBP: 0000000000801000 R08: 00000000000000ca R09: 0000000000000000
Nov 01 23:11:08 zfstest kernel: R10: 0000000000000008 R11: 0000000000000246 R12: fffffffffffffed0
Nov 01 23:11:08 zfstest kernel: R13: 0000000000000000 R14: 00007f69515ff850 R15: 00007f6922200000
Nov 01 23:11:08 zfstest kernel:  </TASK>
Nov 01 23:11:09 zfstest kernel: RIP: 0010:nvlist_free (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/nvpair/nvpair.c:885) zfs
Nov 01 23:11:09 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 00 48 89 ee 4c 89 e7 e8 7d fe ff ff
All code
========
   0:   00 00                   add    %al,(%rax)
   2:   48 85 ff                test   %rdi,%rdi
   5:   0f 84 81 00 00 00       je     0x8c
   b:   41 55                   push   %r13
   d:   41 54                   push   %r12
   f:   49 89 fc                mov    %rdi,%r12
  12:   55                      push   %rbp
  13:   53                      push   %rbx
  14:   4c 8b 6f 08             mov    0x8(%rdi),%r13
  18:   4d 85 ed                test   %r13,%r13
  1b:   74 56                   je     0x73
  1d:   49 8b 5d 00             mov    0x0(%r13),%rbx
  21:   48 85 db                test   %rbx,%rbx
  24:   74 1f                   je     0x45
  26:   48 8d 6b 18             lea    0x18(%rbx),%rbp
  2a:*  48 8b 1b                mov    (%rbx),%rbx              <-- trapping instruction
  2d:   48 89 ef                mov    %rbp,%rdi
  30:   e8 58 00 00 00          call   0x8d
  35:   48 89 ee                mov    %rbp,%rsi
  38:   4c 89 e7                mov    %r12,%rdi
  3b:   e8 7d fe ff ff          call   0xfffffffffffffebd

Code starting with the faulting instruction
===========================================
   0:   48 8b 1b                mov    (%rbx),%rbx
   3:   48 89 ef                mov    %rbp,%rdi
   6:   e8 58 00 00 00          call   0x63
   b:   48 89 ee                mov    %rbp,%rsi
   e:   4c 89 e7                mov    %r12,%rdi
  11:   e8 7d fe ff ff          call   0xfffffffffffffe93
Nov 01 23:11:09 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:09 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:09 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:09 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:10 zfstest kernel: FS:  00007f69534006c0(0000) GS:ffff9522f6080000(0000) knlGS:0000000000000000
Nov 01 23:11:10 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:10 zfstest kernel: CR2: 000000c003075960 CR3: 00000001425bc000 CR4: 0000000000350ef0
Nov 01 23:11:10 zfstest kernel: RIP: 0010:nvlist_free (/tmp/zfs-build--xdZjeTFZ/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/nvpair/nvpair.c:885) zfs
Nov 01 23:11:10 zfstest kernel: Code: 00 00 48 85 ff 0f 84 81 00 00 00 41 55 41 54 49 89 fc 55 53 4c 8b 6f 08 4d 85 ed 74 56 49 8b 5d 00 48 85 db 74 1f 48 8d 6b 18 <48> 8b 1b 48 89 ef e8 58 00 00 0048 89 ee 4c 89 e7 e8 7d fe ff ff
All code
========
   0:   00 00                   add    %al,(%rax)
   2:   48 85 ff                test   %rdi,%rdi
   5:   0f 84 81 00 00 00       je     0x8c
   b:   41 55                   push   %r13
   d:   41 54                   push   %r12
   f:   49 89 fc                mov    %rdi,%r12
  12:   55                      push   %rbp
  13:   53                      push   %rbx
  14:   4c 8b 6f 08             mov    0x8(%rdi),%r13
  18:   4d 85 ed                test   %r13,%r13
  1b:   74 56                   je     0x73
  1d:   49 8b 5d 00             mov    0x0(%r13),%rbx
  21:   48 85 db                test   %rbx,%rbx
  24:   74 1f                   je     0x45
  26:   48 8d 6b 18             lea    0x18(%rbx),%rbp
  2a:*  48 8b 1b                mov    (%rbx),%rbx              <-- trapping instruction
  2d:   48 89 ef                mov    %rbp,%rdi
  30:   e8 58 00 00 00          call   0x8d
  35:   48 89 ee                mov    %rbp,%rsi
  38:   4c 89 e7                mov    %r12,%rdi
  3b:   e8 7d fe ff ff          call   0xfffffffffffffebd

Code starting with the faulting instruction
===========================================
   0:   48 8b 1b                mov    (%rbx),%rbx
   3:   48 89 ef                mov    %rbp,%rdi
   6:   e8 58 00 00 00          call   0x63
   b:   48 89 ee                mov    %rbp,%rsi
   e:   4c 89 e7                mov    %r12,%rdi
  11:   e8 7d fe ff ff          call   0xfffffffffffffe93
Nov 01 23:11:10 zfstest kernel: RSP: 0018:ffffadd209f43cf0 EFLAGS: 00010202
Nov 01 23:11:10 zfstest kernel: RAX: 0000000000000000 RBX: 737cf5efc3d75a1c RCX: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: RDX: 00000000002a0008 RSI: fffff612c55fbbc0 RDI: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: RBP: 737cf5efc3d75a34 R08: ffff9521d7eeff00 R09: 00000000002a0007
Nov 01 23:11:10 zfstest kernel: R10: 00000000001c0000 R11: 0000000000000000 R12: ffff952203ca7c40
Nov 01 23:11:10 zfstest kernel: R13: ffff9522370f9000 R14: ffff9521a5594d40 R15: ffff9521a5594c30
Nov 01 23:11:10 zfstest kernel: FS:  00007f69096006c0(0000) GS:ffff9522f4280000(0000) knlGS:0000000000000000
Nov 01 23:11:10 zfstest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 23:11:10 zfstest kernel: CR2: 000055b00b1fb6c0 CR3: 00000001425bc000 CR4: 0000000000350ef0

@snajpa snajpa force-pushed the dev-5 branch 2 times, most recently from 7f5644e to 0192591 Compare November 3, 2024 03:23
@snajpa
Copy link
Member Author

snajpa commented Nov 3, 2024

@TheUbuntuGuy the only thing I could find is that truncate_setsize(ZTOI(zp), 0) doesn't mark the mappings as finished, so that could in theory allow read/write into znodes that are being evicted. If it's not that, then I guess it's more staring at bits for me \o/

could you pls try the PR as is now? tip at 0192591

@snajpa
Copy link
Member Author

snajpa commented Nov 3, 2024

I just fixed a bug I made in truncate(2), so the current patchstack tip is at 63c5598

@TheUbuntuGuy
Copy link

Tested 7c19c30 twice. Got the following:

[   77.631933] Oops: general protection fault, probably for non-canonical address 0x922fc08e43bf9d92: 0000 [#1] PREEMPT SMP NOPTI
[   77.635249] CPU: 123 PID: 3433 Comm: dockerd Tainted: P           OE      6.10.14-xxx #1
[   77.637803] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[   77.640242] RIP: 0010:memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
[ 77.641331] Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
All code
========
   0:   00 48 89                add    %cl,-0x77(%rax)
   3:   f8                      clc
   4:   48 83 fa 20             cmp    $0x20,%rdx
   8:   72 7e                   jb     0x88
   a:   40 38 fe                cmp    %dil,%sil
   d:   7c 35                   jl     0x44
   f:   48 83 ea 20             sub    $0x20,%rdx
  13:   48 83 ea 20             sub    $0x20,%rdx
  17:   4c 8b 06                mov    (%rsi),%r8
  1a:   4c 8b 4e 08             mov    0x8(%rsi),%r9
  1e:   4c 8b 56 10             mov    0x10(%rsi),%r10
  22:   4c 8b 5e 18             mov    0x18(%rsi),%r11
  26:   48 8d 76 20             lea    0x20(%rsi),%rsi
  2a:*  4c 89 07                mov    %r8,(%rdi)               <-- trapping instruction
  2d:   4c 89 4f 08             mov    %r9,0x8(%rdi)
  31:   4c 89 57 10             mov    %r10,0x10(%rdi)
  35:   4c 89 5f 18             mov    %r11,0x18(%rdi)
  39:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  3d:   73 d4                   jae    0x13
  3f:   83                      .byte 0x83

Code starting with the faulting instruction
===========================================
   0:   4c 89 07                mov    %r8,(%rdi)
   3:   4c 89 4f 08             mov    %r9,0x8(%rdi)
   7:   4c 89 57 10             mov    %r10,0x10(%rdi)
   b:   4c 89 5f 18             mov    %r11,0x18(%rdi)
   f:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  13:   73 d4                   jae    0xffffffffffffffe9
  15:   83                      .byte 0x83
[   77.645819] RSP: 0018:ffffbc75bd70f880 EFLAGS: 00010206
[   77.647113] RAX: 922fc08e43bf9d92 RBX: ffffbc75bd70f920 RCX: 0000000000000000
[   77.648834] RDX: 0000000000007fc0 RSI: ffff98825a198020 RDI: 922fc08e43bf9d92
[   77.650492] RBP: 0000000000008000 R08: b8aa0e6694376ab2 R09: 265bb1dc6c956f69
[   77.652246] R10: dea54cd6f2fd16b6 R11: 9aa7c0ea503dbac0 R12: ffff988192b92180
[   77.654027] R13: 0000000000008000 R14: ffffbc75bd70f920 R15: 0000000000000000
[   77.655805] FS:  00007f26acc006c0(0000) GS:ffff988277b80000(0000) knlGS:0000000000000000
[   77.657708] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   77.659106] CR2: 000000c004a21010 CR3: 0000000127e1c000 CR4: 0000000000350ef0
[   77.660848] Call Trace:
[   77.661508]  <TASK>
[   77.662031] ? __die_body (arch/x86/kernel/dumpstack.c:421) 
[   77.662909] ? die_addr (arch/x86/kernel/dumpstack.c:462) 
[   77.663760] ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
[   77.664929] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
[   77.666167] ? memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
[   77.667086] abd_copy_to_buf_off_cb (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:849) zfs
[   77.668371] abd_iterate_func (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:783) zfs
[   77.669525] ? abd_advance_abd_iter (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:845) zfs
[   77.670777] abd_copy_to_buf_off (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/abd.c:864) zfs
[   77.671957] arc_buf_fill (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:2068) zfs
[   77.673065] ? percpu_counter_add_batch (lib/percpu_counter.c:93) 
[   77.674170] ? arc_buf_alloc_impl (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:2796) zfs
[   77.675352] arc_read (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/arc.c:5725) zfs
[   77.676344] ? dbuf_rele_and_unlock (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1384) zfs
[   77.677601] ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
[   77.678520] dbuf_read_impl.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1658) zfs
[   77.679834] dbuf_read (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1856) zfs
[   77.680832] dmu_buf_hold_array_by_dnode (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:607) zfs
[   77.682206] dmu_read_uio_dnode (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:1414) zfs
[   77.683370] zfs_read (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zfs_vnops.c:433) zfs
[   77.684371] zpl_iter_read (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/zfs/zpl_file.c:256) zfs
[   77.685455] vfs_read (fs/read_write.c:395 fs/read_write.c:476 fs/read_write.c:456) 
[   77.686225] ksys_read (fs/read_write.c:619) 
[   77.686967] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) 
[   77.687816] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) 
[   77.688943] RIP: 0033:0x5618c5f44dee
[ 77.689744] Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
All code
========
   0:   48 83 ec 38             sub    $0x38,%rsp
   4:   e8 13 00 00 00          call   0x1c
   9:   48 83 c4 38             add    $0x38,%rsp
   d:   5d                      pop    %rbp
   e:   c3                      ret
   f:   cc                      int3
  10:   cc                      int3
  11:   cc                      int3
  12:   cc                      int3
  13:   cc                      int3
  14:   cc                      int3
  15:   cc                      int3
  16:   cc                      int3
  17:   cc                      int3
  18:   cc                      int3
  19:   cc                      int3
  1a:   cc                      int3
  1b:   cc                      int3
  1c:   49 89 f2                mov    %rsi,%r10
  1f:   48 89 fa                mov    %rdi,%rdx
  22:   48 89 ce                mov    %rcx,%rsi
  25:   48 89 df                mov    %rbx,%rdi
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   76 15                   jbe    0x47
  32:   48 f7 d8                neg    %rax
  35:   48 89 c1                mov    %rax,%rcx
  38:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   76 15                   jbe    0x1d
   8:   48 f7 d8                neg    %rax
   b:   48 89 c1                mov    %rax,%rcx
   e:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  15:   48                      rex.W
[   77.693875] RSP: 002b:000000c000a944e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000000
[   77.695597] RAX: ffffffffffffffda RBX: 0000000000000019 RCX: 00005618c5f44dee
[   77.697268] RDX: 0000000000008000 RSI: 000000c002466000 RDI: 0000000000000019
[   77.698938] RBP: 000000c000a94528 R08: 0000000000000000 R09: 0000000000000000
[   77.700595] R10: 0000000000000000 R11: 0000000000000206 R12: 000000c000a94658
[   77.702223] R13: ffffffffffffffff R14: 000000c000e01dc0 R15: 0000000000000000
[   77.703758]  </TASK>
[   77.704296] Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 snd_pcsp snd_pcm aesni_intel qxl snd_timer drm_ttm_helper cfg80211 crypto_simd iTCO_wdt snd ttm intel_pmc_bxt cryptd soundcore iTCO_vendor_support drm_kms_helper joydev input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci virtio_net xhci_pci i2c_smbus crc32_pclmul psmouse libahci virtio_blk dimlib xhci_pci_renesas i2c_mux lpc_ich
[   77.721579] ---[ end trace 0000000000000000 ]---
[   77.957458] Oops: general protection fault, probably for non-canonical address 0xa99a27e22b4cbfd2: 0000 [#2] PREEMPT SMP NOPTI
[   77.963781] CPU: 104 PID: 3255 Comm: z_wr_iss_3 Tainted: P      D    OE      6.10.14-xxx #1
[   77.966871] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[   77.968936] RIP: 0010:LZ4_compressCtx (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:553) zfs
[ 77.971998] Code: 01 4c 29 d1 41 89 c9 48 63 d1 41 c1 f9 08 4d 63 c9 4e 8d 4c 0a 08 49 01 c1 4d 39 ce 72 a9 83 f9 0e 0f 8f f2 01 00 00 c1 e1 04 <41> 88 4d 00 48 01 c2 49 8b 0a 48 83 c0 08 49 83 c2 08 48 89 48 f8
All code
========
   0:   01 4c 29 d1             add    %ecx,-0x2f(%rcx,%rbp,1)
   4:   41 89 c9                mov    %ecx,%r9d
   7:   48 63 d1                movslq %ecx,%rdx
   a:   41 c1 f9 08             sar    $0x8,%r9d
   e:   4d 63 c9                movslq %r9d,%r9
  11:   4e 8d 4c 0a 08          lea    0x8(%rdx,%r9,1),%r9
  16:   49 01 c1                add    %rax,%r9
  19:   4d 39 ce                cmp    %r9,%r14
  1c:   72 a9                   jb     0xffffffffffffffc7
  1e:   83 f9 0e                cmp    $0xe,%ecx
  21:   0f 8f f2 01 00 00       jg     0x219
  27:   c1 e1 04                shl    $0x4,%ecx
  2a:*  41 88 4d 00             mov    %cl,0x0(%r13)            <-- trapping instruction
  2e:   48 01 c2                add    %rax,%rdx
  31:   49 8b 0a                mov    (%r10),%rcx
  34:   48 83 c0 08             add    $0x8,%rax
  38:   49 83 c2 08             add    $0x8,%r10
  3c:   48 89 48 f8             mov    %rcx,-0x8(%rax)

Code starting with the faulting instruction
===========================================
   0:   41 88 4d 00             mov    %cl,0x0(%r13)
   4:   48 01 c2                add    %rax,%rdx
   7:   49 8b 0a                mov    (%r10),%rcx
   a:   48 83 c0 08             add    $0x8,%rax
   e:   49 83 c2 08             add    $0x8,%r10
  12:   48 89 48 f8             mov    %rcx,-0x8(%rax)
[   77.991644] RSP: 0018:ffffbc75b11efc00 EFLAGS: 00010212
[   77.995261] RAX: a99a27e22b4cbfd3 RBX: ffffbc75e250800e RCX: 00000000000000e0
[   78.016572] RDX: 000000000000000e RSI: ffffbc75e2528000 RDI: ffffbc75e250800d
[   78.035534] RBP: ffffbc75e2508000 R08: a99a27e22b4cbfd2 R09: a99a27e22b4cbfe9
[   78.040140] R10: ffffbc75e2508000 R11: 00000000ffffffff R12: ffff98814f5a4000
[   78.041976] R13: a99a27e22b4cbfd2 R14: a99a27e22b4e7fce R15: ffffbc75e2527ff4
[   78.043738] FS:  0000000000000000(0000) GS:ffff988277200000(0000) knlGS:0000000000000000
[   78.045841] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.047581] CR2: 000000c00470f1c5 CR3: 0000000127e1c000 CR4: 0000000000350ef0
[   78.049511] Call Trace:
[   78.050225]  <TASK>
[   78.050812] ? __die_body (arch/x86/kernel/dumpstack.c:421) 
[   78.051881] ? die_addr (arch/x86/kernel/dumpstack.c:462) 
[   78.052782] ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
[   78.053999] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
[   78.055193] ? LZ4_compressCtx (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:553) zfs
[   78.056369] ? percpu_counter_add_batch (lib/percpu_counter.c:93) 
[   78.057578] real_LZ4_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:863) zfs
[   78.058872] zfs_lz4_compress_buf.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:65) zfs
[   78.060381] zfs_lz4_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:103) zfs
[   78.061610] zio_compress_data (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio_compress.c:157) zfs
[   78.062783] zio_write_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:1916) zfs
[   78.064079] ? zio_io_to_allocate (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:3957) zfs
[   78.065349] ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
[   78.066354] zio_execute (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2427 /tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2338) zfs
[   78.067449] taskq_thread (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/spl/spl-taskq.c:1079) spl
[   78.068544] ? wake_up_state (kernel/sched/core.c:7084) 
[   78.069541] ? zio_execute_stack_check.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2334) zfs
[   78.071118] ? param_set_taskq_kick (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/spl/spl-taskq.c:975) spl
[   78.072350] kthread (kernel/kthread.c:389) 
[   78.073176] ? kthread_park (kernel/kthread.c:342) 
[   78.074118] ret_from_fork (arch/x86/kernel/process.c:153) 
[   78.075058] ? kthread_park (kernel/kthread.c:342) 
[   78.076012] ret_from_fork_asm (arch/x86/entry/entry_64.S:254) 
[   78.077022]  </TASK>
[   78.077598] Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 snd_pcsp snd_pcm aesni_intel qxl snd_timer drm_ttm_helper cfg80211 crypto_simd iTCO_wdt snd ttm intel_pmc_bxt cryptd soundcore iTCO_vendor_support drm_kms_helper joydev input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci virtio_net xhci_pci i2c_smbus crc32_pclmul psmouse libahci virtio_blk dimlib xhci_pci_renesas i2c_mux lpc_ich
[   78.097460] Oops: general protection fault, probably for non-canonical address 0x7593c604df6be8c9: 0000 [#3] PREEMPT SMP NOPTI
[   78.097477] ---[ end trace 0000000000000000 ]---
[   78.100397] CPU: 94 PID: 3264 Comm: z_wr_iss_3 Tainted: P      D    OE      6.10.14-xxx #1
[   78.100400] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[   78.100401] RIP: 0010:LZ4_compressCtx (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:547) zfs
[ 78.107115] Code: 4c 89 f5 4d 89 e7 49 89 da 48 8b 74 24 28 4c 8b 74 24 08 49 89 c4 4c 8b 44 24 30 48 83 c3 01 c1 e9 14 e9 bb fc ff ff 83 e9 0f <41> c6 45 00 f0 81 f9 fe 00 00 00 7e 16 81 e9 ff 00 00 00 48 83 c0
All code
========
   0:   4c 89 f5                mov    %r14,%rbp
   3:   4d 89 e7                mov    %r12,%r15
   6:   49 89 da                mov    %rbx,%r10
   9:   48 8b 74 24 28          mov    0x28(%rsp),%rsi
   e:   4c 8b 74 24 08          mov    0x8(%rsp),%r14
  13:   49 89 c4                mov    %rax,%r12
  16:   4c 8b 44 24 30          mov    0x30(%rsp),%r8
  1b:   48 83 c3 01             add    $0x1,%rbx
  1f:   c1 e9 14                shr    $0x14,%ecx
  22:   e9 bb fc ff ff          jmp    0xfffffffffffffce2
  27:   83 e9 0f                sub    $0xf,%ecx
  2a:*  41 c6 45 00 f0          movb   $0xf0,0x0(%r13)          <-- trapping instruction
  2f:   81 f9 fe 00 00 00       cmp    $0xfe,%ecx
  35:   7e 16                   jle    0x4d
  37:   81 e9 ff 00 00 00       sub    $0xff,%ecx
  3d:   48                      rex.W
  3e:   83                      .byte 0x83
  3f:   c0                      .byte 0xc0

Code starting with the faulting instruction
===========================================
   0:   41 c6 45 00 f0          movb   $0xf0,0x0(%r13)
   5:   81 f9 fe 00 00 00       cmp    $0xfe,%ecx
   b:   7e 16                   jle    0x23
   d:   81 e9 ff 00 00 00       sub    $0xff,%ecx
  13:   48                      rex.W
  14:   83                      .byte 0x83
  15:   c0                      .byte 0xc0
[   78.111464] RSP: 0018:ffffbc75b15d3c00 EFLAGS: 00010246
[   78.112700] RAX: 7593c604df6be8ca RBX: ffffbc75b635f00f RCX: 0000000000000000
[   78.114487] RDX: 000000000000000f RSI: ffffbc75b637f000 RDI: ffffbc75b635f00d
[   78.116277] RBP: ffffbc75b635f000 R08: 7593c604df6be8c9 R09: 7593c604df6be8e1
[   78.118054] R10: ffffbc75b635f000 R11: 0000000002000200 R12: ffff98820f40c000
[   78.119892] R13: 7593c604df6be8c9 R14: 7593c604df6da8c5 R15: ffffbc75b637eff4
[   78.121680] FS:  0000000000000000(0000) GS:ffff988276d00000(0000) knlGS:0000000000000000
[   78.123717] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.125173] CR2: 000000c00540b035 CR3: 0000000127e1c000 CR4: 0000000000350ef0
[   78.126958] Call Trace:
[   78.127621]  <TASK>
[   78.133261] ? __die_body (arch/x86/kernel/dumpstack.c:421) 
[   78.136347] ? die_addr (arch/x86/kernel/dumpstack.c:462) 
[   78.141782] ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
[   78.143310] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
[   78.145105] ? LZ4_compressCtx (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:547) zfs
[   78.147199] ? percpu_counter_add_batch (lib/percpu_counter.c:93) 
[   78.149891] real_LZ4_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:863) zfs
[   78.151237] zfs_lz4_compress_buf.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:65) zfs
[   78.154145] zfs_lz4_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/lz4_zfs.c:103) zfs
[   78.166083] zio_compress_data (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio_compress.c:157) zfs
[   78.169483] zio_write_compress (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:1916) zfs
[   78.173180] ? zio_io_to_allocate (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:3957) zfs
[   78.176235] ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
[   78.178097] zio_execute (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2427 /tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2338) zfs
[   78.179839] taskq_thread (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/spl/spl-taskq.c:1079) spl
[   78.181654] ? wake_up_state (kernel/sched/core.c:7084) 
[   78.183229] ? zio_execute_stack_check.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zio.c:2334) zfs
[   78.185953] ? param_set_taskq_kick (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/spl/spl-taskq.c:975) spl
[   78.187981] kthread (kernel/kthread.c:389) 
[   78.189428] ? kthread_park (kernel/kthread.c:342) 
[   78.191145] ret_from_fork (arch/x86/kernel/process.c:153) 
[   78.192733] ? kthread_park (kernel/kthread.c:342) 
[   78.194225] ret_from_fork_asm (arch/x86/entry/entry_64.S:254) 
[   78.196000]  </TASK>
[   78.197145] Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 snd_pcsp snd_pcm aesni_intel qxl snd_timer drm_ttm_helper cfg80211 crypto_simd iTCO_wdt snd ttm intel_pmc_bxt cryptd soundcore iTCO_vendor_support drm_kms_helper joydev input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci virtio_net xhci_pci i2c_smbus crc32_pclmul psmouse libahci virtio_blk dimlib xhci_pci_renesas i2c_mux lpc_ich
[   78.239436] ---[ end trace 0000000000000000 ]---
[   78.931684] RIP: 0010:memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
[ 78.940708] Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
All code
========
   0:   00 48 89                add    %cl,-0x77(%rax)
   3:   f8                      clc
   4:   48 83 fa 20             cmp    $0x20,%rdx
   8:   72 7e                   jb     0x88
   a:   40 38 fe                cmp    %dil,%sil
   d:   7c 35                   jl     0x44
   f:   48 83 ea 20             sub    $0x20,%rdx
  13:   48 83 ea 20             sub    $0x20,%rdx
  17:   4c 8b 06                mov    (%rsi),%r8
  1a:   4c 8b 4e 08             mov    0x8(%rsi),%r9
  1e:   4c 8b 56 10             mov    0x10(%rsi),%r10
  22:   4c 8b 5e 18             mov    0x18(%rsi),%r11
  26:   48 8d 76 20             lea    0x20(%rsi),%rsi
  2a:*  4c 89 07                mov    %r8,(%rdi)               <-- trapping instruction
  2d:   4c 89 4f 08             mov    %r9,0x8(%rdi)
  31:   4c 89 57 10             mov    %r10,0x10(%rdi)
  35:   4c 89 5f 18             mov    %r11,0x18(%rdi)
  39:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  3d:   73 d4                   jae    0x13
  3f:   83                      .byte 0x83

Code starting with the faulting instruction
===========================================
   0:   4c 89 07                mov    %r8,(%rdi)
   3:   4c 89 4f 08             mov    %r9,0x8(%rdi)
   7:   4c 89 57 10             mov    %r10,0x10(%rdi)
   b:   4c 89 5f 18             mov    %r11,0x18(%rdi)
   f:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  13:   73 d4                   jae    0xffffffffffffffe9
  15:   83                      .byte 0x83
[   78.968726] RSP: 0018:ffffbc75bd70f880 EFLAGS: 00010206
[   78.972095] RAX: 922fc08e43bf9d92 RBX: ffffbc75bd70f920 RCX: 0000000000000000
[   78.975246] RDX: 0000000000007fc0 RSI: ffff98825a198020 RDI: 922fc08e43bf9d92
[   78.977153] RBP: 0000000000008000 R08: b8aa0e6694376ab2 R09: 265bb1dc6c956f69
[   78.979041] R10: dea54cd6f2fd16b6 R11: 9aa7c0ea503dbac0 R12: ffff988192b92180
[   78.980832] R13: 0000000000008000 R14: ffffbc75bd70f920 R15: 0000000000000000
[   78.982561] FS:  00007f26acc006c0(0000) GS:ffff988277b80000(0000) knlGS:0000000000000000
[   78.984343] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.985777] CR2: 000000c004a21010 CR3: 0000000127e1c000 CR4: 0000000000350ef0
[   80.834230] RIP: 0010:memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
[ 80.842900] Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
All code
========
   0:   00 48 89                add    %cl,-0x77(%rax)
   3:   f8                      clc
   4:   48 83 fa 20             cmp    $0x20,%rdx
   8:   72 7e                   jb     0x88
   a:   40 38 fe                cmp    %dil,%sil
   d:   7c 35                   jl     0x44
   f:   48 83 ea 20             sub    $0x20,%rdx
  13:   48 83 ea 20             sub    $0x20,%rdx
  17:   4c 8b 06                mov    (%rsi),%r8
  1a:   4c 8b 4e 08             mov    0x8(%rsi),%r9
  1e:   4c 8b 56 10             mov    0x10(%rsi),%r10
  22:   4c 8b 5e 18             mov    0x18(%rsi),%r11
  26:   48 8d 76 20             lea    0x20(%rsi),%rsi
  2a:*  4c 89 07                mov    %r8,(%rdi)               <-- trapping instruction
  2d:   4c 89 4f 08             mov    %r9,0x8(%rdi)
  31:   4c 89 57 10             mov    %r10,0x10(%rdi)
  35:   4c 89 5f 18             mov    %r11,0x18(%rdi)
  39:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  3d:   73 d4                   jae    0x13
  3f:   83                      .byte 0x83

Code starting with the faulting instruction
===========================================
   0:   4c 89 07                mov    %r8,(%rdi)
   3:   4c 89 4f 08             mov    %r9,0x8(%rdi)
   7:   4c 89 57 10             mov    %r10,0x10(%rdi)
   b:   4c 89 5f 18             mov    %r11,0x18(%rdi)
   f:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  13:   73 d4                   jae    0xffffffffffffffe9
  15:   83                      .byte 0x83
[   80.870481] RSP: 0018:ffffbc75bd70f880 EFLAGS: 00010206
[   80.872686] RAX: 922fc08e43bf9d92 RBX: ffffbc75bd70f920 RCX: 0000000000000000
[   80.877164] RDX: 0000000000007fc0 RSI: ffff98825a198020 RDI: 922fc08e43bf9d92
[   80.880834] RBP: 0000000000008000 R08: b8aa0e6694376ab2 R09: 265bb1dc6c956f69
[   80.885039] R10: dea54cd6f2fd16b6 R11: 9aa7c0ea503dbac0 R12: ffff988192b92180
[   80.889161] R13: 0000000000008000 R14: ffffbc75bd70f920 R15: 0000000000000000
[   80.895084] FS:  0000000000000000(0000) GS:ffff988276d00000(0000) knlGS:0000000000000000
[   80.900433] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   80.902684] CR2: 000000c00540b035 CR3: 0000000127e1c000 CR4: 0000000000350ef0
[   81.928733] RIP: 0010:memcpy_orig (arch/x86/lib/memcpy_64.S:71) 
[ 81.930735] Code: 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 48 83 ea 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d 76 20 <4c> 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 d4 83
All code
========
   0:   00 48 89                add    %cl,-0x77(%rax)
   3:   f8                      clc
   4:   48 83 fa 20             cmp    $0x20,%rdx
   8:   72 7e                   jb     0x88
   a:   40 38 fe                cmp    %dil,%sil
   d:   7c 35                   jl     0x44
   f:   48 83 ea 20             sub    $0x20,%rdx
  13:   48 83 ea 20             sub    $0x20,%rdx
  17:   4c 8b 06                mov    (%rsi),%r8
  1a:   4c 8b 4e 08             mov    0x8(%rsi),%r9
  1e:   4c 8b 56 10             mov    0x10(%rsi),%r10
  22:   4c 8b 5e 18             mov    0x18(%rsi),%r11
  26:   48 8d 76 20             lea    0x20(%rsi),%rsi
  2a:*  4c 89 07                mov    %r8,(%rdi)               <-- trapping instruction
  2d:   4c 89 4f 08             mov    %r9,0x8(%rdi)
  31:   4c 89 57 10             mov    %r10,0x10(%rdi)
  35:   4c 89 5f 18             mov    %r11,0x18(%rdi)
  39:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  3d:   73 d4                   jae    0x13
  3f:   83                      .byte 0x83

Code starting with the faulting instruction
===========================================
   0:   4c 89 07                mov    %r8,(%rdi)
   3:   4c 89 4f 08             mov    %r9,0x8(%rdi)
   7:   4c 89 57 10             mov    %r10,0x10(%rdi)
   b:   4c 89 5f 18             mov    %r11,0x18(%rdi)
   f:   48 8d 7f 20             lea    0x20(%rdi),%rdi
  13:   73 d4                   jae    0xffffffffffffffe9
  15:   83                      .byte 0x83
[   81.938006] RSP: 0018:ffffbc75bd70f880 EFLAGS: 00010206
[   81.939064] RAX: 922fc08e43bf9d92 RBX: ffffbc75bd70f920 RCX: 0000000000000000
[   81.940508] RDX: 0000000000007fc0 RSI: ffff98825a198020 RDI: 922fc08e43bf9d92
[   81.941953] RBP: 0000000000008000 R08: b8aa0e6694376ab2 R09: 265bb1dc6c956f69
[   81.943377] R10: dea54cd6f2fd16b6 R11: 9aa7c0ea503dbac0 R12: ffff988192b92180
[   81.944846] R13: 0000000000008000 R14: ffffbc75bd70f920 R15: 0000000000000000
[   81.946353] FS:  0000000000000000(0000) GS:ffff988277200000(0000) knlGS:0000000000000000
[   81.947946] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   81.949080] CR2: 000000c00470f1c5 CR3: 0000000127e1c000 CR4: 0000000000350ef0

and

[   58.059457] Oops: general protection fault, probably for non-canonical address 0xe7cfe841bdd3559c: 0000 [#1] PREEMPT SMP NOPTI
[   58.063324] CPU: 76 PID: 3334 Comm: dockerd Tainted: P           OE      6.10.14-xxx #1
[   58.065970] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[   58.068291] RIP: 0010:memset_orig (arch/x86/lib/memset_64.S:110) 
[ 58.069225] Code: 66 0f 1f 44 00 00 ff c9 48 89 07 48 8d 7f 08 75 f5 83 e2 07 74 0a ff ca 88 07 48 8d 7f 01 75 f6 4c 89 d0 c3 48 83 fa 07 76 e7 <48> 89 07 49 c7 c0 08 00 00 00 4d 29 c8 4c 01 c7 4c 29 c2 e9 72 ff
All code
========
   0:   66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
   6:   ff c9                   dec    %ecx
   8:   48 89 07                mov    %rax,(%rdi)
   b:   48 8d 7f 08             lea    0x8(%rdi),%rdi
   f:   75 f5                   jne    0x6
  11:   83 e2 07                and    $0x7,%edx
  14:   74 0a                   je     0x20
  16:   ff ca                   dec    %edx
  18:   88 07                   mov    %al,(%rdi)
  1a:   48 8d 7f 01             lea    0x1(%rdi),%rdi
  1e:   75 f6                   jne    0x16
  20:   4c 89 d0                mov    %r10,%rax
  23:   c3                      ret
  24:   48 83 fa 07             cmp    $0x7,%rdx
  28:   76 e7                   jbe    0x11
  2a:*  48 89 07                mov    %rax,(%rdi)              <-- trapping instruction
  2d:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
  34:   4d 29 c8                sub    %r9,%r8
  37:   4c 01 c7                add    %r8,%rdi
  3a:   4c 29 c2                sub    %r8,%rdx
  3d:   e9                      .byte 0xe9
  3e:   72 ff                   jb     0x3f

Code starting with the faulting instruction
===========================================
   0:   48 89 07                mov    %rax,(%rdi)
   3:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
   a:   4d 29 c8                sub    %r9,%r8
   d:   4c 01 c7                add    %r8,%rdi
  10:   4c 29 c2                sub    %r8,%rdx
  13:   e9                      .byte 0xe9
  14:   72 ff                   jb     0x15
[   58.073982] RSP: 0018:ffffaf640955f9f8 EFLAGS: 00010216
[   58.075175] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[   58.076969] RDX: 0000000000020000 RSI: 0000000000000000 RDI: e7cfe841bdd3559c
[   58.079291] RBP: ffffa021a04c76a0 R08: 0000000000000000 R09: 0000000000000004
[   58.081576] R10: e7cfe841bdd3559c R11: 00000000ffffffff R12: 0000000000000000
[   58.083994] R13: 0000000000000002 R14: 0000000000000009 R15: 0000000000000000
[   58.086443] FS:  00007faf1f4006c0(0000) GS:ffffa021f6400000(0000) knlGS:0000000000000000
[   58.089297] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   58.091311] CR2: 000000c000633000 CR3: 0000000110d60000 CR4: 0000000000350ef0
[   58.093834] Call Trace:
[   58.094704]  <TASK>
[   58.095443] ? __die_body (arch/x86/kernel/dumpstack.c:421) 
[   58.096679] ? die_addr (arch/x86/kernel/dumpstack.c:462) 
[   58.097827] ? exc_general_protection (arch/x86/kernel/traps.c:699 arch/x86/kernel/traps.c:644) 
[   58.099462] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) 
[   58.101125] ? memset_orig (arch/x86/lib/memset_64.S:110) 
[   58.102355] dbuf_read_hole (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1494) zfs
[   58.103375] dbuf_read_impl.constprop.0 (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1599) zfs
[   58.104894] ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
[   58.105817] ? dbuf_create (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:3460) zfs
[   58.107383] ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
[   58.108510] ? _raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 ./include/linux/spinlock.h:187 ./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) 
[   58.109340] ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
[   58.110206] ? dbuf_hold_impl (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:3972) zfs
[   58.111261] ? preempt_count_add (./include/linux/ftrace.h:975 kernel/sched/core.c:5850 kernel/sched/core.c:5847 kernel/sched/core.c:5875) 
[   58.112127] ? _raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 ./include/linux/spinlock.h:187 ./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) 
[   58.112934] ? rrw_enter_read_impl (/usr/src/linux-headers-6.10.14-xxx/./include/linux/spinlock.h:391 /tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/rrwlock.c:191) zfs
[   58.114043] dbuf_read (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:1856) zfs
[   58.115150] ? _raw_spin_unlock (./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) 
[   58.116505] dmu_buf_will_dirty_impl (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dbuf.c:2692 (discriminator 1)) zfs
[   58.118321] dmu_write_uio_dnode (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/dmu.c:1553) zfs
[   58.120043] zfs_write (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/zfs/zfs_vnops.c:866) zfs
[   58.121521] zpl_iter_write (/tmp/zfs-build--BGIRxMra/BUILD/zfs-kmod-2.3.99/_kmod_build_6.10.14-xxx/module/os/linux/zfs/zpl_file.c:306) zfs
[   58.123094] vfs_write (fs/read_write.c:497 fs/read_write.c:590 fs/read_write.c:570) 
[   58.124026] ksys_write (fs/read_write.c:643) 
[   58.124719] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) 
[   58.125461] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) 
[   58.126570] RIP: 0033:0x56176b51bdee
[ 58.127346] Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
All code
========
   0:   48 83 ec 38             sub    $0x38,%rsp
   4:   e8 13 00 00 00          call   0x1c
   9:   48 83 c4 38             add    $0x38,%rsp
   d:   5d                      pop    %rbp
   e:   c3                      ret
   f:   cc                      int3
  10:   cc                      int3
  11:   cc                      int3
  12:   cc                      int3
  13:   cc                      int3
  14:   cc                      int3
  15:   cc                      int3
  16:   cc                      int3
  17:   cc                      int3
  18:   cc                      int3
  19:   cc                      int3
  1a:   cc                      int3
  1b:   cc                      int3
  1c:   49 89 f2                mov    %rsi,%r10
  1f:   48 89 fa                mov    %rdi,%rdx
  22:   48 89 ce                mov    %rcx,%rsi
  25:   48 89 df                mov    %rbx,%rdi
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   76 15                   jbe    0x47
  32:   48 f7 d8                neg    %rax
  35:   48 89 c1                mov    %rax,%rcx
  38:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   76 15                   jbe    0x1d
   8:   48 f7 d8                neg    %rax
   b:   48 89 c1                mov    %rax,%rcx
   e:   48 c7 c0 ff ff ff ff    mov    $0xffffffffffffffff,%rax
  15:   48                      rex.W
[   58.131259] RSP: 002b:000000c00221ee08 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
[   58.132828] RAX: ffffffffffffffda RBX: 000000000000002d RCX: 000056176b51bdee
[   58.134264] RDX: 0000000000008000 RSI: 000000c003fb2000 RDI: 000000000000002d
[   58.135709] RBP: 000000c00221ee48 R08: 0000000000000000 R09: 0000000000000000
[   58.137164] R10: 0000000000000000 R11: 0000000000000202 R12: 000000c00221ef78
[   58.138636] R13: ffffffffffffffff R14: 000000c000006e00 R15: 0000000000000000
[   58.140150]  </TASK>
[   58.140644] Modules linked in: nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink nvme_fabrics overlay binfmt_misc intel_rapl_msr nls_iso8859_1 intel_rapl_common cfg80211 crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 snd_pcsp sha1_ssse3 snd_pcm qxl aesni_intel drm_ttm_helper snd_timer crypto_simd ttm iTCO_wdt snd cryptd intel_pmc_bxt drm_kms_helper soundcore joydev iTCO_vendor_support input_leds mac_hid serio_raw drm efi_pstore dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 zfs(POE) spl(OE) hid_generic usbhid hid i2c_i801 ahci i2c_smbus xhci_pci virtio_net psmouse crc32_pclmul lpc_ich virtio_blk libahci i2c_mux xhci_pci_renesas dimlib
[   58.161867] ---[ end trace 0000000000000000 ]---
[   59.166130] RIP: 0010:memset_orig (arch/x86/lib/memset_64.S:110) 
[ 59.167506] Code: 66 0f 1f 44 00 00 ff c9 48 89 07 48 8d 7f 08 75 f5 83 e2 07 74 0a ff ca 88 07 48 8d 7f 01 75 f6 4c 89 d0 c3 48 83 fa 07 76 e7 <48> 89 07 49 c7 c0 08 00 00 00 4d 29 c8 4c 01 c7 4c 29 c2 e9 72 ff
All code
========
   0:   66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
   6:   ff c9                   dec    %ecx
   8:   48 89 07                mov    %rax,(%rdi)
   b:   48 8d 7f 08             lea    0x8(%rdi),%rdi
   f:   75 f5                   jne    0x6
  11:   83 e2 07                and    $0x7,%edx
  14:   74 0a                   je     0x20
  16:   ff ca                   dec    %edx
  18:   88 07                   mov    %al,(%rdi)
  1a:   48 8d 7f 01             lea    0x1(%rdi),%rdi
  1e:   75 f6                   jne    0x16
  20:   4c 89 d0                mov    %r10,%rax
  23:   c3                      ret
  24:   48 83 fa 07             cmp    $0x7,%rdx
  28:   76 e7                   jbe    0x11
  2a:*  48 89 07                mov    %rax,(%rdi)              <-- trapping instruction
  2d:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
  34:   4d 29 c8                sub    %r9,%r8
  37:   4c 01 c7                add    %r8,%rdi
  3a:   4c 29 c2                sub    %r8,%rdx
  3d:   e9                      .byte 0xe9
  3e:   72 ff                   jb     0x3f

Code starting with the faulting instruction
===========================================
   0:   48 89 07                mov    %rax,(%rdi)
   3:   49 c7 c0 08 00 00 00    mov    $0x8,%r8
   a:   4d 29 c8                sub    %r9,%r8
   d:   4c 01 c7                add    %r8,%rdi
  10:   4c 29 c2                sub    %r8,%rdx
  13:   e9                      .byte 0xe9
  14:   72 ff                   jb     0x15
[   59.172825] RSP: 0018:ffffaf640955f9f8 EFLAGS: 00010216
[   59.173990] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[   59.175521] RDX: 0000000000020000 RSI: 0000000000000000 RDI: e7cfe841bdd3559c
[   59.176989] RBP: ffffa021a04c76a0 R08: 0000000000000000 R09: 0000000000000004
[   59.178457] R10: e7cfe841bdd3559c R11: 00000000ffffffff R12: 0000000000000000
[   59.180051] R13: 0000000000000002 R14: 0000000000000009 R15: 0000000000000000
[   59.181534] FS:  00007faf1f4006c0(0000) GS:ffffa021f6400000(0000) knlGS:0000000000000000
[   59.183220] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   59.184509] CR2: 000000c000633000 CR3: 0000000110d60000 CR4: 0000000000350ef0

@snajpa
Copy link
Member Author

snajpa commented Nov 4, 2024

@TheUbuntuGuy is your zfs ./configured with --enable-debug? if not, can you please? :) it's so weird not to hit any of the VERIFY's there

@snajpa
Copy link
Member Author

snajpa commented Nov 4, 2024

@TheUbuntuGuy also the hex offsets at each function in a stack trace were better than line numbers :'(

@TheUbuntuGuy
Copy link

Sure. I have just --enable-debuginfo, so I'll add --enable-debug and re-run. I'll leave the traces raw as you prefer.

@snajpa
Copy link
Member Author

snajpa commented Nov 4, 2024

If we run +-similar toolchain I should be arriving at relevant line numbers from those offsets alone, let's verify :)

# gcc --version
gcc (Debian 13.3.0-6) 13.3.0
[...]

@snajpa
Copy link
Member Author

snajpa commented Nov 4, 2024

oh sh*t it upgraded again I used to run a bit older one just a few days back :D ok this is funny, maybe the lines will be better after all, if you can share the exact corresponding source, then... I think we can just skip trying to match the offsets and what they mean together

@TheUbuntuGuy
Copy link

Our build environment has to target some old distributions, so we are still using

gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0

If you need me to change my build environment to match yours, I can do that. It's all automated in a CI pipeline using Docker containers.

@snajpa
Copy link
Member Author

snajpa commented Nov 4, 2024

ok can we please unify then on latest debian/sid with gcc-14? that should be the easiest to reach for both of us I hope, assuming you can do current sid

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

very well could be, yes, can you try to replicate with preempt=none? I'll try the same

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

bang, even with preempt=none, next up, init on alloc/free :D

@TheUbuntuGuy
Copy link

That was fast. Didn't even have time to recompile :D

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

you can switch that runtime with echo none > /sys/kernel/debug/sched/preempt

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

bang. ok dunno whatever it was that finally made the difference... time to hunt down what's going in zfs :D

@TheUbuntuGuy
Copy link

I noticed you have CONFIG_ZFS=m. Are you building in-tree or out?

I went through it (minus the drivers) and I can't see much. Are the security mitigations masking something?
I have a bunch disabled.

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

that's from a production kernel for easier live patching, there it's builtin, on a dev node it's OOT

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

with block cloning off, I get:

[  281.685911] ------------[ cut here ]------------
[  281.691264] WARNING: CPU: 114 PID: 5558 at kernel/locking/rwsem.c:245 down_read+0x7e/0xa0
[  281.700398] Modules linked in: zfs(PO) sch_fq_codel igb i2c_algo_bit ixgbe mdio dca tg3 overlay sata_nv sata_via sata_sis sata_uli isci libsas scsi_transport_sas hid_lenovo hid_apple hid_roccat hid_logitech_hidpp hid_logitech_dj pcips2 br_netfilter ceph libceph ip_gre gre iptable_nat ip6table_nat ip_vs_dh ip_vs_fo ip_vs_ftp ip_vs_lblc ip_vs_lblcr ip_vs_lc ip_vs_nq ip_vs_ovf ip_vs_pe_sip ip_vs_rr ip_vs_sed ip_vs_sh ip_vs_wlc ip_vs_wrr ipip ip_tunnel nf_conntrack_netbios_ns nf_conntrack_netlink nf_conntrack_sane nf_nat_h323 nf_conntrack_h323 nf_nat_pptp nf_conntrack_pptp nf_nat_snmp_basic nf_conntrack_snmp nf_conntrack_broadcast nf_nat_amanda ts_kmp nf_conntrack_amanda nf_nat_ftp nf_conntrack_ftp nf_nat_irc nf_conntrack_irc nf_nat_sip nf_conntrack_sip nf_nat_tftp nf_conntrack_tftp nft_chain_nat nft_compat nft_ct nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_limit nft_log nft_masq nft_nat nft_redir nft_reject_inet nft_reject nf_tables veth wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64
[  281.700530]  libcurve25519_generic libchacha sch_fq tcp_bbr ipmi_ssif acpi_power_meter acpi_ipmi ipmi_devintf ipmi_msghandler i2c_piix4 ptdma k10temp megaraid_sas bnxt_en wmi_bmof wmi xt_tcpudp xt_LOG nf_log_syslog xt_pkttype xt_conntrack dummy sch_cake ifb sch_ingress cls_matchall act_mirred xt_MASQUERADE xt_addrtype xt_limit xt_comment ipt_REJECT nf_reject_ipv4 ip6t_rt xt_hl ip6t_REJECT nf_reject_ipv6 xfrm_user xfrm_algo ipt_rpfilter ip6t_rpfilter xt_multiport nfsv3 xt_mark xt_nat iptable_filter ip6table_filter iptable_raw iptable_security iptable_mangle ip6table_raw ip6table_security ip6table_mangle ip6_tables xt_state xt_CHECKSUM xt_REDIRECT nf_nat xt_connlimit nf_conncount xt_recent nfsv4 nfs rpcsec_gss_krb5 8021q garp mrp raw_diag udp_diag tcp_diag xt_hashlimit xt_NFLOG nfnetlink_log xt_CT netlink_diag af_packet_diag joydev unix_diag xt_bpf xt_policy vxlan xt_ipvs hid_generic ip_vs xt_u32 nfnetlink_acct usbhid ip_set_hash_net iTCO_wdt hid intel_pmc_bxt ip_set_hash_ip intel_rapl_msr iTCO_vendor_support xt_string
[  281.763545]  ts_bm xt_connmark nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 sctp_diag sctp inet_diag l2tp_ppp l2tp_netlink l2tp_core intel_rapl_common pppox ip6_udp_tunnel udp_tunnel xt_set ip_set cifs cifs_arc4 nls_ucs2_utils cifs_md4 kvm_amd snd_hda_codec_generic netfs ccp snd_hda_intel nls_utf8 snd_intel_dspcfg xt_physdev xt_statistic snd_intel_sdw_acpi xt_owner kvm snd_hda_codec crct10dif_pclmul crc32_pclmul polyval_clmulni snd_hda_core msr polyval_generic snd_hwdep cls_u32 ghash_clmulni_intel sha512_ssse3 snd_pcm xfrm_interface sha256_ssse3 xfrm6_tunnel sha1_ssse3 binfmt_misc aesni_intel spl(O) tunnel4 snd_timer crypto_simd i2c_i801 snd ahci xhci_pci cryptd i2c_smbus tunnel6 virtio_net virtio_scsi soundcore pcspkr lpc_ich libahci i2c_mux xhci_pci_renesas ib_core dimlib algif_hash af_alg vsock_diag sch_netem drm efi_pstore nfnetlink vsock_loopback vmw_vsock_virtio_transport_common vmw_vsock_vmci_transport vsock vmw_vmci dmi_sysfs qemu_fw_cfg virtio_rng ip_tables x_tables autofs4 raid10 raid456 libcrc32c
[  281.829574]  async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq raid1 raid0 nls_iso8859_1 bridge stp llc nfsd auth_rpcgss nfs_acl lockd grace sunrpc psmouse input_leds serio_raw virtio_blk evbug mac_hid [last unloaded: zfs(PO)]
[  281.887220] CPU: 114 PID: 5558 Comm: dockerd Tainted: P           O       6.10.14 #1
[  281.890143] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 2/2/2022
[  281.893279] RIP: 0010:down_read+0x7e/0xa0
[  281.895056] Code: 90 41 29 44 85 c0 74 1b 5b c3 48 8b 43 08 83 e0 02 65 48 0b 05 73 41 29 44 48 83 c8 01 48 89 43 08 eb d0 e8 d4 32 26 ff 5b c3 <0f> 0b 48 8b 43 08 a8 01 74 b2 a8 02 75 ae 48 89 c2 48 83 ca 02 f0
[  281.904985] RSP: 0018:ffffb9dee3627af8 EFLAGS: 00010282
[  281.908529] RAX: ffffa055cf806500 RBX: ffffa054c940f000 RCX: 0000000000000000
[  281.913104] RDX: 0000000000000001 RSI: d8b5216759a49152 RDI: ffffffffbbda0bb8
[  281.916105] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000020
[  281.920147] R10: ffffb9dee3627ad0 R11: 0000000000000004 R12: ffffa055cf806500
[  281.923513] R13: 0000000000000001 R14: ffffa054c940f148 R15: ffffa054c940f000
[  281.928488] FS:  00007f64096006c0(0000) GS:ffffa05737700000(0000) knlGS:0000000000000000
[  281.932226] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  281.934558] CR2: 000056458e868d40 CR3: 000000014d63a000 CR4: 00000000003506f0
[  281.937613] Call Trace:
[  281.938705]  <TASK>
[  281.939530]  ? down_read+0x7e/0xa0
[  281.941120]  ? __warn.cold+0x8e/0xe8
[  281.943220]  ? down_read+0x7e/0xa0
[  281.945505]  ? report_bug+0xe2/0x170
[  281.947712]  ? handle_bug+0x38/0x70
[  281.949944]  ? exc_invalid_op+0x13/0x60
[  281.952289]  ? asm_exc_invalid_op+0x16/0x20
[  281.953968]  ? down_read+0x18/0xa0
[  281.955497]  ? down_read+0x7e/0xa0
[  281.957056]  ? down_read+0x18/0xa0
[  281.958650]  dnode_verify+0x7a/0x600 [zfs]
[  281.961873]  dnode_hold_impl+0xbb2/0x15a0 [zfs]
[  281.965618]  ? _raw_spin_lock+0x13/0x30
[  281.968260]  dmu_object_set_blocksize+0x35/0x90 [zfs]
[  281.971387]  zfs_grow_blocksize+0x55/0xc0 [zfs]
[  281.973709]  zfs_write+0x962/0xea0 [zfs]
[  281.975835]  ? schedule+0x30/0xf0
[  281.977123]  zpl_iter_write+0x109/0x1c0 [zfs]
[  281.978875]  vfs_write+0x25c/0x430
[  281.980354]  ksys_write+0x61/0xe0
[  281.982349]  do_syscall_64+0x3f/0xd0
[  281.985845]  entry_SYSCALL_64_after_hwframe+0x4b/0x53
[  281.989987] RIP: 0033:0x56458e8e4ace
[  281.992461] Code: 24 28 44 8b 44 24 2c e9 70 ff ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
[  282.000322] RSP: 002b:000000c002e43090 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
[  282.003637] RAX: ffffffffffffffda RBX: 000000000000007c RCX: 000056458e8e4ace
[  282.009365] RDX: 0000000000000200 RSI: 000000c00622a000 RDI: 000000000000007c
[  282.012242] RBP: 000000c002e430d0 R08: 0000000000000000 R09: 0000000000000000
[  282.014914] R10: 0000000000000000 R11: 0000000000000212 R12: 000000c002e43200
[  282.017642] R13: 000000c002f0d500 R14: 000000c0033ff180 R15: 0000000003740f00
[  282.020201]  </TASK>
[  282.021045] ---[ end trace 0000000000000000 ]---
[  283.647351] Kernel panic - not syncing: buffer modified while frozen!
[  283.656699] CPU: 91 PID: 3365 Comm: dbuf_evict Tainted: P        W  O       6.10.14 #1
[  283.668786] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 2/2/2022
[  283.681882] Call Trace:
[  283.684315]  <TASK>
[  283.686075]  dump_stack_lvl+0x56/0x80
[  283.689415]  panic+0x107/0x2b3
[  283.691989]  arc_cksum_verify.cold+0xc/0x10 [zfs]
[  283.696683]  arc_buf_destroy_impl+0x38/0x890 [zfs]
[  283.700588]  arc_buf_destroy+0x10e/0x3a0 [zfs]
[  283.704147]  dbuf_destroy+0x5d/0xaf0 [zfs]
[  283.707412]  ? percpu_counter_add_batch+0x2e/0xa0
[  283.710779]  ? spl_taskq_fini+0x90/0x90 [spl]
[  283.714348]  dbuf_evict_one+0x167/0x210 [zfs]
[  283.717955]  dbuf_evict_thread+0x1c1/0x370 [zfs]
[  283.721655]  ? dbuf_evict_one+0x210/0x210 [zfs]
[  283.725275]  thread_generic_wrapper+0x5f/0x90 [spl]
[  283.728763]  kthread+0xda/0x110
[  283.730105]  ? kthread_park+0x80/0x80
[  283.731364]  ret_from_fork+0x2d/0x50
[  283.732600]  ? kthread_park+0x80/0x80
[  283.733865]  ret_from_fork_asm+0x11/0x20
[  283.735237]  </TASK>
[  283.744891] Kernel Offset: 0x3a000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[  287.127946] ---[ end Kernel panic - not syncing: buffer modified while frozen! ]---

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

block cloning, direct io, sync all off and:

[  107.101873] ZFS: Loaded module v2.3.99-58_g9718478cb (DEBUG mode), ZFS pool version 5000, ZFS filesystem version 5
[  124.866103]  vda: vda1 vda9
[  172.398605] Kernel panic - not syncing: buffer modified while frozen!
[  172.404362] CPU: 24 PID: 5070 Comm: dockerd Tainted: P           O       6.10.14 #1
[  172.412052] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 2/2/2022
[  172.417714] Call Trace:
[  172.419843]  <TASK>
[  172.421987]  dump_stack_lvl+0x56/0x80
[  172.424848]  panic+0x107/0x2b3
[  172.429143]  arc_cksum_verify.cold+0xc/0x10 [zfs]
[  172.433316]  arc_buf_thaw+0x32/0x1e0 [zfs]
[  172.439574]  dmu_buf_will_dirty_impl+0x1b7/0x380 [zfs]
[  172.446429]  dmu_write_uio_dnode+0xda/0x400 [zfs]
[  172.452023]  zfs_write+0x527/0xea0 [zfs]
[  172.455510]  ? preempt_count_add+0x61/0xa0
[  172.458451]  ? inet_recvmsg+0x3e/0x100
[  172.461322]  zpl_iter_write+0x109/0x1c0 [zfs]
[  172.463944]  vfs_write+0x25c/0x430
[  172.465620]  ksys_write+0x61/0xe0
[  172.467195]  do_syscall_64+0x3f/0xd0
[  172.468852]  entry_SYSCALL_64_after_hwframe+0x4b/0x53
[  172.471155] RIP: 0033:0x5563f411dace
[  172.472805] Code: 24 28 44 8b 44 24 2c e9 70 ff ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
[  172.480865] RSP: 002b:000000c0013b55e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000001
[  172.484918] RAX: ffffffffffffffda RBX: 000000000000010e RCX: 00005563f411dace
[  172.489047] RDX: 0000000000000b50 RSI: 000000c005452000 RDI: 000000000000010e
[  172.493285] RBP: 000000c0013b5628 R08: 0000000000000000 R09: 0000000000000000
[  172.496895] R10: 0000000000000000 R11: 0000000000000206 R12: 000000c0013b5758
[  172.501057] R13: ffffffffffffffff R14: 000000c0033c7180 R15: 0000000000000000
[  172.509574]  </TASK>
[  172.517045] Kernel Offset: 0x30800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[  176.128988] ---[ end Kernel panic - not syncing: buffer modified while frozen! ]---

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

seems to be a race with dbuf_evict thread probably, these parts of zfs are fun

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

yummy, we've also seen this one from your env

snajpadev login: [ 1330.389163] ZFS: Unloaded module v2.3.99-58_g9718478cb (DEBUG mode)
[ 1330.545808] zfs: module verification failed: signature and/or required key missing - tainting kernel
[ 1332.542346] ZFS: Loaded module v2.3.99-58_g9718478cb (DEBUG mode), ZFS pool version 5000, ZFS filesystem version 5
[ 1342.753799]  vda: vda1 vda9
[ 1377.951836] hrtimer: interrupt took 18706899 ns
[ 1395.209160] Kernel panic - not syncing: buffer modified while frozen!
[ 1395.218025] CPU: 29 PID: 9813 Comm: z_wr_int_7 Tainted: P           OE      6.10.14 #1
[ 1395.230902] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 2/2/2022
[ 1395.244048] Call Trace:
[ 1395.246279]  <TASK>
[ 1395.248728]  dump_stack_lvl+0x56/0x80
[ 1395.252936]  panic+0x107/0x2b3
[ 1395.257381]  arc_cksum_verify.cold+0xc/0x10 [zfs]
[ 1395.262014]  arc_write_done+0x158/0x850 [zfs]
[ 1395.265865]  zio_done+0x367/0x2280 [zfs]
[ 1395.269446]  ? _raw_spin_unlock+0x15/0x30
[ 1395.272605]  zio_execute+0xd4/0x290 [zfs]
[ 1395.276055]  taskq_thread+0x34f/0x870 [spl]
[ 1395.278439]  ? wake_up_state+0x10/0x10
[ 1395.281628]  ? zio_gang_node_alloc+0x90/0x90 [zfs]
[ 1395.285551]  ? taskq_thread_spawn+0x60/0x60 [spl]
[ 1395.289185]  kthread+0xda/0x110
[ 1395.292019]  ? kthread_park+0x80/0x80
[ 1395.295372]  ret_from_fork+0x2d/0x50
[ 1395.297933]  ? kthread_park+0x80/0x80
[ 1395.301136]  ret_from_fork_asm+0x11/0x20
[ 1395.304169]  </TASK>
[ 1396.366961] Shutting down cpus with NMI
[ 1396.369180] Kernel Offset: 0x22600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1399.629398] ---[ end Kernel panic - not syncing: buffer modified while frozen! ]---

@TheUbuntuGuy
Copy link

This is a wild guess, but since 6.6 is solid and 6.7 is the first kernel this breaks with, I wonder if the shrinker locking changes are in some way related...
https://lwn.net/Articles/944199/

@snajpa
Copy link
Member Author

snajpa commented Nov 6, 2024

well yes, those changes are causing the original arc_prune trouble, which I solved by incrementing s_active of the sb; but I don't see how it could lead to these ^, that points to some problem with dbuf juggling, hole/spill buffer/something. I'll have to modify the debug builds a bit, that it tells me the checksums don't match is nice but it's too little, I want all the other ASSERTs to tell me more :)

tstabrawa and others added 6 commits November 6, 2024 11:43
This reverts commit b052035.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: tstabrawa <[email protected]>
Closes openzfs#16568
Closes openzfs#16723
Avoids using fallback_migrate_folio, which starts unnecessary writeback
(leading to BUG in migrate_folio_extra).

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: tstabrawa <[email protected]>
Closes openzfs#16568
Closes openzfs#16723
Currently, even though send_reader_thread prefetches spill block,
do_dump() will not use it and issues its own blocking arc_read. This
causes significant performance degradation when sending datasets with
lots of spill blocks.

For unmodified spill blocks, we also create send_range struct for them
in send_reader_thread and issue prefetches for them. We piggyback them
on the dnode send_range instead of enqueueing them so we don't break
send_range_after check.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Co-authored-by: david.chen <[email protected]>
Closes openzfs#16701
a10e552 updated abd_free_linear_page() to no longer call
abd_update_scatter_stat(). This meant that linear pages that were not
attached to Direct I/O requests were not doing waste accounting for the
ARC. This led to performance issues due to incorrect ARC accounting that
resulted in 100% of CPU time being spent in arc_evict() during prolonged
I/O workloads with the ARC.

The call to abd_update_scatter_stats() is now conditionally called in
abd_free_linear_page() when the ABD is not from a Direct I/O request.

Reviewed-by: Mark Maybee <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Brian Atkinson <[email protected]>
Closes openzfs#16729
When building on musl, we get:

```
In file included from tests/zfs-tests/cmd/getversion.c:22:
/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect
 #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>

In file included from module/os/linux/zfs/vdev_file.c:36:
/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect
 #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
```

Bug: https://bugs.gentoo.org/925235
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Sam James <[email protected]>
Closes openzfs#15925
This commit fixes JSON output for zfs list when user properties are
requested with -o flag. This case needed to be handled specifically
since zfs_prop_to_name does not return property name for user
properties, instead it is stored in pl->pl_user_prop.

Reviewed-by: Ameer Hamza <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes openzfs#16732
@snajpa
Copy link
Member Author

snajpa commented Nov 11, 2024

FYI still working on it, it seems like some kind of use after free after some kernel's intervention which the ZFS code doesn't account for, perhaps due to new folio APIs and their new semantics. Still learning on the go :)

usaleem-ix and others added 5 commits November 11, 2024 09:46
This commit fixes JSON output for zpool list when user properties are
requested with -o flag. This case needed to be handled specifically
since zpool_prop_to_name does not return property name for user
properties, instead it is stored in pl->pl_user_prop.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes openzfs#16734
In zpool_get_user_prop, when called from zpool_expand_proplist and
collect_pool, we often have zpool_props present in zpool_handle_t equal
to NULL. This mostly happens when only one user property is requested
using zpool list -o <user_property>. Checking for this case and
correctly initializing the zpool_props field in zpool_handle_t fixes
this issue.

Interestingly, this issue does not occur if we query any other property
like name or guid along with a user property with -o flag because while
accessing properties like guid, zpool_prop_get_int is called which
checks for this case specifically and calls zpool_get_all_props.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes openzfs#16734
by protecting against sb->s_shrink eviction on umount with newer kernels

deactivate_locked_super calls shrinker_free and only then
sops->kill_sb cb, resulting in UAF on umount when trying
to reach for the shrinker functions in zpl_prune_sb of
in-umount dataset

Signed-off-by: Pavel Snajdr <[email protected]>
as per Documentation/filesystems/porting.rst:

quote:

**strongly recommended**

take the RCU-delayed parts of ->destroy_inode() into a new method -
->free_inode().  If ->destroy_inode() becomes empty - all the better,
just get rid of it.

endquote.

Signed-off-by: Pavel Snajdr <[email protected]>
@snajpa
Copy link
Member Author

snajpa commented Nov 13, 2024

it's fun, I think I can exclude folios too, this must be in there for a long time, I've tried ifdefing or else disarming all the new stuff I'd tend to implicate but so far nothing :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.