general protection fault in skb_unlink

13 views
Skip to first unread message

syzbot

unread,
Nov 24, 2019, 2:04:10 AM11/24/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f56f3d0e Linux 4.14.155
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=173cceeee00000
kernel config: https://syzkaller.appspot.com/x/.config?x=67c576af752ad9
dashboard link: https://syzkaller.appspot.com/bug?extid=6678cfc7fcb16d651fda
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+6678cf...@syzkaller.appspotmail.com

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 8336 Comm: syz-executor.5 Not tainted 4.14.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff8880854a22c0 task.stack: ffff888051640000
RIP: 0010:__write_once_size include/linux/compiler.h:210 [inline]
RIP: 0010:__skb_unlink include/linux/skbuff.h:1886 [inline]
RIP: 0010:skb_unlink+0xc4/0x160 net/core/skbuff.c:2942
RSP: 0018:ffff8880516479b0 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff88807af13780 RCX: 0000000016a7ad40
RDX: 0000000000000001 RSI: 0000000000000282 RDI: 0000000000000008
RBP: ffff8880516479d8 R08: 0000000000006ab6 R09: ffffffff88cb9b70
R10: ffff8880854a2b68 R11: ffff8880854a22c0 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888056a947e0 R15: ffff888051647a58
FS: 00007fcc076da700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000076cb3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
kcm_recvmsg+0x3a2/0x480 net/kcm/kcmsock.c:1160
sock_recvmsg_nosec+0x89/0xb0 net/socket.c:819
___sys_recvmsg+0x21f/0x4d0 net/socket.c:2221
__sys_recvmmsg+0x226/0x6b0 net/socket.c:2329
SYSC_recvmmsg net/socket.c:2405 [inline]
SyS_recvmmsg+0x125/0x140 net/socket.c:2394
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45a639
RSP: 002b:00007fcc076d9c78 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045a639
RDX: 0400000000000310 RSI: 0000000020003540 RDI: 0000000000000008
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcc076da6d4
R13: 00000000004c82f0 R14: 00000000004de6e0 R15: 00000000ffffffff
Code: 00 00 00 49 8d 7d 08 4c 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 c7
43 08 00 00 00 00 48 89 fa 48 c7 03 00 00 00 00 48 c1 ea 03 <80> 3c 02 00
75 58 4c 89 e2 4d 89 65 08 48 b8 00 00 00 00 00 fc
RIP: __write_once_size include/linux/compiler.h:210 [inline] RSP:
ffff8880516479b0
RIP: __skb_unlink include/linux/skbuff.h:1886 [inline] RSP: ffff8880516479b0
RIP: skb_unlink+0xc4/0x160 net/core/skbuff.c:2942 RSP: ffff8880516479b0
---[ end trace e1a93ac7a4da0621 ]---


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Nov 24, 2019, 2:47:08 AM11/24/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: f56f3d0e Linux 4.14.155
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=129593cee00000
kernel config: https://syzkaller.appspot.com/x/.config?x=67c576af752ad9
dashboard link: https://syzkaller.appspot.com/bug?extid=6678cfc7fcb16d651fda
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1076e112e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12d173cee00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+6678cf...@syzkaller.appspotmail.com

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7020 Comm: syz-executor037 Not tainted 4.14.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88809c7ae0c0 task.stack: ffff888078968000
RIP: 0010:__write_once_size include/linux/compiler.h:210 [inline]
RIP: 0010:__skb_unlink include/linux/skbuff.h:1886 [inline]
RIP: 0010:skb_unlink+0xc4/0x160 net/core/skbuff.c:2942
RSP: 0018:ffff88807896f9b0 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff888091054a00 RCX: 00000000f13abcde
RDX: 0000000000000001 RSI: 0000000000000282 RDI: 0000000000000008
RBP: ffff88807896f9d8 R08: 0000000000006a3c R09: ffffffff88cb97a0
R10: ffff88809c7ae968 R11: ffff88809c7ae0c0 R12: ffff888091054b40
R13: 0000000000000000 R14: ffff8880a4f6b4a0 R15: ffff88807896fa58
FS: 00007f9a3bbed700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000209ff000 CR3: 000000009f97a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
kcm_recvmsg+0x3a2/0x480 net/kcm/kcmsock.c:1160
sock_recvmsg_nosec+0x89/0xb0 net/socket.c:819
___sys_recvmsg+0x21f/0x4d0 net/socket.c:2221
__sys_recvmmsg+0x226/0x6b0 net/socket.c:2329
SYSC_recvmmsg net/socket.c:2405 [inline]
SyS_recvmmsg+0x125/0x140 net/socket.c:2394
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x446ba9
RSP: 002b:00007f9a3bbecd98 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00000000006dbc48 RCX: 0000000000446ba9
RDX: 0400000000000310 RSI: 0000000020003540 RDI: 0000000000000005
RBP: 00000000006dbc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc4c
R13: 00000000002b0095 R14: 0000a50000000000 R15: 0000000300000018
Code: 00 00 00 49 8d 7d 08 4c 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 c7
43 08 00 00 00 00 48 89 fa 48 c7 03 00 00 00 00 48 c1 ea 03 <80> 3c 02 00
75 58 4c 89 e2 4d 89 65 08 48 b8 00 00 00 00 00 fc
RIP: __write_once_size include/linux/compiler.h:210 [inline] RSP:
ffff88807896f9b0
RIP: __skb_unlink include/linux/skbuff.h:1886 [inline] RSP: ffff88807896f9b0
RIP: skb_unlink+0xc4/0x160 net/core/skbuff.c:2942 RSP: ffff88807896f9b0
---[ end trace e99ec447687e2d78 ]---

