Describe the bug
Moving the mouse wide while the maccel is loaded causes a kernel panic after some time. The system completely freezes and requires a hard reboot.
This sometimes happens while playing Counter-Strike 2, specifically on "Surf" maps where fast, sweeping mouse movements are required. Haven't seen that in regular game.
Environment
OS: Arch Linux x86_64 / Wayland (Niri)
Kernel: 7.0.3-zen1-2-zen (also experienced the exact same panic on 6.x liquorix kernels)
Hardware: Lenovo Laptop (83JG/LNVNB161216)
Mouse Polling Rate: 250 or 500Hz(not sure)
Installation method: makepkg from this repo
My maccel config

Steps to reproduce
- Install and load the
maccel module.
- Disable system mouse acceleration (set
libinput accel-profile to flat).
- Make wide mouse movement (e.g. playing a CS2 Surf map).
- The display is being filled with square green artifacts and crashes into a Kernel Panic.
Kernel Panic Log (The QR thing)
Click to expand
Panic Report
Arch: x86_64
Version: 7.0.3-zen1-2-zen
[ 1014.853561] Hardware name: LENOVO 83JG/LNVNB161216, BIOS R8CN23WW 06/20/2025
[ 1014.853563] RIP: 0010:maccel_events+0x61e/0x2a00 [maccel]
[ 1014.853568] Code: 39 f7 7f e7 45 85 d2 0f 85 53 15 00 00 48 83 f9 ff 0f 84 60 15 00 00 48 89 c8 48 c1 f9 20 48 8b 7c 24 20 48 c1 e0 20 48 89 ca <48> f7 ff 48 89 05 88 a8 9d 00 48 89 c6 41 80 fe 01 0f 84 8b 03 00
[ 1014.853570] RSP: 0018:ffffccadc057cc30 EFLAGS: 00010016
[ 1014.853573] RAX: 5fafadb500000000 RBX: ffff898d41361694 RCX: 0000000000000006
[ 1014.853574] RDX: 0000000000000006 RSI: 0000000000000013 RDI: 0000000000000000
[ 1014.853576] RBP: ffffccadc057ccd0 R08: a000000000000000 R09: 0000000000000028
[ 1014.853577] R10: 0000000000000000 R11: 0000000140000000 R12: ffff898d41361698
[ 1014.853578] R13: 0000000640000000 R14: 0000000000000002 R15: 0000000400000000
[ 1014.853580] FS: 0000000000000000(0000) GS:ffff89909eae8000(0000) knlGS:0000000000000000
[ 1014.853581] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1014.853583] CR2: 000025bc01f5d448 CR3: 00000002d7c24000 CR4: 0000000000f50ef0
[ 1014.853584] PKRU: 55555554
[ 1014.853586] Call Trace:
[ 1014.853589] <IRQ>
[ 1014.853593] ? add_input_randomness+0xb9/0x1e0
[ 1014.853600] ? srso_alias_return_thunk+0x5/0xfbef5
[ 1014.853606] input_pass_values+0x152/0x180
[ 1014.853611] input_event_dispose+0x184/0x190
[ 1014.853614] ? srso_alias_return_thunk+0x5/0xfbef5
[ 1014.853616] input_event+0xb5/0x160
[ 1014.853620] hidinput_report_event+0x37/0x50
[ 1014.853625] hid_report_raw_event+0xd2/0x6a0
[ 1014.853630] hid_input_report+0x17a/0x270
[ 1014.853634] hid_irq_in+0x1a3/0x1e0
[ 1014.853637] __usb_hcd_giveback_urb+0xa0/0x120
[ 1014.853642] usb_giveback_urb_bh+0xc0/0x140
[ 1014.853645] process_one_work+0x19c/0x3a0
[ 1014.853649] bh_worker+0x1f8/0x290
[ 1014.853651] ? srso_alias_return_thunk+0x5/0xfbef5
[ 1014.853653] ? sched_clock_cpu+0xf/0x200
[ 1014.853656] tasklet_hi_action+0x13/0x30
[ 1014.853660] handle_softirqs+0xe3/0x2b0
[ 1014.853662] ? srso_alias_return_thunk+0x5/0xfbef5
[ 1014.853664] ? srso_alias_return_thunk+0x5/0xfbef5
[ 1014.853667] irq_exit_rcu+0xd6/0x100
[ 1014.853669] common_interrupt+0x85/0xa0
[ 1014.853674] </IRQ>
[ 1014.853675] <TASK>
[ 1014.853677] asm_common_interrupt+0x26/0x40
[ 1014.853680] RIP: 0010:cpuidle_enter_state+0xc2/0x7f0
[ 1014.853683] Code: 00 00 e8 61 6a c0 fe e8 1c ef ff ff 49 89 c4 0f 1f 44 00 00 31 ff e8 8d 5b be fe 45 84 ff 0f 85 47 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 ad 02 00 00 44 89 f6 4c 89 e2 48 2b 14 24 48 6b ce
[ 1014.853685] RSP: 0018:ffffccadc0267e70 EFLAGS: 00000246
[ 1014.853687] RAX: ffff89909eae8000 RBX: 0000000000000003 RCX: 0000000000000000
[ 1014.853688] RDX: 000000ec49fbb4fd RSI: fffffffe2543327f RDI: 0000000000000000
[ 1014.853689] RBP: ffff898d41588400 R08: 0000000000000000 R09: 0000000000000001
[ 1014.853691] R10: 0000000000000401 R11: 00000000000000e1 R12: 000000ec49fbb4fd
[ 1014.853693] R13: ffffffffaf419840 R14: 0000000000000003 R15: 0000000000000000
[ 1014.853697] cpuidle_enter+0x31/0x50
[ 1014.853701] do_idle+0x14b/0x2a0
[ 1014.853705] cpu_startup_entry+0x29/0x30
[ 1014.853707] start_secondary+0x119/0x150
[ 1014.853711] common_startup_64+0x13e/0x141
[ 1014.853716] </TASK>
[ 1014.853717] Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq xt_conntrack xt_MASQUERADE xfrm_user xfrm_algo xt_set ip_set xt_addrtype nft_compat x_tables ccm cmac algif_hash algif_skcipher af_alg bnep nft_masq nft_ct nft_reject_ipv4 nf_reject_ipv4 nft_reject act_csum cls_u32 sch_htb nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc snd_hda_codec_alc269 snd_hda_codec_realtek_lib snd_hda_scodec_component snd_hda_codec_generic snd_hda_codec_atihdmi snd_hda_codec_nvhdmi snd_hda_codec_hdmi snd_sof_amd_acp70 snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_pci_ps snd_soc_acpi_amd_match snd_soc_acpi_amd_sdca_quirks snd_amd_sdw_acpi soundwire_amd soundwire_generic_allocation soundwire_bus snd_soc_sdca snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_rpl_pci_acp6x snd_acp_pci snd_amd_acpi_mach snd_acp_legacy_common snd_pci_acp6x snd_pci_acp5x snd_rn_pci_acp3x
[ 1014.853766] snd_acp_config snd_soc_acpi snd_pci_acp3x overlay btusb uvcvideo btmtk videobuf2_vmalloc btrtl uvc snd_usb_audio videobuf2_memops btbcm videobuf2_v4l2 btintel snd_usbmidi_lib videobuf2_common snd_ump snd_rawmidi videodev bluetooth snd_seq_device mc rtw89_8852be rtw89_8852b amd_atl rtw89_8852b_common intel_rapl_msr intel_rapl_common rtw89_pci rtw89_core joydev maccel(OE) mousedev snd_hda_intel mac80211 snd_hda_codec kvm_amd snd_hda_core ccp snd_intel_dspcfg r8169 snd_intel_sdw_acpi realtek snd_hwdep spd5118 hid_multitouch kvm snd_pcm cfg80211 ucsi_acpi mdio_devres lenovo_wmi_gamezone snd_timer sp5100_tco typec_ucsi lenovo_wmi_other snd irqbypass libphy ideapad_laptop i2c_piix4 nvidia_drm(OE) vfat roles lenovo_wmi_helpers ghash_clmulni_intel aesni_intel fat rapl firmware_attributes_class lenovo_wmi_events lenovo_wmi_capdata platform_profile wmi_bmof lenovo_wmi_hotkey_utilities typec sparse_keymap k10temp nvidia_wmi_ec_backlight amdxdna mdio_bus nvidia_modeset(OE) rfkill libarc4 i2c_smbus thunderbolt
[ 1014.853835] soundcore i2c_hid_acpi i2c_hid amd_pmc mac_hid nvidia_uvm(OE) nvidia(OE) uinput ntsync crypto_user nfnetlink amdgpu amdxcp i2c_algo_bit drm_ttm_helper ttm drm_exec drm_panel_backlight_quirks gpu_sched drm_suballoc_helper nvme nvme_core nvme_keyring nvme_auth drm_buddy hkdf drm_display_helper video cec wmi serio_raw hid_kysona
[ 1014.853861] ---[ end trace 0000000000000000 ]---
[ 1014.853864] RIP: 0010:maccel_events+0x61e/0x2a00 [maccel]
[ 1014.853868] Code: 39 f7 7f e7 45 85 d2 0f 85 53 15 00 00 48 83 f9 ff 0f 84 60 15 00 00 48 89 c8 48 c1 f9 20 48 8b 7c 24 20 48 c1 e0 20 48 89 ca <48> f7 ff 48 89 05 88 a8 9d 00 48 89 c6 41 80 fe 01 0f 84 8b 03 00
[ 1014.853871] RSP: 0018:ffffccadc057cc30 EFLAGS: 00010016
[ 1014.853873] RAX: 5fafadb500000000 RBX: ffff898d41361694 RCX: 0000000000000006
[ 1014.853875] RDX: 0000000000000006 RSI: 0000000000000013 RDI: 0000000000000000
[ 1014.853876] RBP: ffffccadc057ccd0 R08: a000000000000000 R09: 0000000000000028
[ 1014.853878] R10: 0000000000000000 R11: 0000000140000000 R12: ffff898d41361698
[ 1014.853880] R13: 0000000640000000 R14: 0000000000000002 R15: 0000000400000000
[ 1014.853882] FS: 0000000000000000(0000) GS:ffff89909eae8000(0000) knlGS:0000000000000000
[ 1014.853884] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1014.853886] CR2: 000025bc01f5d448 CR3: 00000002d7c24000 CR4: 0000000000f50ef0
[ 1014.853887] PKRU: 55555554
[ 1014.853889] Kernel panic - not syncing: Fatal exception in interrupt
[ 1014.854050] Kernel Offset: 0x2b600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Describe the bug
Moving the mouse wide while the
maccelis loaded causes a kernel panic after some time. The system completely freezes and requires a hard reboot.This sometimes happens while playing Counter-Strike 2, specifically on "Surf" maps where fast, sweeping mouse movements are required. Haven't seen that in regular game.
Environment
OS: Arch Linux x86_64 / Wayland (Niri)
Kernel: 7.0.3-zen1-2-zen (also experienced the exact same panic on 6.x liquorix kernels)
Hardware: Lenovo Laptop (83JG/LNVNB161216)
Mouse Polling Rate: 250 or 500Hz(not sure)
Installation method: makepkg from this repo
My maccel config

Steps to reproduce
maccelmodule.libinputaccel-profile toflat).Kernel Panic Log (The QR thing)
Click to expand