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

[patch v1]: fix compilation error on kernel > 6 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legale
Copy link

@legale legale commented Aug 25, 2024

make it work for kernel 6

tested on kernel 6.1.0-22

@aabdellah
Copy link

@legale do you have any idea what's needed to get it working on 6.6.x?

@legale
Copy link
Author

legale commented Sep 7, 2024 via email

@aabdellah
Copy link

There are some conflicts with crypto functions:

DKMS make.log for notwireguard-1.0.20220627 for kernel 6.6.20+rpt-rpi-2712 (aarch64) Tue 12 Mar 13:14:57 EET 2024 make: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712' CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/main.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/device.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/peer.o In file included from /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/algapi.h:10, from /var/lib/dkms/notwireguard/1.0.20220627/build/noise.c:18: /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/utils.h:68:19: error: redefinition of ‘crypto_memneq’ 68 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ In file included from <command-line>: /var/lib/dkms/notwireguard/1.0.20220627/build/compat/memneq/include.h:2:19: note: previous definition of ‘crypto_memneq’ with type ‘int(const void *, const void *, size_t)’ {aka ‘int(const void *, const void *, long unsigned int)’} 2 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/lib/dkms/notwireguard/1.0.20220627/build/device.c: In function ‘wg_xmit’: /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘skb_gso_reset’? [-Werror=implicit-function-declaration] 170 | struct sk_buff *segs = skb_gso_segment(skb, 0); | ^~~~~~~~~~~~~~~ | skb_gso_reset /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: warning: initialization of ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/device.o] Error 1 /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c: In function ‘wg_timers_data_sent’: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c:150:25: error: implicit declaration of function ‘prandom_u32_max’; did you mean ‘prandom_u32_state’? [-Werror=implicit-function-declaration] 150 | prandom_u32_max(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); | ^~~~~~~~~~~~~~~ | prandom_u32_state cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:1938: /var/lib/dkms/notwireguard/1.0.20220627/build] Error 2 make: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712'

@legale
Copy link
Author

legale commented Sep 7, 2024 via email

@legale
Copy link
Author

legale commented Sep 7, 2024

There are some conflicts with crypto functions:

DKMS make.log for notwireguard-1.0.20220627 for kernel 6.6.20+rpt-rpi-2712 (aarch64) Tue 12 Mar 13:14:57 EET 2024 make: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712' CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/main.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/device.o CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/peer.o In file included from /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/algapi.h:10, from /var/lib/dkms/notwireguard/1.0.20220627/build/noise.c:18: /usr/src/linux-headers-6.6.20+rpt-common-rpi/include/crypto/utils.h:68:19: error: redefinition of ‘crypto_memneq’ 68 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ In file included from <command-line>: /var/lib/dkms/notwireguard/1.0.20220627/build/compat/memneq/include.h:2:19: note: previous definition of ‘crypto_memneq’ with type ‘int(const void *, const void *, size_t)’ {aka ‘int(const void *, const void *, long unsigned int)’} 2 | static inline int crypto_memneq(const void *a, const void *b, size_t size) | ^~~~~~~~~~~~~ CC [M] /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/noise.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/lib/dkms/notwireguard/1.0.20220627/build/device.c: In function ‘wg_xmit’: /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘skb_gso_reset’? [-Werror=implicit-function-declaration] 170 | struct sk_buff *segs = skb_gso_segment(skb, 0); | ^~~~~~~~~~~~~~~ | skb_gso_reset /var/lib/dkms/notwireguard/1.0.20220627/build/device.c:170:40: warning: initialization of ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/device.o] Error 1 /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c: In function ‘wg_timers_data_sent’: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.c:150:25: error: implicit declaration of function ‘prandom_u32_max’; did you mean ‘prandom_u32_state’? [-Werror=implicit-function-declaration] 150 | prandom_u32_max(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); | ^~~~~~~~~~~~~~~ | prandom_u32_state cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/notwireguard/1.0.20220627/build/timers.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:1938: /var/lib/dkms/notwireguard/1.0.20220627/build] Error 2 make: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-2712'

I think this "problem" came with 6.4 kernel.

Need to rename crypto_memneq to avoid name conflict on kernel > 6.3

