Re: [v6.1] KASAN: stack-out-of-bounds Write in copy_from_kernel_nofault

0 views
Skip to first unread message

syzbot

unread,
Jul 5, 2024, 9:38:07 AM (2 days ago) Jul 5
to syzkaller...@googlegroups.com, wojciech...@infogain.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
invalid opcode in bpf_dispatcher_xdp

invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 25185 Comm: syz-executor.5 Not tainted 6.1.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:bpf_dispatcher_xdp+0x9/0x1000
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa 14 20 00 a0 0f 84 <47> c5 ff ff ff e2 a0 7f 1e 48 81 fa 14 20 00 a0 0f 84 35 c5 ff ff
RSP: 0018:ffffc9000a73f978 EFLAGS: 00010293
RAX: ffffffff888d1873 RBX: ffffc9000a73fa60 RCX: ffff888028911dc0
RDX: ffffffffa0002014 RSI: ffffc9000a93d048 RDI: ffffc9000a73fc80
RBP: ffffc9000a73fb70 R08: ffffffff88bc2397 R09: ffffed10051223b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000a93d030 R14: 0000000000000000 R15: ffffc9000a73fc60
FS: 00007f858e3af6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003000 CR3: 000000007cd94000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1395
bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3670
__sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:5023
__do_sys_bpf kernel/bpf/syscall.c:5109 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5107 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f858d67c8d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f858e3af0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f858d79bf80 RCX: 00007f858d67c8d9
RDX: 0000000000000048 RSI: 0000000020000200 RDI: 000000000000000a
RBP: 00007f858d6d8b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f858d79bf80 R15: 00007ffcd6183678
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0x9/0x1000
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa 14 20 00 a0 0f 84 <47> c5 ff ff ff e2 a0 7f 1e 48 81 fa 14 20 00 a0 0f 84 35 c5 ff ff
RSP: 0018:ffffc9000a73f978 EFLAGS: 00010293
RAX: ffffffff888d1873 RBX: ffffc9000a73fa60 RCX: ffff888028911dc0
RDX: ffffffffa0002014 RSI: ffffc9000a93d048 RDI: ffffc9000a73fc80
RBP: ffffc9000a73fb70 R08: ffffffff88bc2397 R09: ffffed10051223b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000a93d030 R14: 0000000000000000 R15: ffffc9000a73fc60
FS: 00007f858e3af6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fadaef74198 CR3: 000000007cd94000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


Tested on:

commit: 7753af06 Linux 6.1.97
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10d13c69980000
kernel config: https://syzkaller.appspot.com/x/.config?x=d0472be7dc875447
dashboard link: https://syzkaller.appspot.com/bug?extid=65da5dbeacebf1b0fb83
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.

syzbot

unread,
Jul 5, 2024, 9:46:04 AM (2 days ago) Jul 5
to syzkaller...@googlegroups.com, wojciech...@infogain.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
INFO: rcu detected stall in corrupted

rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P3867 } 2665 jiffies s: 2833 root: 0x0/T
rcu: blocking rcu_node structures (internal RCU debug):


Tested on:

commit: 3b29299e Linux 6.1.22
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=1527f44e980000
kernel config: https://syzkaller.appspot.com/x/.config?x=85d8ca4eff5d84e2

syzbot

unread,
Jul 5, 2024, 9:55:04 AM (2 days ago) Jul 5
to syzkaller...@googlegroups.com, wojciech...@infogain.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+65da5d...@syzkaller.appspotmail.com

Tested on:

commit: f2295fab Linux 6.1.88
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=11c3c3be980000
kernel config: https://syzkaller.appspot.com/x/.config?x=5ab48771e239833b
dashboard link: https://syzkaller.appspot.com/bug?extid=65da5dbeacebf1b0fb83
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.
Reply all
Reply to author
Forward
0 new messages