general protection fault in hci_event_packet

5 views
Skip to first unread message

syzbot

unread,
Oct 13, 2020, 11:05:24 PM10/13/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a1b977b4 Linux 4.19.150
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10f768d8500000
kernel config: https://syzkaller.appspot.com/x/.config?x=c14008c8da1ca4d4
dashboard link: https://syzkaller.appspot.com/bug?extid=9758f63eddf37e367cf2
compiler: gcc (GCC) 10.1.0-syz 20200507

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

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9758f6...@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
CPU: 0 PID: 6528 Comm: kworker/u5:4 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci4 hci_rx_work
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0000:ffff888065a2fb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff88808892c640 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a5f697c0 R14: ffff8880873eda40 R15: ffff8880873ee980
FS: 0000000000000000(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c001c59000 CR3: 0000000075628000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hci_rx_work+0x4c5/0xb50 net/bluetooth/hci_core.c:4359
process_one_work+0x796/0x14e0 kernel/workqueue.c:2155
worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 07f5f123437cf6d1 ]---
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0000:ffff888065a2fb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff88808892c640 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a5f697c0 R14: ffff8880873eda40 R15: ffff8880873ee980
FS: 0000000000000000(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000748138 CR3: 0000000065882000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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.

syzbot

unread,
Oct 13, 2020, 11:21:16 PM10/13/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: a1b977b4 Linux 4.19.150
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12fb4244500000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=146bfbf0500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16b7b8a0500000

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

audit: type=1400 audit(1602645511.683:8): avc: denied { execmem } for pid=6488 comm="syz-executor714" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
IPVS: ftp: loaded support on port[0] = 21
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: 6496 Comm: kworker/u5:2 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880891bfb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff8880880d6d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a7495800 R14: ffff888084f6d100 R15: ffff888084f6e040
FS: 0000000000000000(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055afbc9e4270 CR3: 000000009eabb000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hci_rx_work+0x4c5/0xb50 net/bluetooth/hci_core.c:4359
process_one_work+0x796/0x14e0 kernel/workqueue.c:2155
worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 783d7b1997b62ad0 ]---
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880891bfb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff8880880d6d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a7495800 R14: ffff888084f6d100 R15: ffff888084f6e040
FS: 0000000000000000(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009fc58000 CR4: 00000000001406f0

syzbot

unread,
Jan 18, 2021, 3:40:10 AM1/18/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit abae100355c011d14c75cabbf9eb773c231187ee
Author: Anmol Karn <anmol.k...@gmail.com>
Date: Wed Sep 30 14:18:13 2020 +0000

Bluetooth: Fix null pointer dereference in hci_event_packet()

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=148fab48d00000
start commit: a1b977b4 Linux 4.19.150
git tree: linux-4.19.y
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: Bluetooth: Fix null pointer dereference in hci_event_packet()

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages