[v6.1] WARNING in skb_ensure_writable

0 views
Skip to first unread message

syzbot

unread,
Apr 13, 2024, 9:05:45 AMApr 13
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cd5d98c0556c Linux 6.1.86
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=137f4e2b180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1002eed7bd96ee12
dashboard link: https://syzkaller.appspot.com/bug?extid=6a277a9044a785b43d58
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/22fd59eeffbc/disk-cd5d98c0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/064559777212/vmlinux-cd5d98c0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/11c6ce06eda3/bzImage-cd5d98c0.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6a277a...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 5882 at include/linux/skbuff.h:2641 skb_ensure_writable+0x2e6/0x430 net/core/skbuff.c:5768
Modules linked in:
CPU: 1 PID: 5882 Comm: syz-executor.2 Not tainted 6.1.86-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:pskb_may_pull include/linux/skbuff.h:2641 [inline]
RIP: 0010:skb_ensure_writable+0x2e6/0x430 net/core/skbuff.c:5768
Code: c3 e8 4e 57 0e f9 4c 89 ef 31 f6 31 d2 b9 20 0a 00 00 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 9f 0f fe ff e8 2a 57 0e f9 <0f> 0b e9 44 fd ff ff 44 89 f7 44 89 e6 e8 78 58 0e f9 45 39 e6 0f
RSP: 0018:ffffc90004b37910 EFLAGS: 00010283
RAX: ffffffff887c3826 RBX: ffff88805c2bc3c0 RCX: 0000000000040000
RDX: ffffc9000f3c2000 RSI: 00000000000000fa RDI: 00000000000000fb
RBP: 00000000fffffff7 R08: ffffffff887c3563 R09: fffffbfff1ce6ede
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000fffffff7
R13: ffff88805c2bc3c0 R14: ffffc90004b29020 R15: dffffc0000000000
FS: 00007fdd8191e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33721000 CR3: 00000000236b5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__bpf_try_make_writable net/core/filter.c:1658 [inline]
bpf_try_make_writable net/core/filter.c:1664 [inline]
____bpf_skb_pull_data net/core/filter.c:1844 [inline]
bpf_skb_pull_data+0x78/0x220 net/core/filter.c:1833
bpf_prog_c054a5fa89446ea8+0x1c/0x3f
bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
__bpf_prog_run include/linux/filter.h:603 [inline]
bpf_prog_run include/linux/filter.h:610 [inline]
bpf_test_run+0x40f/0x8b0 net/bpf/test_run.c:402
bpf_prog_test_run_skb+0xaf1/0x13a0 net/bpf/test_run.c:1180
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:0x7fdd80c7de69
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:00007fdd8191e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fdd80dabf80 RCX: 00007fdd80c7de69
RDX: 0000000000000050 RSI: 00000000200002c0 RDI: 000000000000000a
RBP: 00007fdd80cca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fdd80dabf80 R15: 00007ffea7f42d88
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 13, 2024, 10:44:29 AMApr 13
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cd5d98c0556c Linux 6.1.86
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1318d74d180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1002eed7bd96ee12
dashboard link: https://syzkaller.appspot.com/bug?extid=6a277a9044a785b43d58
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12fb7af5180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1769af7b180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1497cbd9943e/disk-cd5d98c0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9f947b67d7b1/vmlinux-cd5d98c0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/92c97ada9d02/bzImage-cd5d98c0.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6a277a...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3544 at include/linux/skbuff.h:2641 skb_ensure_writable+0x2e6/0x430 net/core/skbuff.c:5768
Modules linked in:
CPU: 0 PID: 3544 Comm: syz-executor160 Not tainted 6.1.86-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:pskb_may_pull include/linux/skbuff.h:2641 [inline]
RIP: 0010:skb_ensure_writable+0x2e6/0x430 net/core/skbuff.c:5768
Code: c3 e8 4e 57 0e f9 4c 89 ef 31 f6 31 d2 b9 20 0a 00 00 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 9f 0f fe ff e8 2a 57 0e f9 <0f> 0b e9 44 fd ff ff 44 89 f7 44 89 e6 e8 78 58 0e f9 45 39 e6 0f
RSP: 0018:ffffc90003a9f910 EFLAGS: 00010293
RAX: ffffffff887c3826 RBX: ffff88802759c140 RCX: ffff88807d66d940
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: 00000000ffffffff R08: ffffffff887c3563 R09: fffffbfff1ce6ede
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffffffff
R13: ffff88802759c140 R14: ffffc90000aee020 R15: dffffc0000000000
FS: 00005555568bf380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002c80 CR3: 0000000071589000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__bpf_try_make_writable net/core/filter.c:1658 [inline]
bpf_try_make_writable net/core/filter.c:1664 [inline]
____bpf_skb_pull_data net/core/filter.c:1844 [inline]
bpf_skb_pull_data+0x78/0x220 net/core/filter.c:1833
bpf_prog_58dbbba81b71214e+0x1c/0x3f
bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
__bpf_prog_run include/linux/filter.h:603 [inline]
bpf_prog_run include/linux/filter.h:610 [inline]
bpf_test_run+0x40f/0x8b0 net/bpf/test_run.c:402
bpf_prog_test_run_skb+0xaf1/0x13a0 net/bpf/test_run.c:1180
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:0x7f07825fe669
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb54228f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffcb5422ac8 RCX: 00007f07825fe669
RDX: 0000000000000048 RSI: 00000000200002c0 RDI: 000000000000000a
RBP: 00007f0782671610 R08: 0000000000000000 R09: 00007ffcb5422ac8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcb5422ab8 R14: 0000000000000001 R15: 0000000000000001
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages