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

weird failure upon reloading spl module #15235

Closed
xnox opened this issue Sep 1, 2023 · 0 comments
Closed

weird failure upon reloading spl module #15235

xnox opened this issue Sep 1, 2023 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@xnox
Copy link
Contributor

xnox commented Sep 1, 2023

Describe the problem you're observing

Failing to unload and reload zfs/spl modules

Describe how to reproduce the problem

On Mantic Ubuntu we have built 2.2-rc3 with 6.5 cherry-picks from master and we are observing the following

427s [    2.609730] spl: loading out-of-tree module taints kernel.
427s [    2.661313] zfs: module license 'CDDL' taints kernel.
427s [    2.661321] Disabling lock debugging due to kernel taint
427s [    2.661345] zfs: module license taints kernel.
427s [    5.052756] ZFS: Loaded module v2.2.0~rc3-0ubuntu2, ZFS pool version 5000, ZFS filesystem version 5
427s [  293.291433] ZFS: Unloaded module v2.2.0~rc3-0ubuntu2
427s [  293.365382] sysctl duplicate entry: /kernel/spl/kmem/slab_kvmem_total

followed by crashes in spl_proc_init whilst doing many remove_proc_entry.

It feels like loading/reloading the module is not working correctly, and possibly cleanups are not done correctly.

Potentially this might be resolved by #15234 but I have not yet tested this.

