BUG: unable to handle kernel NULL pointer dereference in do_syscall_64

20 views
Skip to first unread message

syzbot

unread,
Oct 31, 2019, 8:04:08 PM10/31/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: ddef1e8e Linux 4.14.151
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1550470ae00000
kernel config: https://syzkaller.appspot.com/x/.config?x=a2b317f0c5f02ed3
dashboard link: https://syzkaller.appspot.com/bug?extid=71c6458988bead00c6a0
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+71c645...@syzkaller.appspotmail.com

Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x197 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10f/0x159 lib/fault-inject.c:149
should_failslab+0xdb/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3297 [inline]
kmem_cache_alloc_node_trace+0x280/0x770 mm/slab.c:3659
BUG: unable to handle kernel NULL pointer dereference
__do_kmalloc_node mm/slab.c:3681 [inline]
__kmalloc_node_track_caller+0x3d/0x80 mm/slab.c:3696
at (null)
IP: (null)
__kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137
PGD 92e7f067
__alloc_skb+0xcf/0x500 net/core/skbuff.c:205
P4D 92e7f067
PUD 9b63c067
PMD 0
alloc_skb include/linux/skbuff.h:980 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1158 [inline]
netlink_sendmsg+0x874/0xc60 net/netlink/af_netlink.c:1852
Oops: 0010 [#1] PREEMPT SMP KASAN
Modules linked in:
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xce/0x110 net/socket.c:656
CPU: 0 PID: 14947 Comm: syz-executor.2 Not tainted 4.14.151 #0
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88808e9c4240 task.stack: ffff888064388000
RIP: 0010: (null)
RSP: 0018:ffff88806438fd48 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff88151060 RCX: ffffc90009e6d000
RDX: 1ffffffff102a223 RSI: 0000000000000000 RDI: ffff888083eaa800
RBP: ffff88806438fd68 R08: 0000000000000001 R09: ffff88808e9c4ae0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888083eaa800
R13: ffff888083eaa80e R14: 000000000000001c R15: 0000000000000002
FS: 00007f63489a7700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
__sys_sendmsg+0xb9/0x140 net/socket.c:2096
CR2: 0000000000000000 CR3: 000000009fa41000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2103
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
inet_autobind+0xae/0x180 net/ipv4/af_inet.c:181
inet_dgram_connect+0x136/0x1e0 net/ipv4/af_inet.c:538
entry_SYSCALL_64_after_hwframe+0x42/0xb7
SYSC_connect+0x1f6/0x2d0 net/socket.c:1655
RIP: 0033:0x459f49
RSP: 002b:00007f675d6f8c78 EFLAGS: 00000246
ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f675d6f8c90 RCX: 0000000000459f49
SyS_connect+0x24/0x30 net/socket.c:1636
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f675d6f96d4
R13: 00000000004c7c1c R14: 00000000004ddd80 R15: 0000000000000005
entry_SYSCALL_64_after_hwframe+0x42/0xb7
kobject: 'loop0' (ffff8880a494e920): kobject_uevent_env
RIP: 0033:0x459f49
RSP: 002b:00007f63489a6c78 EFLAGS: 00000246
kobject: 'loop0' (ffff8880a494e920): fill_kobj_path: path
= '/devices/virtual/block/loop0'
ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459f49
RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f63489a76d4
R13: 00000000004c0671 R14: 00000000004d2d28 R15: 00000000ffffffff
Code: Bad RIP value.
RIP: (null) RSP: ffff88806438fd48
CR2: 0000000000000000
---[ end trace 6d29b46400c0d80e ]---
kobject: 'loop3' (ffff8880a4a5aa60): kobject_uevent_env


---
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,
Feb 28, 2020, 6:04:06 PM2/28/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
Feb 29, 2020, 4:51:12 AM2/29/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: a083db76 Linux 4.19.107
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13f53645e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c32f76aaadd644de
dashboard link: https://syzkaller.appspot.com/bug?extid=64af8e9b710435ffdeae
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+64af8e...@syzkaller.appspotmail.com

BUG: unable to handle kernel NULL pointer dereference at 00000000000001a6
PGD 433c6067 P4D 433c6067 PUD 8f363067 PMD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 573 Comm: syz-executor.3 Not tainted 4.19.107-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_syscall_64+0x10e/0x620 arch/x86/entry/common.c:293
Code: 03 80 3c 02 00 0f 85 c3 04 00 00 48 89 ef ff 14 dd 40 46 60 87 48 8d 7d 50 48 ba 00 00 00 00 00 fc ff df 48 77 00 70 07 70 07 <00> 00 00 00 00 00 be 04 00 00 48 89 45 50 e8 8f fd 66 00 48 b8 00
RSP: 0018:ffff8880416f7f28 EFLAGS: 00010286
RAX: 00000000000001a6 RBX: 0000000000000001 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff81a6c7e8 RDI: ffff8880416f7fa8
RBP: ffff8880416f7f58 R08: ffff88809fa28300 R09: ffffed1011e3b477
R10: ffffed1011e3b476 R11: ffff88808f1da3b7 R12: 0000000000000000
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
FS: 00007fb87537c700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000001a6 CR3: 0000000087b2b000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c479
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fb87537bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fb87537c6d4 RCX: 000000000045c479
RDX: 00000000000001a6 RSI: 0000000020000100 RDI: 0000000000000003
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cda R14: 00000000004cebe8 R15: 000000000076bf2c
Modules linked in:
CR2: 00000000000001a6
BUG: unable to handle kernel paging request at 00000000000022f2
PGD 4f5b8067 P4D 4f5b8067 PUD 4f5b9067 PMD 0
Oops: 0002 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 8099 Comm: syz-executor.5 Tainted: G D 4.19.107-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_syscall_64+0x10e/0x620 arch/x86/entry/common.c:293
Code: 03 80 3c 02 00 0f 85 c3 04 00 00 48 89 ef ff 14 dd 40 46 60 87 48 8d 7d 50 48 ba 00 00 00 00 00 fc ff df 48 77 00 70 07 70 07 <00> 00 00 00 00 00 be 04 00 00 48 89 45 50 e8 8f fd 66 00 48 b8 00
RSP: 0018:ffff88804f5d7f28 EFLAGS: 00010286
RAX: 00000000000022f2 RBX: 0000000000000038 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff813c8d3c RDI: ffff88804f5d7fa8
RBP: ffff88804f5d7f58 R08: ffff88804f5c8700 R09: ffffed1012c541c1
R10: ffffed1012c541c0 R11: ffff8880962a0e03 R12: 0000000000000000
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
FS: 000000000139d940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000022f2 CR3: 000000004f5b7000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45aa4a
Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00
RSP: 002b:00007ffe5e369b70 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffe5e369b70 RCX: 000000000045aa4a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffe5e369bb0 R08: 0000000000000001 R09: 000000000139d940
R10: 000000000139dc10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffe5e369c00
Modules linked in:
CR2: 00000000000022f2
BUG: unable to handle kernel paging request at fffffffff1010d80
PGD 8a70067 P4D 8a70067 PUD 8a72067 PMD 0
Oops: 0000 [#3] PREEMPT SMP KASAN
CPU: 0 PID: 574 Comm: syz-executor.5 Tainted: G D 4.19.107-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
RIP: 0010:syscall_return_slowpath+0x54/0x4a0 arch/x86/entry/common.c:258
Code: 02 00 0f 85 ef 03 00 00 48 c7 c0 80 56 b2 88 48 8b 2b 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 da 03 00 00 <48> 83 3d b4 77 00 70 07 70 07 70 07 00 00 00 00 02 67 00 9c 58 0f
RSP: 0018:ffff88804603ff30 EFLAGS: 00010246
RAX: 1ffffffff1164ad0 RBX: ffff888042796200 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8100957e RDI: ffff88804603ff58
RBP: 0000000000000000 R08: ffff888042796200 R09: ffffed101356a662
R10: ffffed101356a661 R11: ffff88809ab5330b R12: ffff88804603ff58
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 000000000139d940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffff1010d80 CR3: 000000009fdbc000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:407
RIP: 0033:0x45aa4a
Code: Bad RIP value.
RSP: 002b:00007ffe5e369b70 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 00007ffe5e369b70 RCX: 000000000045aa4a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffe5e369bb0 R08: 0000000000000001 R09: 000000000139d940
R10: 000000000139dc10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffe5e369c00
Modules linked in:
CR2: fffffffff1010d80
---[ end trace 8e3dd8a050510b33 ]---
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
RIP: 0010:do_syscall_64+0x10e/0x620 arch/x86/entry/common.c:293
PGD 94f58067 P4D 94f58067 PUD 94f59067 PMD 0
Code: 03 80 3c 02 00 0f 85 c3 04 00 00 48 89 ef ff 14 dd 40 46 60 87 48 8d 7d 50 48 ba 00 00 00 00 00 fc ff df 48 77 00 70 07 70 07 <00> 00 00 00 00 00 be 04 00 00 48 89 45 50 e8 8f fd 66 00 48 b8 00
Oops: 0002 [#4] PREEMPT SMP KASAN
RSP: 0018:ffff8880416f7f28 EFLAGS: 00010286
CPU: 1 PID: 8088 Comm: syz-executor.2 Tainted: G D 4.19.107-syzkaller #0
RAX: 00000000000001a6 RBX: 0000000000000001 RCX: 0000000000000000
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RDX: dffffc0000000000 RSI: ffffffff81a6c7e8 RDI: ffff8880416f7fa8
RIP: 0010:do_syscall_64+0x10e/0x620 arch/x86/entry/common.c:293
RBP: ffff8880416f7f58 R08: ffff88809fa28300 R09: ffffed1011e3b477
Code: 03 80 3c 02 00 0f 85 c3 04 00 00 48 89 ef ff 14 dd 40 46 60 87 48 8d 7d 50 48 ba 00 00 00 00 00 fc ff df 48 77 00 70 07 70 07 <00> 00 00 00 00 00 be 04 00 00 48 89 45 50 e8 8f fd 66 00 48 b8 00
R10: ffffed1011e3b476 R11: ffff88808f1da3b7 R12: 0000000000000000
RSP: 0018:ffff888094c8ff28 EFLAGS: 00010286
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000037 RCX: 0000000000000000
FS: 000000000139d940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
RDX: dffffc0000000000 RSI: ffffffff85943397 RDI: ffff888094c8ffa8
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RBP: ffff888094c8ff58 R08: ffff888094c82440 R09: 0000000000000000
CR2: 000000000045aa20 CR3: 000000009fdbc000 CR4: 00000000001426f0
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
FS: 0000000002674940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000

syzbot

unread,
Jul 13, 2020, 3:25:10 AM7/13/20
to syzkaller...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages