loop0: detected capacity change from 0 to 1024 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. input: Macintosh mouse button emulation as /devices/virtual/input/input5 Oops: general protection fault, probably for non-canonical address 0xdffffc00000000a4: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000520-0x0000000000000527] CPU: 0 UID: 0 PID: 4940 Comm: sh Not tainted 6.12.0 #1 Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:input_unregister_device+0x26/0x100 drivers/input/input.c:2500 Code: 90 90 90 90 f3 0f 1e fa 55 48 89 fd 53 e8 c2 76 15 fe 48 8d bd 20 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e ac 00 00 00 0f b6 9d 20 05 00 00 31 RSP: 0018:ffff88800e7dfc28 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffffffff86d50240 RCX: ffffffff8433de7e RDX: 00000000000000a4 RSI: ffffffff833478fe RDI: 0000000000000520 RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1001cfbf7d R10: ffff88800e7dfbef R11: 1ffff1100da47329 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000001 R15: ffff88800e7dfe08 FS: 00007f3a61e11580(0000) GS:ffff88806d200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005587dedd26c8 CR3: 000000000a1ca000 CR4: 0000000000350ef0 Call Trace: mac_hid_destroy_emumouse drivers/macintosh/mac_hid.c:68 [inline] mac_hid_stop_emulation drivers/macintosh/mac_hid.c:183 [inline] mac_hid_toggle_emumouse+0x1d7/0x490 drivers/macintosh/mac_hid.c:203 proc_sys_call_handler+0x534/0x680 fs/proc/proc_sysctl.c:595 new_sync_write fs/read_write.c:590 [inline] vfs_write+0xa6b/0xd80 fs/read_write.c:683 ksys_write+0x125/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa6/0x1a0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3a61d274b3 Code: 8b 15 e1 29 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007fff3b13b4d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00005587dedd06c0 RCX: 00007f3a61d274b3 RDX: 0000000000000002 RSI: 00005587dedd06c0 RDI: 0000000000000001 RBP: 0000000000000002 R08: 00005587dedd06c0 R09: 00007f3a61e0abe0 R10: 0000000000000070 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000002 R14: 7fffffffffffffff R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:input_unregister_device+0x26/0x100 drivers/input/input.c:2500 Code: 90 90 90 90 f3 0f 1e fa 55 48 89 fd 53 e8 c2 76 15 fe 48 8d bd 20 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e ac 00 00 00 0f b6 9d 20 05 00 00 31 RSP: 0018:ffff88800e7dfc28 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffffffff86d50240 RCX: ffffffff8433de7e RDX: 00000000000000a4 RSI: ffffffff833478fe RDI: 0000000000000520 RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1001cfbf7d R10: ffff88800e7dfbef R11: 1ffff1100da47329 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000001 R15: ffff88800e7dfe08 FS: 00007f3a61e11580(0000) GS:ffff88806d200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005587dedd26c8 CR3: 000000000a1ca000 CR4: 0000000000350ef0 EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop0: detected capacity change from 0 to 32768 loop0: p1 p3 < p5 > loop0: partition table partially beyond EOD, truncated blktrace: Concurrent blktraces are not allowed on sr0 loop0: detected capacity change from 0 to 1024 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: f3 0f 1e fa endbr64 8: 55 push %rbp 9: 48 89 fd mov %rdi,%rbp c: 53 push %rbx d: e8 c2 76 15 fe call 0xfe1576d4 12: 48 8d bd 20 05 00 00 lea 0x520(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 06 je 0x38 32: 0f 8e ac 00 00 00 jle 0xe4 38: 0f b6 9d 20 05 00 00 movzbl 0x520(%rbp),%ebx 3f: 31 .byte 0x31