427s [  293.365743] ------------[ cut here ]------------
427s [  293.365745] name 'kstat'
427s [  293.365761] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.365789] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.365826] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.365830] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.365831] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.365834] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.365837] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.365839] RAX: 0000000000000000 RBX: ffff900340c61600 RCX: 0000000000000000
427s [  293.365841] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.365843] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.365844] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000005
427s [  293.365845] R13: ffffffffc09ee662 R14: ffffffffc09ee662 R15: 0000000000000000
427s [  293.365848] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.365850] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.365852] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.365856] Call Trace:
427s [  293.365857]  <TASK>
427s [  293.365859]  ? show_regs+0x6d/0x80
427s [  293.365864]  ? __warn+0x89/0x150
427s [  293.365867]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.365869]  ? report_bug+0x16a/0x190
427s [  293.365872]  ? handle_bug+0x51/0xa0
427s [  293.365875]  ? exc_invalid_op+0x18/0x80
427s [  293.365877]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.365882]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.365885]  spl_proc_init+0x15a/0x1e0 [spl]
427s [  293.365905]  spl_init+0x74/0xe20 [spl]
427s [  293.365923]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.365939]  do_one_initcall+0x5e/0x310
427s [  293.365944]  do_init_module+0x68/0x260
427s [  293.365947]  load_module+0xb9c/0xcd0
427s [  293.365951]  ? vfree+0xf9/0x2d0
427s [  293.365955]  init_module_from_file+0x96/0x100
427s [  293.365957]  ? init_module_from_file+0x96/0x100
427s [  293.365960]  idempotent_init_module+0x125/0x260
427s [  293.365963]  __x64_sys_finit_module+0x64/0xd0
427s [  293.365965]  do_syscall_64+0x5c/0x90
427s [  293.365968]  ? ksys_lseek+0x80/0xd0
427s [  293.365972]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.365975]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.365977]  ? do_syscall_64+0x68/0x90
427s [  293.365979]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.365982] RIP: 0033:0x7f54d2325f1d
427s [  293.365993] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.365995] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.365997] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.365998] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.365999] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366000] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366001] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366003]  </TASK>
427s [  293.366004] ---[ end trace 0000000000000000 ]---
427s [  293.366006] ------------[ cut here ]------------
427s [  293.366006] name 'slab'
427s [  293.366014] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.366017] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.366042] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.366044] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.366044] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.366046] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.366048] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.366049] RAX: 0000000000000000 RBX: ffff900340c613c0 RCX: 0000000000000000
427s [  293.366050] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.366051] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.366052] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
427s [  293.366053] R13: ffffffffc09ee65d R14: ffffffffc09ee65d R15: 0000000000000000
427s [  293.366055] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.366056] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.366057] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.366059] Call Trace:
427s [  293.366060]  <TASK>
427s [  293.366061]  ? show_regs+0x6d/0x80
427s [  293.366064]  ? __warn+0x89/0x150
427s [  293.366066]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366067]  ? report_bug+0x16a/0x190
427s [  293.366069]  ? handle_bug+0x51/0xa0
427s [  293.366071]  ? exc_invalid_op+0x18/0x80
427s [  293.366072]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.366076]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366078]  spl_proc_init+0x16d/0x1e0 [spl]
427s [  293.366095]  spl_init+0x74/0xe20 [spl]
427s [  293.366112]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.366127]  do_one_initcall+0x5e/0x310
427s [  293.366131]  do_init_module+0x68/0x260
427s [  293.366133]  load_module+0xb9c/0xcd0
427s [  293.366136]  ? vfree+0xf9/0x2d0
427s [  293.366139]  init_module_from_file+0x96/0x100
427s [  293.366141]  ? init_module_from_file+0x96/0x100
427s [  293.366144]  idempotent_init_module+0x125/0x260
427s [  293.366146]  __x64_sys_finit_module+0x64/0xd0
427s [  293.366149]  do_syscall_64+0x5c/0x90
427s [  293.366151]  ? ksys_lseek+0x80/0xd0
427s [  293.366153]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.366156]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.366157]  ? do_syscall_64+0x68/0x90
427s [  293.366159]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.366162] RIP: 0033:0x7f54d2325f1d
427s [  293.366164] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.366165] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.366167] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.366168] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.366169] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366170] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366171] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366173]  </TASK>
427s [  293.366174] ---[ end trace 0000000000000000 ]---
427s [  293.366175] ------------[ cut here ]------------
427s [  293.366176] name 'kmem'
427s [  293.366182] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.366184] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.366208] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.366210] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.366211] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.366212] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.366213] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.366215] RAX: 0000000000000000 RBX: ffff900340c61d80 RCX: 0000000000000000
427s [  293.366216] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.366217] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.366218] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
427s [  293.366218] R13: ffffffffc09ee658 R14: ffffffffc09ee658 R15: 0000000000000000
427s [  293.366220] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.366222] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.366223] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.366225] Call Trace:
427s [  293.366225]  <TASK>
427s [  293.366226]  ? show_regs+0x6d/0x80
427s [  293.366228]  ? __warn+0x89/0x150
427s [  293.366230]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366232]  ? report_bug+0x16a/0x190
427s [  293.366234]  ? handle_bug+0x51/0xa0
427s [  293.366235]  ? exc_invalid_op+0x18/0x80
427s [  293.366237]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.366240]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366242]  spl_proc_init+0x180/0x1e0 [spl]
427s [  293.366259]  spl_init+0x74/0xe20 [spl]
427s [  293.366274]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.366290]  do_one_initcall+0x5e/0x310
427s [  293.366293]  do_init_module+0x68/0x260
427s [  293.366295]  load_module+0xb9c/0xcd0
427s [  293.366298]  ? vfree+0xf9/0x2d0
427s [  293.366301]  init_module_from_file+0x96/0x100
427s [  293.366303]  ? init_module_from_file+0x96/0x100
427s [  293.366306]  idempotent_init_module+0x125/0x260
427s [  293.366309]  __x64_sys_finit_module+0x64/0xd0
427s [  293.366311]  do_syscall_64+0x5c/0x90
427s [  293.366314]  ? ksys_lseek+0x80/0xd0
427s [  293.366316]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.366318]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.366320]  ? do_syscall_64+0x68/0x90
427s [  293.366322]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.366324] RIP: 0033:0x7f54d2325f1d
427s [  293.366326] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.366328] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.366329] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.366330] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.366331] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366332] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366333] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366335]  </TASK>
427s [  293.366336] ---[ end trace 0000000000000000 ]---
427s [  293.366338] ------------[ cut here ]------------
427s [  293.366338] name 'taskq-all'
427s [  293.366345] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.366347] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.366374] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.366375] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.366376] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.366378] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.366379] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.366381] RAX: 0000000000000000 RBX: ffff900340d89c00 RCX: 0000000000000000
427s [  293.366382] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.366383] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.366385] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000009
427s [  293.366386] R13: ffffffffc09ee64e R14: ffffffffc09ee64e R15: 0000000000000000
427s [  293.366388] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.366389] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.366390] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.366392] Call Trace:
427s [  293.366393]  <TASK>
427s [  293.366393]  ? show_regs+0x6d/0x80
427s [  293.366396]  ? __warn+0x89/0x150
427s [  293.366398]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366399]  ? report_bug+0x16a/0x190
427s [  293.366401]  ? handle_bug+0x51/0xa0
427s [  293.366402]  ? exc_invalid_op+0x18/0x80
427s [  293.366404]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.366407]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366410]  spl_proc_init+0x193/0x1e0 [spl]
427s [  293.366425]  spl_init+0x74/0xe20 [spl]
427s [  293.366441]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.366457]  do_one_initcall+0x5e/0x310
427s [  293.366460]  do_init_module+0x68/0x260
427s [  293.366462]  load_module+0xb9c/0xcd0
427s [  293.366465]  ? vfree+0xf9/0x2d0
427s [  293.366468]  init_module_from_file+0x96/0x100
427s [  293.366470]  ? init_module_from_file+0x96/0x100
427s [  293.366473]  idempotent_init_module+0x125/0x260
427s [  293.366476]  __x64_sys_finit_module+0x64/0xd0
427s [  293.366478]  do_syscall_64+0x5c/0x90
427s [  293.366480]  ? ksys_lseek+0x80/0xd0
427s [  293.366483]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.366485]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.366486]  ? do_syscall_64+0x68/0x90
427s [  293.366489]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.366491] RIP: 0033:0x7f54d2325f1d
427s [  293.366493] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.366494] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.366496] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.366497] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.366498] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366499] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366500] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366502]  </TASK>
427s [  293.366502] ---[ end trace 0000000000000000 ]---
427s [  293.366503] ------------[ cut here ]------------
427s [  293.366504] name 'taskq'
427s [  293.366510] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.366512] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.366536] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.366538] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.366538] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.366540] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.366541] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.366542] RAX: 0000000000000000 RBX: ffff90034ac48480 RCX: 0000000000000000
427s [  293.366543] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.366544] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.366545] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000005
427s [  293.366546] R13: ffffffffc09ee590 R14: ffffffffc09ee590 R15: 0000000000000000
427s [  293.366548] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.366549] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.366550] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.366552] Call Trace:
427s [  293.366553]  <TASK>
427s [  293.366553]  ? show_regs+0x6d/0x80
427s [  293.366556]  ? __warn+0x89/0x150
427s [  293.366558]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366559]  ? report_bug+0x16a/0x190
427s [  293.366561]  ? handle_bug+0x51/0xa0
427s [  293.366562]  ? exc_invalid_op+0x18/0x80
427s [  293.366564]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.366567]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366570]  spl_proc_init+0x1a6/0x1e0 [spl]
427s [  293.366585]  spl_init+0x74/0xe20 [spl]
427s [  293.366601]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.366617]  do_one_initcall+0x5e/0x310
427s [  293.366620]  do_init_module+0x68/0x260
427s [  293.366622]  load_module+0xb9c/0xcd0
427s [  293.366625]  ? vfree+0xf9/0x2d0
427s [  293.366628]  init_module_from_file+0x96/0x100
427s [  293.366630]  ? init_module_from_file+0x96/0x100
427s [  293.366633]  idempotent_init_module+0x125/0x260
427s [  293.366635]  __x64_sys_finit_module+0x64/0xd0
427s [  293.366638]  do_syscall_64+0x5c/0x90
427s [  293.366640]  ? ksys_lseek+0x80/0xd0
427s [  293.366642]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.366645]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.366646]  ? do_syscall_64+0x68/0x90
427s [  293.366648]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.366651] RIP: 0033:0x7f54d2325f1d
427s [  293.366653] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.366654] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.366655] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.366656] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.366657] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366658] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366659] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366661]  </TASK>
427s [  293.366662] ---[ end trace 0000000000000000 ]---
427s [  293.366663] ------------[ cut here ]------------
427s [  293.366663] name 'spl'
427s [  293.366669] WARNING: CPU: 0 PID: 33924 at fs/proc/generic.c:711 remove_proc_entry+0xb1/0x1d0
427s [  293.366671] Modules linked in: spl(O+) xt_TCPMSS xt_tcpudp nft_compat nf_tables cfg80211 binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common kvm_amd ccp kvm irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd i2c_piix4 input_leds joydev mac_hid serio_raw dm_multipath msr efi_pstore dmi_sysfs qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq qxl drm_ttm_helper ttm drm_kms_helper drm virtio_net crc32_pclmul virtio_rng net_failover failover psmouse pata_acpi [last unloaded: spl(O)]
427s [  293.366696] CPU: 0 PID: 33924 Comm: modprobe Tainted: P        W  O       6.5.0-1002-gcp #2-Ubuntu
427s [  293.366697] Hardware name: OpenStack Foundation OpenStack Nova, BIOS 1.13.0-1ubuntu1.1 04/01/2014
427s [  293.366698] RIP: 0010:remove_proc_entry+0xb1/0x1d0
427s [  293.366699] Code: e8 e4 ea ff ff 85 c0 78 56 74 5a 4d 8b 7f 08 4d 85 ff 75 dc c6 05 96 4c 3d 03 00 48 c7 c7 63 60 b6 a3 4c 89 f6 e8 bf ec b8 ff <0f> 0b 48 8b 45 d0 65 48 2b 04 25 28 00 00 00 0f 85 fe 00 00 00 48
427s [  293.366700] RSP: 0018:ffff9bd440b53b40 EFLAGS: 00010246
427s [  293.366702] RAX: 0000000000000000 RBX: ffff900340220840 RCX: 0000000000000000
427s [  293.366703] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
427s [  293.366703] RBP: ffff9bd440b53b88 R08: 0000000000000000 R09: 0000000000000000
427s [  293.366704] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003
427s [  293.366705] R13: ffffffffc09ee64a R14: ffffffffc09ee64a R15: 0000000000000000
427s [  293.366707] FS:  00007f54d2c54040(0000) GS:ffff90037bc00000(0000) knlGS:0000000000000000
427s [  293.366708] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
427s [  293.366709] CR2: 00007f1d52695cf0 CR3: 0000000108220000 CR4: 0000000000350ef0
427s [  293.366711] Call Trace:
427s [  293.366712]  <TASK>
427s [  293.366713]  ? show_regs+0x6d/0x80
427s [  293.366715]  ? __warn+0x89/0x150
427s [  293.366717]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366718]  ? report_bug+0x16a/0x190
427s [  293.366720]  ? handle_bug+0x51/0xa0
427s [  293.366722]  ? exc_invalid_op+0x18/0x80
427s [  293.366723]  ? asm_exc_invalid_op+0x1b/0x20
427s [  293.366727]  ? remove_proc_entry+0xb1/0x1d0
427s [  293.366729]  spl_proc_init+0x1b4/0x1e0 [spl]
427s [  293.366744]  spl_init+0x74/0xe20 [spl]
427s [  293.366760]  ? __pfx_spl_init+0x10/0x10 [spl]
427s [  293.366776]  do_one_initcall+0x5e/0x310
427s [  293.366779]  do_init_module+0x68/0x260
427s [  293.366781]  load_module+0xb9c/0xcd0
427s [  293.366784]  ? vfree+0xf9/0x2d0
427s [  293.366787]  init_module_from_file+0x96/0x100
427s [  293.366789]  ? init_module_from_file+0x96/0x100
427s [  293.366792]  idempotent_init_module+0x125/0x260
427s [  293.366795]  __x64_sys_finit_module+0x64/0xd0
427s [  293.366797]  do_syscall_64+0x5c/0x90
427s [  293.366799]  ? ksys_lseek+0x80/0xd0
427s [  293.366801]  ? exit_to_user_mode_prepare+0x30/0xb0
427s [  293.366804]  ? syscall_exit_to_user_mode+0x37/0x60
427s [  293.366805]  ? do_syscall_64+0x68/0x90
427s [  293.366807]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
427s [  293.366810] RIP: 0033:0x7f54d2325f1d
427s [  293.366812] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 6e 13 00 f7 d8 64 89 01 48
427s [  293.366813] RSP: 002b:00007ffc172b4798 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
427s [  293.366814] RAX: ffffffffffffffda RBX: 00005635ddecf9f0 RCX: 00007f54d2325f1d
427s [  293.366815] RDX: 0000000000000004 RSI: 00005635dc03a727 RDI: 0000000000000003
427s [  293.366816] RBP: 00005635dc03a727 R08: 0000000000000040 R09: 00007ffc172b48a0
427s [  293.366817] R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000040000
427s [  293.366818] R13: 00005635ddecf9b0 R14: 00005635ddec9970 R15: 00005635ddecfc00
427s [  293.366820]  </TASK>
427s [  293.366821] ---[ end trace 0000000000000000 ]---
@xnox xnox added the Type: Defect Incorrect behavior (e.g. crash, hang) label Sep 1, 2023
stgraber pushed a commit to zabbly/zfs that referenced this issue Sep 5, 2023
If we fail to create a proc entry in spl_proc_init() we may end up
calling unregister_sysctl_table() twice: one in the failure path of
spl_proc_init() and another time during spl_proc_fini().

