BUG: spinlock bad magic in sco_sock_timeout

4 views
Skip to first unread message

syzbot

unread,
Sep 18, 2022, 6:45:42 PM9/18/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=163958dd080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=01762974f475fab9cd83
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/ea228ff02669/vmlinux-3f8a27f9.xz

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

IPVS: ftp: loaded support on port[0] = 21
BUG: spinlock bad magic on CPU#0, kworker/0:0/930
lock: 0xffff888020efa948, .magic: ffff8880, .owner: <none>/-1, .owner_cpu: 4
CPU: 0 PID: 930 Comm: kworker/0:0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: events sco_sock_timeout
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline]
do_raw_spin_lock+0x19f/0x220 kernel/locking/spinlock_debug.c:112
spin_lock include/linux/spinlock.h:329 [inline]
sco_sock_timeout+0x7b/0x1b0 net/bluetooth/sco.c:95
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
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: 930 Comm: kworker/0:0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: events sco_sock_timeout
RIP: 0010:__write_once_size include/linux/compiler.h:290 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x539/0xae0 kernel/locking/qspinlock.c:437
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 dd 04 00 00 4a 03 1c e5 00 af cf 89 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 ad 04 00 00 4c 8d 6b 44 48 89 6c 24 08 48 8b 2c
RSP: 0018:ffff8880600d7c20 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 000000000002be20 RCX: ffffffff814b98df
RDX: 00000000000057c4 RSI: 0000000000000002 RDI: ffffffff89cfd530
RBP: ffff888020efa948 R08: 0000000000000001 R09: ffffed10041df529
R10: ffff888020efa94b R11: 0000000000074071 R12: 00000000000004c6
IPVS: ftp: loaded support on port[0] = 21
R13: 0000000000000001 R14: 0000000000040000 R15: ffff8880ba02be00
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff2c000 CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
sco_sock_timeout+0x7b/0x1b0 net/bluetooth/sco.c:95
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 2078d5e653a7d5e6 ]---
RIP: 0010:__write_once_size include/linux/compiler.h:290 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x539/0xae0 kernel/locking/qspinlock.c:437
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 dd 04 00 00 4a 03 1c e5 00 af cf 89 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 ad 04 00 00 4c 8d 6b 44 48 89 6c 24 08 48 8b 2c
RSP: 0018:ffff8880600d7c20 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 000000000002be20 RCX: ffffffff814b98df
RDX: 00000000000057c4 RSI: 0000000000000002 RDI: ffffffff89cfd530
RBP: ffff888020efa948 R08: 0000000000000001 R09: ffffed10041df529
R10: ffff888020efa94b R11: 0000000000074071 R12: 00000000000004c6
R13: 0000000000000001 R14: 0000000000040000 R15: ffff8880ba02be00
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff2c000 CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 89 fa mov %rdi,%rdx
3: 48 c1 ea 03 shr $0x3,%rdx
7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
b: 0f 85 dd 04 00 00 jne 0x4ee
11: 4a 03 1c e5 00 af cf add -0x76305100(,%r12,8),%rbx
18: 89
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 48 89 da mov %rbx,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 ad 04 00 00 jne 0x4e1
34: 4c 8d 6b 44 lea 0x44(%rbx),%r13
38: 48 89 6c 24 08 mov %rbp,0x8(%rsp)
3d: 48 rex.W
3e: 8b .byte 0x8b
3f: 2c .byte 0x2c


---
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,
Jan 16, 2023, 5:45:43 PM1/16/23
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages