BUG: spinlock bad magic in sigprocmask

9 views
Skip to first unread message

syzbot

unread,
May 17, 2021, 5:42:17 AM5/17/21
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c457d967 Add linux-next specific files for 20210422
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1089d051d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b6eba6608424416
dashboard link: https://syzkaller.appspot.com/bug?extid=12dc528b3e6ee8dd0e15
CC: [ax...@kernel.dk chri...@brauner.io ebie...@xmission.com linux-...@vger.kernel.org ol...@redhat.com p...@google.com tg...@linutronix.de]

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+12dc52...@syzkaller.appspotmail.com

BUG: spinlock bad magic on CPU#1, sshd/8428
lock: 0xffff888012888000, .magic: 00001590, .owner: <none>/-1, .owner_cpu: 12366
CPU: 1 PID: 8428 Comm: sshd Not tainted 5.12.0-rc8-next-20210422-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline]
do_raw_spin_lock+0x216/0x2b0 kernel/locking/spinlock_debug.c:112
spin_lock_irq include/linux/spinlock.h:384 [inline]
__set_current_blocked kernel/signal.c:3002 [inline]
sigprocmask+0x1ff/0x340 kernel/signal.c:3038
__do_sys_rt_sigprocmask kernel/signal.c:3115 [inline]
__se_sys_rt_sigprocmask kernel/signal.c:3098 [inline]
__x64_sys_rt_sigprocmask+0x19a/0x290 kernel/signal.c:3098
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3eebcb12e0
Code: 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 63 ff 41 ba 08 00 00 00 b8 0e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 08 f3 c3 66 0f 1f 44 00 00 48 8b 15 81 5b 36
RSP: 002b:00007ffccaf8e4f8 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: ffffffffffffffda RBX: 00007ffccaf8e590 RCX: 00007f3eebcb12e0
RDX: 00007ffccaf8e510 RSI: 00007ffccaf8e590 RDI: 0000000000000000
RBP: 0000558b86ac0a88 R08: 00007ffccaf8e6c0 R09: 0000000000000100
R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffccaf8e510
R13: 00007ffccaf8e69f R14: 0000558b8687bbe7 R15: 0000000000000003
================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9
index 16382 is out of range for type 'long unsigned int [8]'
CPU: 1 PID: 8428 Comm: sshd Not tainted 5.12.0-rc8-next-20210422-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
ubsan_epilogue+0xb/0x5a lib/ubsan.c:148
__ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:288
decode_tail kernel/locking/qspinlock.c:130 [inline]
__pv_queued_spin_lock_slowpath+0xa3f/0xb40 kernel/locking/qspinlock.c:468
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113
spin_lock_irq include/linux/spinlock.h:384 [inline]
__set_current_blocked kernel/signal.c:3002 [inline]
sigprocmask+0x1ff/0x340 kernel/signal.c:3038
__do_sys_rt_sigprocmask kernel/signal.c:3115 [inline]
__se_sys_rt_sigprocmask kernel/signal.c:3098 [inline]
__x64_sys_rt_sigprocmask+0x19a/0x290 kernel/signal.c:3098
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3eebcb12e0
Code: 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 63 ff 41 ba 08 00 00 00 b8 0e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 08 f3 c3 66 0f 1f 44 00 00 48 8b 15 81 5b 36
RSP: 002b:00007ffccaf8e4f8 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: ffffffffffffffda RBX: 00007ffccaf8e590 RCX: 00007f3eebcb12e0
RDX: 00007ffccaf8e510 RSI: 00007ffccaf8e590 RDI: 0000000000000000
RBP: 0000558b86ac0a88 R08: 00007ffccaf8e6c0 R09: 0000000000000100
R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffccaf8e510
R13: 00007ffccaf8e69f R14: 0000558b8687bbe7 R15: 0000000000000003
================================================================================


---
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,
Jun 22, 2021, 12:48:13 AM6/22/21
to syzkaller-upst...@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