Avoid the double call to unregister_sysctl_table() and while at it
refactor the code a bit to reduce code duplication.

This was accidentally introduced when the spl code was
updated for Linux 6.5 compatibility.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Closes openzfs#15234 
Closes openzfs#15235
stgraber pushed a commit to zabbly/zfs that referenced this issue Sep 8, 2023
If we fail to create a proc entry in spl_proc_init() we may end up
calling unregister_sysctl_table() twice: one in the failure path of
spl_proc_init() and another time during spl_proc_fini().

Avoid the double call to unregister_sysctl_table() and while at it
refactor the code a bit to reduce code duplication.

This was accidentally introduced when the spl code was
updated for Linux 6.5 compatibility.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Closes openzfs#15234 
Closes openzfs#15235
behlendorf pushed a commit that referenced this issue Sep 19, 2023
If we fail to create a proc entry in spl_proc_init() we may end up
calling unregister_sysctl_table() twice: one in the failure path of
spl_proc_init() and another time during spl_proc_fini().

Avoid the double call to unregister_sysctl_table() and while at it
refactor the code a bit to reduce code duplication.

This was accidentally introduced when the spl code was
updated for Linux 6.5 compatibility.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Closes #15234 
Closes #15235
tonyhutter pushed a commit that referenced this issue Sep 27, 2023
If we fail to create a proc entry in spl_proc_init() we may end up
calling unregister_sysctl_table() twice: one in the failure path of
spl_proc_init() and another time during spl_proc_fini().

Avoid the double call to unregister_sysctl_table() and while at it
refactor the code a bit to reduce code duplication.

This was accidentally introduced when the spl code was
updated for Linux 6.5 compatibility.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Closes #15234 
Closes #15235
lundman pushed a commit to openzfsonwindows/openzfs that referenced this issue Dec 12, 2023
If we fail to create a proc entry in spl_proc_init() we may end up
calling unregister_sysctl_table() twice: one in the failure path of
spl_proc_init() and another time during spl_proc_fini().

Avoid the double call to unregister_sysctl_table() and while at it
refactor the code a bit to reduce code duplication.

This was accidentally introduced when the spl code was
updated for Linux 6.5 compatibility.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Closes openzfs#15234 
Closes openzfs#15235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant