* [ISSUE] Segmentation fault by insert zfs module
@ 2023-01-13 9:06 ckyoog
2023-02-10 5:18 ` BikyAlex
0 siblings, 1 reply; 2+ messages in thread
From: ckyoog @ 2023-01-13 9:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 4140 bytes --]
New issue by ckyoog on void-packages repository
https://github.com/void-linux/void-packages/issues/41613
Description:
### Is this a new report?
Yes
### System Info
Void 6.1.4_1 aarch64 Unknown uptodate F
### Package(s) Affected
zfs-2.1.7_1
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
`modprobe zfs` inserts the zfs module with no problem.
### Actual behaviour
The following error displayed when run `modprobe zfs`
```
# modprobe zfs
[ 588.001039] Unable to handle kernel paging request at virtual address 97fff71697ffe5b6
[ 588.001669] Mem abort info:
[ 588.001872] ESR = 0x0000000096000004
[ 588.002142] EC = 0x25: DABT (current EL), IL = 32 bits
[ 588.002528] SET = 0, FnV = 0
[ 588.002748] EA = 0, S1PTW = 0
[ 588.002979] FSC = 0x04: level 0 translation fault
[ 588.003348] Data abort info:
[ 588.003554] ISV = 0, ISS = 0x00000004
[ 588.003861] CM = 0, WnR = 0
[ 588.004082] [97fff71697ffe5b6] address between user and kernel address ranges
[ 588.004603] Internal error: Oops: 0000000096000004 [#1] SMP
[ 588.005152] Modules linked in: spl(O+) algif_hash af_alg af_packet cfg80211 8021q garp mrp stp llc deflate efi_pstore snd_seq snd_seq_device snd_timer snd soundcore vhost_vsock vmw_vsock_virtio_transport_common vsock vhost_net vhost vhost_iotlb tap hci_vhci bluetooth ecdh_generic rfkill ecc vfio_iommu_type1 vfio uhid dm_mod uinput userio ppp_generic slhc tun loop cuse fuse efivarfs crct10dif_ce polyval_ce polyval_generic ghash_ce sha3_ce sha3_generic sha512_ce sha512_arm64 sha2_ce sha256_arm64 sha1_ce virtio_blk virtio_net net_failover failover qemu_fw_cfg virtio_mmio btrfs blake2b_generic xor xor_neon raid6_pq libcrc32c aes_neon_bs aes_neon_blk aes_ce_blk aes_ce_cipher
[ 588.010435] CPU: 1 PID: 4369 Comm: modprobe Tainted: G O 6.1.4_1 #1
[ 588.011083] Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015
[ 588.011667] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 588.012250] pc : mod_sysfs_setup+0x1ac/0x2a0
[ 588.012767] lr : mod_sysfs_setup+0x17c/0x2a0
[ 588.013080] sp : ffff80000ceb3ae0
[ 588.013324] x29: ffff80000ceb3ae0 x28: ffff80000ceb3c90 x27: ffff80000a322dc0
[ 588.013897] x26: ffff80007cdfee70 x25: ffff80000ceb3c90 x24: ffff80007cdf8d30
[ 588.014418] x23: ffff80007cdfc360 x22: ffff80007cdfeb58 x21: ffff80007cdfeb90
[ 588.014936] x20: 0000000000000000 x19: ffff80007cdfeb40 x18: 0000000000000000
[ 588.015453] x17: ffff00000635fdf0 x16: ffff00000635fdb0 x15: ffff00000635fd70
[ 588.015969] x14: ffff00000635fd30 x13: 00646e69625f6461 x12: 657268745f716b73
[ 588.016484] x11: ffff00000635ff70 x10: ffff00000635ff30 x9 : ffff800008e61dc0
[ 588.017020] x8 : 0101010101010101 x7 : 7f7f7f7f7f7f7f7f x6 : 736877645e727872
[ 588.017576] x5 : ffff00000fa79d19 x4 : ffff00000fa79500 x3 : 0000000000000000
[ 588.018141] x2 : ffff80007cdfeb58 x1 : ffff80007cdfeb90 x0 : 97fff71697ffe4ee
[ 588.018663] Call trace:
[ 588.018861] mod_sysfs_setup+0x1ac/0x2a0
[ 588.019191] load_module+0x960/0xae0
[ 588.019519] __do_sys_finit_module+0xac/0x130
[ 588.019892] __arm64_sys_finit_module+0x28/0x34
[ 588.020270] invoke_syscall+0x78/0x100
[ 588.020581] el0_svc_common.constprop.0+0x58/0x190
[ 588.020939] do_el0_svc+0x34/0x44
[ 588.021185] el0_svc+0x34/0x140
[ 588.021468] el0t_64_sync_handler+0xf4/0x120
[ 588.021835] el0t_64_sync+0x19c/0x1a0
[ 588.022079] Code: 540004a0 f9401700 aa1603e2 aa1503e1 (f9406400)
[ 588.022475] ---[ end trace 0000000000000000 ]---
Segmentation fault
```
### Steps to reproduce
1. xbps-install zfs
2. modprobe zfs
Additional info
```
$ uname -a
Linux void-live 6.1.4_1 #1 SMP PREEMPT_DYNAMIC Wed Jan 11 00:28:48 UTC 2023 aarch64 GNU/Linux
$ file /lib/modules/6.1.4_1/extra/zfs/zfs/zfs.ko
/lib/modules/6.1.4_1/extra/zfs/zfs/zfs.ko: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), BuildID[sha1]=6831b16ecce2e5dd58eed90adf7d790e6e5c5765, not stripped
```
It was no problem when I was using `linux-lts-5.10`.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Segmentation fault by insert zfs module
2023-01-13 9:06 [ISSUE] Segmentation fault by insert zfs module ckyoog
@ 2023-02-10 5:18 ` BikyAlex
0 siblings, 0 replies; 2+ messages in thread
From: BikyAlex @ 2023-02-10 5:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
New comment by BikyAlex on void-packages repository
https://github.com/void-linux/void-packages/issues/41613#issuecomment-1425187443
Comment:
I might start looking into this, no promise though. I might just use 5.10 with zfs anyway. I was having issues with building zfs-dkms on aarch64 in the first place, until I found some tools on github that were required to build it, but it was getting segfault on modprobe on my system with 5.15, 5.16, 5.18, 5.19 and 6.0.
I don't think I tried 5.10, it's worth a short if I can get the odroid hc4 to work. If not, I might just use the armbian kernel, build it on that, and then booting void using armbian's kernel (I did this before to get void bootstrapped, but I never got zfs-dkms on armbian to work either, also because of the missing aarch64-tools script).
I might be able to strace what the module is doing when `modprobe`'d, but I'm not sure if I can actually fix it, I'm only a shell script kiddie.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-10 5:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 9:06 [ISSUE] Segmentation fault by insert zfs module ckyoog
2023-02-10 5:18 ` BikyAlex
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).