================================================================== BUG: KASAN: out-of-bounds in instrument_memcpy_before include/linux/instrumented.h:163 [inline] BUG: KASAN: out-of-bounds in copy_from_kernel_nofault+0x83/0x240 mm/maccess.c:35 Read of size 6 at addr fffffffffffffffd by task syz.0.15/3341 CPU: 1 UID: 0 PID: 3341 Comm: syz.0.15 Not tainted 6.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x108/0x280 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 instrument_memcpy_before include/linux/instrumented.h:163 [inline] copy_from_kernel_nofault+0x83/0x240 mm/maccess.c:35 bpf_probe_read_kernel_common include/linux/bpf.h:2951 [inline] ____bpf_probe_read_kernel kernel/trace/bpf_trace.c:239 [inline] bpf_probe_read_kernel+0x1a/0x50 kernel/trace/bpf_trace.c:236 ___bpf_prog_run+0xe4a/0xa620 kernel/bpf/core.c:2010 __bpf_prog_run32+0xfa/0x150 kernel/bpf/core.c:2251 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_test_run+0x3ae/0x860 net/bpf/test_run.c:431 bpf_prog_test_run_xdp+0x66b/0x1080 net/bpf/test_run.c:1319 bpf_prog_test_run+0x251/0x2c0 kernel/bpf/syscall.c:4320 __sys_bpf+0x3a0/0x650 kernel/bpf/syscall.c:5735 __do_sys_bpf kernel/bpf/syscall.c:5824 [inline] __se_sys_bpf kernel/bpf/syscall.c:5822 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:5822 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f425a29dff9 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:00007f4259d19038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f425a455f80 RCX: 00007f425a29dff9 RDX: 000000000000003b RSI: 0000000020000240 RDI: 000000000000000a RBP: 00007f425a310296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f425a455f80 R15: 00007fffc2109748 Memory state around the buggy address: fffffffffffffe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffffffffff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffffffffff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 3341 Comm: syz.0.15 Not tainted 6.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:kasan_metadata_fetch_row+0x12/0x30 mm/kasan/report_generic.c:186 Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <48> 8b 0c 06 48 8b 44 06 08 48 89 47 08 48 89 0f c3 cc cc cc cc 66 RSP: 0018:ffffc9000616f518 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 9f11ed122c805800 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffc9000616f550 RBP: ffffc9000616f5a0 R08: 0000000000000020 R09: 0000000000000020 R10: dffffc0000000000 R11: fffff52000c2dea9 R12: ffffc9000616f550 R13: 0000000000000080 R14: ffffffffffffff80 R15: ffffc9000616f530 FS: 00007f4259d196c0(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e55ffff CR3: 0000000117a2a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: print_memory_metadata mm/kasan/report.c:464 [inline] print_report+0x4df/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 instrument_memcpy_before include/linux/instrumented.h:163 [inline] copy_from_kernel_nofault+0x83/0x240 mm/maccess.c:35 bpf_probe_read_kernel_common include/linux/bpf.h:2951 [inline] ____bpf_probe_read_kernel kernel/trace/bpf_trace.c:239 [inline] bpf_probe_read_kernel+0x1a/0x50 kernel/trace/bpf_trace.c:236 ___bpf_prog_run+0xe4a/0xa620 kernel/bpf/core.c:2010 __bpf_prog_run32+0xfa/0x150 kernel/bpf/core.c:2251 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_test_run+0x3ae/0x860 net/bpf/test_run.c:431 bpf_prog_test_run_xdp+0x66b/0x1080 net/bpf/test_run.c:1319 bpf_prog_test_run+0x251/0x2c0 kernel/bpf/syscall.c:4320 __sys_bpf+0x3a0/0x650 kernel/bpf/syscall.c:5735 __do_sys_bpf kernel/bpf/syscall.c:5824 [inline] __se_sys_bpf kernel/bpf/syscall.c:5822 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:5822 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f425a29dff9 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:00007f4259d19038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f425a455f80 RCX: 00007f425a29dff9 RDX: 000000000000003b RSI: 0000000020000240 RDI: 000000000000000a RBP: 00007f425a310296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f425a455f80 R15: 00007fffc2109748 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:kasan_metadata_fetch_row+0x12/0x30 mm/kasan/report_generic.c:186 Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <48> 8b 0c 06 48 8b 44 06 08 48 89 47 08 48 89 0f c3 cc cc cc cc 66 RSP: 0018:ffffc9000616f518 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 9f11ed122c805800 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffc9000616f550 RBP: ffffc9000616f5a0 R08: 0000000000000020 R09: 0000000000000020 R10: dffffc0000000000 R11: fffff52000c2dea9 R12: ffffc9000616f550 R13: 0000000000000080 R14: ffffffffffffff80 R15: ffffc9000616f530 FS: 00007f4259d196c0(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e55ffff CR3: 0000000117a2a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) 7: 00 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 66 0f 1f 00 nopw (%rax) 1c: 48 c1 ee 03 shr $0x3,%rsi 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 48 8b 0c 06 mov (%rsi,%rax,1),%rcx <-- trapping instruction 2e: 48 8b 44 06 08 mov 0x8(%rsi,%rax,1),%rax 33: 48 89 47 08 mov %rax,0x8(%rdi) 37: 48 89 0f mov %rcx,(%rdi) 3a: c3 ret 3b: cc int3 3c: cc int3 3d: cc int3 3e: cc int3 3f: 66 data16