kernel tr[ 69.104229][ T5316] kernel tried to execute NX-protected page - exploit attempt? (uid: 0) ================================================================== BUG: KASAN: stack-out-of-bounds in insn_init arch/x86/lib/insn.c:70 [inline] BUG: KASAN: stack-out-of-bounds in insn_decode+0x51/0x4c0 arch/x86/lib/insn.c:758 Write of size 88 at addr ffffc90003fc7610 by task syz.2.3/5316 Oops: general protection fault, probably for non-canonical address 0xdfff0c60ffffff09: 0000 [#2] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5316 Comm: syz.2.3 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 CPU: 1 UID: 0 PID: 5316 Comm: syz.2.3 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: RIP: 1020:0xfffffffd Code: Unable to access opcode bytes at 0xffffffd3. __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 RSP: 1060:ffffffffffffffff EFLAGS: 8bb4c90100000000 ORIG_RAX: ffffc90003fc6630 RAX: 1ffff920007f8cb0 RBX: 0f21f29fdf63b900 RCX: ffffc90003fc67ee RDX: ffffc90003fc6874 RSI: 0000000045e0360e RDI: ffffffff8e063723 RBP: ffffc90083fc6873 R08: 0000000000000000 R09: ffffc90003fc67f4 R10: 0000000000000018 R11: ffffc90003fc6877 R12: ffffc90003fc6620 R13: dffffc0000000000 R14: ffff1060ffffff09 R15: ffffffff8bb47b6f FS: 0000555576129500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: ff09 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000082 CR3: 0000000000000082 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 BUG: unable to handle page fault for address: ffffc90083fc67eb #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 15800067 P4D 15800067 PUD 0 Oops: Oops: 0010 [#3] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5316 Comm: syz.2.3 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 kasan_report+0x143/0x180 mm/kasan/report.c:601 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 6430:0xffff1060ffffff09 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:00000000fffffff8 EFLAGS: ffffffff8bb4d3ce kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 ORIG_RAX: ffffc90003fc63a0 RAX: ffffffff8c0d4a0a RBX: ffffc90003fc63a0 RCX: 0000000000000000 __asan_memset+0x23/0x50 mm/kasan/shadow.c:84 RDX: ffffc90003fc67f8 RSI: ffffc90003fc63a0 RDI: ffffffff81fc4893 insn_init arch/x86/lib/insn.c:70 [inline] insn_decode+0x51/0x4c0 arch/x86/lib/insn.c:758 RBP: 01fffc0000000000 R08: 0000000000000018 R09: 1ffff1101720519a R10: dffffc0000000000 R11: ffffed101720519b R12: ffff1060ffffff09 R13: ffffc90003fc6430 R14: ffffffff8bb4d3ce R15: 00000000fffffff8 FS: 0000555576129500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 get_kernel_gp_address arch/x86/kernel/traps.c:558 [inline] __exc_general_protection arch/x86/kernel/traps.c:733 [inline] exc_general_protection+0x454/0x5d0 arch/x86/kernel/traps.c:693 CS: 6430 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000002ca64000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: RIP: 0010:clear_pending kernel/locking/qspinlock.c:151 [inline] RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x830/0xdb0 kernel/locking/qspinlock.c:508 Code: e9 6e ff ff ff 48 8d 8c 24 b0 00 00 00 80 e1 07 fe c1 38 c1 7c 97 48 8d bc 24 b0 00 00 00 e8 a7 03 37 f6 eb 88 48 8b 44 24 10 <42> 0f b6 04 28 84 c0 0f 85 d3 00 00 00 4c 8b 64 24 48 41 c6 04 24 RSP: 0018:ffffc90003fc77e0 EFLAGS: 00010056 RAX: ffffc90003fc7800 RBX: 1ffff920007f8f12 RCX: ffffc90003fc7801 RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff8880b903ea42 RBP: ffffc90003fc7918 R08: ffff8880b903ea43 R09: 1ffff11017207d48 R10: dffffc0000000000 R11: ffffed1017207d49 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880b903ea40 R15: ffffc90003fc78a0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5316 at kernel/rcu/tree_plugin.h:442 __rcu_read_unlock+0x94/0x110 kernel/rcu/tree_plugin.h:442 Modules linked in: CPU: 1 UID: 0 PID: 5316 Comm: syz.2.3 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:__rcu_read_unlock+0x94/0x110 kernel/rcu/tree_plugin.h:442 Code: 41 83 3f 00 75 29 42 0f b6 04 23 84 c0 75 62 41 8b 45 00 3d 00 00 00 40 73 0f 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 <0f> 0b 90 eb eb 4c 89 f7 e8 7f 00 00 00 eb cd 44 89 e9 80 e1 07 80 RSP: 0018:ffffc90003fc71a0 EFLAGS: 00010086 RAX: 00000000ffffffff RBX: 1ffff1100f819448 RCX: ffffffff81703b60 RDX: 0000000000000000 RSI: ffffffff8c609e00 RDI: ffffffff8c609dc0 RBP: 00000000ffffffff R08: ffffffff9018c76f R09: 1ffffffff20318ed R10: dffffc0000000000 R11: fffffbfff20318ee R12: dffffc0000000000 R13: ffff88807c0ca244 R14: ffff88807c0c9e00 R15: ffffffffffffffff FS: 0000555576129500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faac6feb550 CR3: 000000002ca64000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_unlock include/linux/rcupdate.h:882 [inline] is_bpf_text_address+0x285/0x2a0 kernel/bpf/core.c:769 kernel_text_address+0xa7/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x40 kernel/extable.c:79 show_trace_log_lvl+0x2ed/0x410 arch/x86/kernel/dumpstack.c:259 __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memset+0x23/0x50 mm/kasan/shadow.c:84 insn_init arch/x86/lib/insn.c:70 [inline] insn_decode+0x51/0x4c0 arch/x86/lib/insn.c:758 get_kernel_gp_address arch/x86/kernel/traps.c:558 [inline] __exc_general_protection arch/x86/kernel/traps.c:733 [inline] exc_general_protection+0x454/0x5d0 arch/x86/kernel/traps.c:693 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617 RIP: 0010:clear_pending kernel/locking/qspinlock.c:151 [inline] RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x830/0xdb0 kernel/locking/qspinlock.c:508 Code: e9 6e ff ff ff 48 8d 8c 24 b0 00 00 00 80 e1 07 fe c1 38 c1 7c 97 48 8d bc 24 b0 00 00 00 e8 a7 03 37 f6 eb 88 48 8b 44 24 10 <42> 0f b6 04 28 84 c0 0f 85 d3 00 00 00 4c 8b 64 24 48 41 c6 04 24 RSP: 0018:ffffc90003fc77e0 EFLAGS: 00010056 RAX: ffffc90003fc7800 RBX: 1ffff920007f8f12 RCX: ffffc90003fc7801 RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff8880b903ea42 RBP: ffffc90003fc7918 R08: ffff8880b903ea43 R09: 1ffff11017207d48 R10: dffffc0000000000 R11: ffffed1017207d49 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880b903ea40 R15: ffffc90003fc78a0 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:584 [inline] queued_spin_lock_slowpath+0x42/0x50 arch/x86/include/asm/qspinlock.h:51 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x272/0x370 kernel/locking/spinlock_debug.c:116 raw_spin_rq_lock_nested+0xb0/0x140 kernel/sched/core.c:595 raw_spin_rq_lock kernel/sched/sched.h:1488 [inline] rq_lock kernel/sched/sched.h:1787 [inline] ttwu_queue kernel/sched/core.c:3938 [inline] try_to_wake_up+0x804/0x1480 kernel/sched/core.c:4266 wake_up_process kernel/sched/core.c:4398 [inline] wake_up_q+0xc8/0x120 kernel/sched/core.c:1056 futex_wake+0x523/0x5c0 kernel/futex/waitwake.c:199 do_futex+0x392/0x560 kernel/futex/syscalls.c:107 __do_sys_futex kernel/futex/syscalls.c:179 [inline] __se_sys_futex+0x3f9/0x480 kernel/futex/syscalls.c:160 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f412cb79e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffed6982a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 00007f412cd16058 RCX: 00007f412cb79e79 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f412cd16060 RBP: 00007f412cd16064 R08: 00007f412cd15f80 R09: 00007ffed6982cff R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f412cd16058 R14: 0000000000000003 R15: 00000000000012a6 ---------------- Code disassembly (best guess): 0: e9 6e ff ff ff jmp 0xffffff73 5: 48 8d 8c 24 b0 00 00 lea 0xb0(%rsp),%rcx c: 00 d: 80 e1 07 and $0x7,%cl 10: fe c1 inc %cl 12: 38 c1 cmp %al,%cl 14: 7c 97 jl 0xffffffad 16: 48 8d bc 24 b0 00 00 lea 0xb0(%rsp),%rdi 1d: 00 1e: e8 a7 03 37 f6 call 0xf63703ca 23: eb 88 jmp 0xffffffad 25: 48 8b 44 24 10 mov 0x10(%rsp),%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 d3 00 00 00 jne 0x10a 37: 4c 8b 64 24 48 mov 0x48(%rsp),%r12 3c: 41 rex.B 3d: c6 .byte 0xc6 3e: 04 24 add $0x24,%al