Take a look here: https://github.com/torvalds/linux/blob/6995e2de6891c724bfeb2db33d7b87775f913ad1/include/crypto/utils.h#L56

@aabdellah
Copy link

Well, I commented it out and made it use the kernel one, then fixed some other issues and it compiled without issue. here's the patch:
linux-6.6-fixes.patch

Now there's a NULL pointer dereference issue on starting nwg-quick:

Sep 07 16:26:21 raspberrypi systemd[1]: Starting [email protected] - NotWireGuard via nwg-quick(8) for nwg0...
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip link add nwg0 type notwireguard
Sep 07 16:26:21 raspberrypi kernel: notwireguard: WireGuard 1.0.20220627 loaded. See www.wireguard.com for information.
Sep 07 16:26:21 raspberrypi kernel: notwireguard: Copyright (C) 2015-2019 Jason A. Donenfeld [email protected]. All Rights Reserved.
Sep 07 16:26:21 raspberrypi kernel: notwireguard: Protocol notwireguard. Fork URL: https://github.com/el3xyz/wireguard-linux-compat
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] nwg setconf nwg0 /dev/fd/63
Sep 07 16:26:21 raspberrypi NetworkManager[588]: [1725726381.5395] manager: (nwg0): new Generic device (/org/freedesktop/NetworkManager/Devices/5)
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip -4 address add 10.1.0.4 dev nwg0
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip link set mtu 1420 up dev nwg0
Sep 07 16:26:21 raspberrypi systemd-networkd[533]: nwg0: Link UP
Sep 07 16:26:21 raspberrypi systemd-networkd[533]: nwg0: Gained carrier
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] nwg set nwg0 fwmark 51820
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip -4 route add 0.0.0.0/0 dev nwg0 table 51820
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip -4 rule add not fwmark 51820 table 51820
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] ip -4 rule add table main suppress_prefixlength 0
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
Sep 07 16:26:21 raspberrypi nwg-quick[3200]: [#] nft -f /dev/fd/63
Sep 07 16:26:21 raspberrypi kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000002
Sep 07 16:26:21 raspberrypi kernel: Mem abort info:
Sep 07 16:26:21 raspberrypi kernel: ESR = 0x0000000096000005
Sep 07 16:26:21 raspberrypi kernel: EC = 0x25: DABT (current EL), IL = 32 bits
Sep 07 16:26:21 raspberrypi kernel: SET = 0, FnV = 0
Sep 07 16:26:21 raspberrypi kernel: EA = 0, S1PTW = 0
Sep 07 16:26:21 raspberrypi kernel: FSC = 0x05: level 1 translation fault
Sep 07 16:26:21 raspberrypi kernel: Data abort info:
Sep 07 16:26:21 raspberrypi kernel: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
Sep 07 16:26:21 raspberrypi kernel: CM = 0, WnR = 0, TnD = 0, TagAccess = 0
Sep 07 16:26:21 raspberrypi kernel: GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
Sep 07 16:26:21 raspberrypi kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=000000005b952000
Sep 07 16:26:21 raspberrypi kernel: [0000000000000002] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
Sep 07 16:26:21 raspberrypi kernel: Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Sep 07 16:26:21 raspberrypi kernel: Modules linked in: notwireguard ip6_udp_tunnel udp_tunnel libcurve25519_generic cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc nft_chain_nat xt_MASQUERADE brcmfmac nf_nat hci_uart btbcm brcmutil bluetooth xt_conntrack cfg80211 nf_conntrack nf_defrag_ipv6 vc4 nf_defrag_ipv4 nft_compat nf_tables binfmt_misc nfnetlink bcm2835_isp(C) bcm2835_v4l2(C) bcm2835_codec(C) snd_soc_hdmi_codec rpivid_hevc(C) drm_display_helper v4l2_mem2mem bcm2835_mmal_vchiq(C) cec videobuf2_vmalloc videobuf2_dma_contig drm_dma_helper videobuf2_memops drm_kms_helper ecdh_generic videobuf2_v4l2 raspberrypi_hwmon ecc snd_soc_core videodev rfkill snd_bcm2835(C) snd_compress snd_pcm_dmaengine libaes videobuf2_common vc_sm_cma(C) snd_pcm snd_timer snd mc v3d raspberrypi_gpiomem gpu_sched drm_shmem_helper nvmem_rmem uio_pdrv_genirq uio drm fuse dm_mod drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 i2c_brcmstb
Sep 07 16:26:21 raspberrypi kernel: CPU: 0 PID: 3088 Comm: kworker/0:3 Tainted: G C 6.6.47+rpt-rpi-v8 #1 Debian 1:6.6.47-1+rpt1
Sep 07 16:26:21 raspberrypi kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
Sep 07 16:26:21 raspberrypi kernel: Workqueue: wg-crypt-nwg0 wg_packet_encrypt_worker [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Sep 07 16:26:21 raspberrypi kernel: pc : zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: lr : zinc_chacha20poly1305_encrypt_sg_inplace+0x39c/0x3e0 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: sp : ffffffc083613700
Sep 07 16:26:21 raspberrypi kernel: x29: ffffffc083613700 x28: 0000000000000000 x27: ffffff805ba33d80
Sep 07 16:26:21 raspberrypi kernel: x26: 0000000000000010 x25: ffffffe85f646000 x24: 0000000000000000
Sep 07 16:26:21 raspberrypi kernel: x23: 0000000000000000 x22: 0000000000000002 x21: ffffffc083613830
Sep 07 16:26:21 raspberrypi kernel: x20: ffffffc0836138b0 x19: 0000000000000000 x18: 00000000f5fc0581
Sep 07 16:26:21 raspberrypi kernel: x17: 1e0da3c708d0e196 x16: ffffffe8a46a7d60 x15: a1abff15b8231046
Sep 07 16:26:21 raspberrypi kernel: x14: 00000001a62c92dd x13: a62c92ddee410582 x12: 00000000af3168cf
Sep 07 16:26:21 raspberrypi kernel: x11: 00000000000000af x10: 00000000000000af x9 : ffffffe85f6353ec
Sep 07 16:26:21 raspberrypi kernel: x8 : ffffffc083613830 x7 : 0000000000000000 x6 : 00000000fa9dd228
Sep 07 16:26:21 raspberrypi kernel: x5 : fa9dd2283fb2df12 x4 : 0000000000000008 x3 : 0000000000000002
Sep 07 16:26:21 raspberrypi kernel: x2 : 0000000000000010 x1 : ffffffc083613830 x0 : 0000000000000001
Sep 07 16:26:21 raspberrypi kernel: Call trace:
Sep 07 16:26:21 raspberrypi kernel: zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: zinc_chacha20poly1305_encrypt_sg_inplace+0x39c/0x3e0 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: encrypt_packet+0x1a4/0x250 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: wg_packet_encrypt_worker+0xbc/0x2c0 [notwireguard]
Sep 07 16:26:21 raspberrypi kernel: process_one_work+0x148/0x3b8
Sep 07 16:26:21 raspberrypi kernel: worker_thread+0x32c/0x450
Sep 07 16:26:21 raspberrypi kernel: kthread+0x11c/0x128
Sep 07 16:26:21 raspberrypi kernel: ret_from_fork+0x10/0x20
Sep 07 16:26:21 raspberrypi kernel: Code: 52800023 d2800202 94000111 17ffffc0 (b94002c0)
Sep 07 16:26:21 raspberrypi kernel: ---[ end trace 0000000000000000 ]---
Sep 07 16:26:21 raspberrypi systemd[1]: Finished [email protected] - NotWireGuard via nwg-quick(8) for nwg0.
Sep 07 16:26:21 raspberrypi sudo[3196]: pam_unix(sudo:session): session closed for user root
Sep 07 16:26:22 raspberrypi kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000002
Sep 07 16:26:22 raspberrypi kernel: Mem abort info:
Sep 07 16:26:22 raspberrypi kernel: ESR = 0x0000000096000006
Sep 07 16:26:23 raspberrypi kernel: EC = 0x25: DABT (current EL), IL = 32 bits
Sep 07 16:26:23 raspberrypi kernel: SET = 0, FnV = 0
Sep 07 16:26:23 raspberrypi kernel: EA = 0, S1PTW = 0
Sep 07 16:26:23 raspberrypi kernel: FSC = 0x06: level 2 translation fault
Sep 07 16:26:23 raspberrypi kernel: Data abort info:
Sep 07 16:26:23 raspberrypi kernel: ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
Sep 07 16:26:23 raspberrypi kernel: CM = 0, WnR = 0, TnD = 0, TagAccess = 0
Sep 07 16:26:23 raspberrypi kernel: GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
Sep 07 16:26:23 raspberrypi kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=0000000042498000
Sep 07 16:26:23 raspberrypi kernel: [0000000000000002] pgd=0800000042478003, p4d=0800000042478003, pud=0800000042478003, pmd=0000000000000000
Sep 07 16:26:24 raspberrypi kernel: Internal error: Oops: 0000000096000006 [#2] PREEMPT SMP
Sep 07 16:26:24 raspberrypi kernel: Modules linked in: nft_ct nft_fib_ipv4 nft_fib notwireguard ip6_udp_tunnel udp_tunnel libcurve25519_generic cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc nft_chain_nat xt_MASQUERADE brcmfmac nf_nat hci_uart btbcm brcmutil bluetooth xt_conntrack cfg80211 nf_conntrack nf_defrag_ipv6 vc4 nf_defrag_ipv4 nft_compat nf_tables binfmt_misc nfnetlink bcm2835_isp(C) bcm2835_v4l2(C) bcm2835_codec(C) snd_soc_hdmi_codec rpivid_hevc(C) drm_display_helper v4l2_mem2mem bcm2835_mmal_vchiq(C) cec videobuf2_vmalloc videobuf2_dma_contig drm_dma_helper videobuf2_memops drm_kms_helper ecdh_generic videobuf2_v4l2 raspberrypi_hwmon ecc snd_soc_core videodev rfkill snd_bcm2835(C) snd_compress snd_pcm_dmaengine libaes videobuf2_common vc_sm_cma(C) snd_pcm snd_timer snd mc v3d raspberrypi_gpiomem gpu_sched drm_shmem_helper nvmem_rmem uio_pdrv_genirq uio drm fuse dm_mod drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 i2c_brcmstb
Sep 07 16:26:24 raspberrypi kernel: CPU: 1 PID: 59 Comm: kworker/1:1 Tainted: G D C 6.6.47+rpt-rpi-v8 #1 Debian 1:6.6.47-1+rpt1
Sep 07 16:26:24 raspberrypi kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
Sep 07 16:26:24 raspberrypi kernel: Workqueue: wg-crypt-nwg0 wg_packet_encrypt_worker [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Sep 07 16:26:24 raspberrypi kernel: pc : zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: lr : zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: sp : ffffffc080abb700
Sep 07 16:26:24 raspberrypi kernel: x29: ffffffc080abb700 x28: ffffff804025a150 x27: ffffff8040869ec0
Sep 07 16:26:24 raspberrypi kernel: x26: 0000000000000040 x25: 0000000000000000 x24: 0000000000000000
Sep 07 16:26:24 raspberrypi kernel: x23: 0000000000000000 x22: 0000000000000002 x21: ffffff804025a110
Sep 07 16:26:24 raspberrypi kernel: x20: ffffffc080abb8b0 x19: 0000000000000000 x18: 0000000000000000
Sep 07 16:26:24 raspberrypi kernel: x17: c8732aa589949d04 x16: 00006c61636f6c05 x15: 96bef01c5a30f533
Sep 07 16:26:24 raspberrypi kernel: x14: 0000000000000100 x13: 072f0e28ed1cdca5 x12: 0001ba53e4291f00
Sep 07 16:26:24 raspberrypi kernel: x11: 389b94358d2703a7 x10: 35008f8d04040808 x9 : ffffffe85f635238
Sep 07 16:26:24 raspberrypi kernel: x8 : 0400010a562e1140 x7 : cb3cb87efa8eae11 x6 : 004053f633000045
Sep 07 16:26:24 raspberrypi kernel: x5 : f61bb59caeac915b x4 : 0000000000000000 x3 : 0000000000000002
Sep 07 16:26:24 raspberrypi kernel: x2 : 0000000000000040 x1 : ffffff804025a110 x0 : 0000000000000001
Sep 07 16:26:24 raspberrypi kernel: Call trace:
Sep 07 16:26:24 raspberrypi kernel: zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: encrypt_packet+0x1a4/0x250 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: wg_packet_encrypt_worker+0xbc/0x2c0 [notwireguard]
Sep 07 16:26:24 raspberrypi kernel: process_one_work+0x148/0x3b8
Sep 07 16:26:24 raspberrypi kernel: worker_thread+0x32c/0x450
Sep 07 16:26:24 raspberrypi kernel: kthread+0x11c/0x128
Sep 07 16:26:24 raspberrypi kernel: ret_from_fork+0x10/0x20
Sep 07 16:26:24 raspberrypi kernel: Code: 52800023 d2800202 94000111 17ffffc0 (b94002c0)
Sep 07 16:26:24 raspberrypi kernel: ---[ end trace 0000000000000000 ]---
Sep 07 16:26:24 raspberrypi kernel: note: kworker/1:1[59] exited with preempt_count 1
Sep 07 16:26:24 raspberrypi kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000002
Sep 07 16:26:24 raspberrypi kernel: Mem abort info:
Sep 07 16:26:24 raspberrypi kernel: ESR = 0x0000000096000006
Sep 07 16:26:24 raspberrypi kernel: EC = 0x25: DABT (current EL), IL = 32 bits
Sep 07 16:26:24 raspberrypi kernel: SET = 0, FnV = 0
Sep 07 16:26:24 raspberrypi kernel: EA = 0, S1PTW = 0
Sep 07 16:26:24 raspberrypi kernel: FSC = 0x06: level 2 translation fault
Sep 07 16:26:24 raspberrypi kernel: Data abort info:
Sep 07 16:26:24 raspberrypi kernel: ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
Sep 07 16:26:24 raspberrypi kernel: CM = 0, WnR = 0, TnD = 0, TagAccess = 0
Sep 07 16:26:24 raspberrypi kernel: GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
Sep 07 16:26:24 raspberrypi kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=0000000042498000
Sep 07 16:26:24 raspberrypi kernel: [0000000000000002] pgd=0800000042478003, p4d=0800000042478003, pud=0800000042478003, pmd=0000000000000000
Sep 07 16:26:24 raspberrypi kernel: Internal error: Oops: 0000000096000006 [#3] PREEMPT SMP
Sep 07 16:26:24 raspberrypi kernel: Modules linked in: nft_ct nft_fib_ipv4 nft_fib notwireguard ip6_udp_tunnel udp_tunnel libcurve25519_generic cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc nft_chain_nat xt_MASQUERADE brcmfmac nf_nat hci_uart btbcm brcmutil bluetooth xt_conntrack cfg80211 nf_conntrack nf_defrag_ipv6 vc4 nf_defrag_ipv4 nft_compat nf_tables binfmt_misc nfnetlink bcm2835_isp(C) bcm2835_v4l2(C) bcm2835_codec(C) snd_soc_hdmi_codec rpivid_hevc(C) drm_display_helper v4l2_mem2mem bcm2835_mmal_vchiq(C) cec videobuf2_vmalloc videobuf2_dma_contig drm_dma_helper videobuf2_memops drm_kms_helper ecdh_generic videobuf2_v4l2 raspberrypi_hwmon ecc snd_soc_core videodev rfkill snd_bcm2835(C) snd_compress snd_pcm_dmaengine libaes videobuf2_common vc_sm_cma(C) snd_pcm snd_timer snd mc v3d raspberrypi_gpiomem gpu_sched drm_shmem_helper nvmem_rmem uio_pdrv_genirq uio drm fuse dm_mod drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 i2c_brcmstb
Sep 07 16:26:26 raspberrypi kernel: CPU: 2 PID: 28 Comm: kworker/2:0 Tainted: G D C 6.6.47+rpt-rpi-v8 #1 Debian 1:6.6.47-1+rpt1
Sep 07 16:26:26 raspberrypi kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
Sep 07 16:26:26 raspberrypi kernel: Workqueue: wg-crypt-nwg0 wg_packet_encrypt_worker [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Sep 07 16:26:26 raspberrypi kernel: pc : zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: lr : zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: sp : ffffffc08011b700
Sep 07 16:26:26 raspberrypi kernel: x29: ffffffc08011b700 x28: ffffff80438558c0 x27: ffffff8040353d80
Sep 07 16:26:26 raspberrypi kernel: x26: 0000000000000030 x25: 0000000000000000 x24: 0000000000000000
Sep 07 16:26:26 raspberrypi kernel: x23: 0000000000000000 x22: 0000000000000002 x21: ffffff8043855890
Sep 07 16:26:26 raspberrypi kernel: x20: ffffffc08011b8b0 x19: 0000000000000000 x18: 0000000000000000
Sep 07 16:26:26 raspberrypi kernel: x17: a2bce97c8be16b57 x16: 0000000085974fc8 x15: 85974fc891997b01
Sep 07 16:26:26 raspberrypi kernel: x14: 00000001ab6e7e2b x13: ab6e7e2b3e99726e x12: 00000000baca8721
Sep 07 16:26:26 raspberrypi kernel: x11: 0000000000000085 x10: 0000000000000085 x9 : ffffffe85f635238
Sep 07 16:26:26 raspberrypi kernel: x8 : 0000000081cc7351 x7 : 81cc73513be4967a x6 : 000000010bff03fe
Sep 07 16:26:26 raspberrypi kernel: x5 : 0bff03fe4534d4cc x4 : ffffffc08011b680 x3 : 0000000000000002
Sep 07 16:26:26 raspberrypi kernel: x2 : 0000000000000030 x1 : ffffff8043855890 x0 : 0000000000000001
Sep 07 16:26:26 raspberrypi kernel: Call trace:
Sep 07 16:26:26 raspberrypi kernel: zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: encrypt_packet+0x1a4/0x250 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: wg_packet_encrypt_worker+0xbc/0x2c0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: process_one_work+0x148/0x3b8
Sep 07 16:26:26 raspberrypi kernel: worker_thread+0x32c/0x450
Sep 07 16:26:26 raspberrypi kernel: kthread+0x11c/0x128
Sep 07 16:26:26 raspberrypi kernel: ret_from_fork+0x10/0x20
Sep 07 16:26:26 raspberrypi kernel: Code: 52800023 d2800202 94000111 17ffffc0 (b94002c0)
Sep 07 16:26:26 raspberrypi kernel: ---[ end trace 0000000000000000 ]---
Sep 07 16:26:26 raspberrypi kernel: note: kworker/2:0[28] exited with preempt_count 1
Sep 07 16:26:26 raspberrypi kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000002
Sep 07 16:26:26 raspberrypi kernel: Mem abort info:
Sep 07 16:26:26 raspberrypi kernel: ESR = 0x0000000096000006
Sep 07 16:26:26 raspberrypi kernel: EC = 0x25: DABT (current EL), IL = 32 bits
Sep 07 16:26:26 raspberrypi kernel: SET = 0, FnV = 0
Sep 07 16:26:26 raspberrypi kernel: EA = 0, S1PTW = 0
Sep 07 16:26:26 raspberrypi kernel: FSC = 0x06: level 2 translation fault
Sep 07 16:26:26 raspberrypi kernel: Data abort info:
Sep 07 16:26:26 raspberrypi kernel: ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
Sep 07 16:26:26 raspberrypi kernel: CM = 0, WnR = 0, TnD = 0, TagAccess = 0
Sep 07 16:26:26 raspberrypi kernel: GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
Sep 07 16:26:26 raspberrypi kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=0000000042498000
Sep 07 16:26:26 raspberrypi kernel: [0000000000000002] pgd=0800000042478003, p4d=0800000042478003, pud=0800000042478003, pmd=0000000000000000
Sep 07 16:26:26 raspberrypi kernel: Internal error: Oops: 0000000096000006 [#4] PREEMPT SMP
Sep 07 16:26:26 raspberrypi kernel: Modules linked in: nft_ct nft_fib_ipv4 nft_fib notwireguard ip6_udp_tunnel udp_tunnel libcurve25519_generic cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc nft_chain_nat xt_MASQUERADE brcmfmac nf_nat hci_uart btbcm brcmutil bluetooth xt_conntrack cfg80211 nf_conntrack nf_defrag_ipv6 vc4 nf_defrag_ipv4 nft_compat nf_tables binfmt_misc nfnetlink bcm2835_isp(C) bcm2835_v4l2(C) bcm2835_codec(C) snd_soc_hdmi_codec rpivid_hevc(C) drm_display_helper v4l2_mem2mem bcm2835_mmal_vchiq(C) cec videobuf2_vmalloc videobuf2_dma_contig drm_dma_helper videobuf2_memops drm_kms_helper ecdh_generic videobuf2_v4l2 raspberrypi_hwmon ecc snd_soc_core videodev rfkill snd_bcm2835(C) snd_compress snd_pcm_dmaengine libaes videobuf2_common vc_sm_cma(C) snd_pcm snd_timer snd mc v3d raspberrypi_gpiomem gpu_sched drm_shmem_helper nvmem_rmem uio_pdrv_genirq uio drm fuse dm_mod drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 i2c_brcmstb
Sep 07 16:26:26 raspberrypi kernel: CPU: 3 PID: 88 Comm: kworker/3:2 Tainted: G D C 6.6.47+rpt-rpi-v8 #1 Debian 1:6.6.47-1+rpt1
Sep 07 16:26:26 raspberrypi kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
Sep 07 16:26:26 raspberrypi kernel: Workqueue: wg-crypt-nwg0 wg_packet_encrypt_worker [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Sep 07 16:26:26 raspberrypi kernel: pc : zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: lr : zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: sp : ffffffc080ce3700
Sep 07 16:26:26 raspberrypi kernel: x29: ffffffc080ce3700 x28: ffffff80438550c0 x27: ffffff8041161ec0
Sep 07 16:26:26 raspberrypi kernel: x26: 0000000000000030 x25: 0000000000000000 x24: 0000000000000000
Sep 07 16:26:26 raspberrypi kernel: x23: 0000000000000000 x22: 0000000000000002 x21: ffffff8043855090
Sep 07 16:26:26 raspberrypi kernel: x20: ffffffc080ce38b0 x19: 0000000000000000 x18: 0000000000000000
Sep 07 16:26:26 raspberrypi kernel: x17: e413bdf413a10b24 x16: 0000000114d7bc89 x15: 14d7bc891aab0e43
Sep 07 16:26:26 raspberrypi kernel: x14: 000000015b60f67c x13: 5b60f67c6b621958 x12: 000000013e6cacef
Sep 07 16:26:26 raspberrypi kernel: x11: 0000000000000014 x10: 0000000000000014 x9 : ffffffe85f635238
Sep 07 16:26:26 raspberrypi kernel: x8 : 000000007cfaf7de x7 : 7cfaf7de2d662693 x6 : 000000012d973e90
Sep 07 16:26:26 raspberrypi kernel: x5 : 2d973e901f266644 x4 : ffffffc080ce3680 x3 : 0000000000000002
Sep 07 16:26:26 raspberrypi kernel: x2 : 0000000000000030 x1 : ffffff8043855090 x0 : 0000000000000001
Sep 07 16:26:26 raspberrypi kernel: Call trace:
Sep 07 16:26:26 raspberrypi kernel: zinc_poly1305_update+0x194/0x238 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: zinc_chacha20poly1305_encrypt_sg_inplace+0x1e8/0x3e0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: encrypt_packet+0x1a4/0x250 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: wg_packet_encrypt_worker+0xbc/0x2c0 [notwireguard]
Sep 07 16:26:26 raspberrypi kernel: process_one_work+0x148/0x3b8
Sep 07 16:26:26 raspberrypi kernel: worker_thread+0x32c/0x450
Sep 07 16:26:26 raspberrypi kernel: kthread+0x11c/0x128
Sep 07 16:26:26 raspberrypi kernel: ret_from_fork+0x10/0x20
Sep 07 16:26:26 raspberrypi kernel: Code: 52800023 d2800202 94000111 17ffffc0 (b94002c0)
Sep 07 16:26:26 raspberrypi kernel: ---[ end trace 0000000000000000 ]---
Sep 07 16:26:26 raspberrypi kernel: note: kworker/3:2[88] exited with preempt_count 1

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.

2 participants