syzbot

unread,
Nov 24, 2019, 4:40:08 AM11/24/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c63ee293 Linux 4.19.85
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=154b009ce00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cbfad1c8058581ad
dashboard link: https://syzkaller.appspot.com/bug?extid=3d9aa25f2dd3b690ee21
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1411a322e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=100ecbcee00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+3d9aa2...@syzkaller.appspotmail.com

audit: type=1400 audit(1574584202.698:41): avc: denied { prog_run } for
pid=7631 comm="syz-executor501"
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf
permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7635 Comm: syz-executor501 Not tainted 4.19.85-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__write_once_size include/linux/compiler.h:220 [inline]
RIP: 0010:__skb_unlink include/linux/skbuff.h:1900 [inline]
RIP: 0010:skb_unlink+0xc4/0x160 net/core/skbuff.c:2945
Code: 00 00 49 8d 7d 08 4c 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 c7 43
08 00 00 00 00 48 89 fa 48 c7 03 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 75
58 4c 89 e2 4d 89 65 08 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffff88809ee67908 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff8880962d3c80 RCX: ffffffff81531da8
RDX: 0000000000000001 RSI: 0000000000000282 RDI: 0000000000000008
RBP: ffff88809ee67930 R08: 1ffff110131aab3c R09: ffffed10131aab3d
R10: ffffed10131aab3c R11: ffff888098d559e3 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888098d559e0 R15: ffff88809ee679d8
FS: 00007ff7a8648700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e4628f21b0 CR3: 00000000a55b5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
kcm_recvmsg+0x462/0x560 net/kcm/kcmsock.c:1160
sock_recvmsg_nosec+0x89/0xb0 net/socket.c:795
___sys_recvmsg+0x271/0x580 net/socket.c:2277
__sys_recvmmsg+0x27e/0x790 net/socket.c:2389
do_sys_recvmmsg net/socket.c:2465 [inline]
do_sys_recvmmsg+0x181/0x1a0 net/socket.c:2454
__do_sys_recvmmsg net/socket.c:2483 [inline]
__se_sys_recvmmsg net/socket.c:2479 [inline]
__x64_sys_recvmmsg+0xbe/0x150 net/socket.c:2479
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x448b29
Code: e8 0c 1b 03 00 48 83 c4 18 c3 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 0f 83 3b 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff7a8647ce8 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00000000006dfc48 RCX: 0000000000448b29
RDX: 0400000000000310 RSI: 0000000020003540 RDI: 0000000000000005
RBP: 00000000006dfc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dfc4c
R13: 00007ffc3828db3f R14: 00007ff7a86489c0 R15: 000000000000002d
Modules linked in:
---[ end trace 5cc8695cf11eea5f ]---
RIP: 0010:__write_once_size include/linux/compiler.h:220 [inline]
RIP: 0010:__skb_unlink include/linux/skbuff.h:1900 [inline]
RIP: 0010:skb_unlink+0xc4/0x160 net/core/skbuff.c:2945
Code: 00 00 49 8d 7d 08 4c 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 c7 43
08 00 00 00 00 48 89 fa 48 c7 03 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 75
58 4c 89 e2 4d 89 65 08 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffff88809ee67908 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff8880962d3c80 RCX: ffffffff81531da8
RDX: 0000000000000001 RSI: 0000000000000282 RDI: 0000000000000008
RBP: ffff88809ee67930 R08: 1ffff110131aab3c R09: ffffed10131aab3d
R10: ffffed10131aab3c R11: ffff888098d559e3 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888098d559e0 R15: ffff88809ee679d8
FS: 00007ff7a8648700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e4628f21b0 CR3: 00000000a55b5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Nov 25, 2019, 4:09:01 AM11/25/19
to syzkaller...@googlegroups.com
syzbot has bisected this bug to:

commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
Author: Russell Currey <rus...@russell.cc>
Date: Mon Feb 8 04:08:20 2016 +0000

powerpc/powernv: Remove support for p5ioc2

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11ada322e00000
start commit: c63ee293 Linux 4.19.85
git tree: linux-4.19.y
final crash: https://syzkaller.appspot.com/x/report.txt?x=13ada322e00000
console output: https://syzkaller.appspot.com/x/log.txt?x=15ada322e00000
Reported-by: syzbot+3d9aa2...@syzkaller.appspotmail.com
Fixes: 2de50e9674fc ("powerpc/powernv: Remove support for p5ioc2")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Nov 26, 2019, 2:28:02 PM11/26/19
to syzkaller...@googlegroups.com
syzbot has bisected this bug to:

commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
Author: Russell Currey <rus...@russell.cc>
Date: Mon Feb 8 04:08:20 2016 +0000

powerpc/powernv: Remove support for p5ioc2

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10e1f8bce00000
start commit: f56f3d0e Linux 4.14.155
git tree: linux-4.14.y
final crash: https://syzkaller.appspot.com/x/report.txt?x=12e1f8bce00000
console output: https://syzkaller.appspot.com/x/log.txt?x=14e1f8bce00000
Reported-by: syzbot+6678cf...@syzkaller.appspotmail.com
Reply all
Reply to author
Forward
0 new messages