syzbot


BUG: spinlock bad magic

Status: closed as invalid on 2017/11/05 07:52
First crash: 2594d, last: 2594d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 BUG: spinlock bad magic C 16 2504d 2070d 0/2 public: reported C repro on 2019/04/13 00:00
upstream BUG: spinlock bad magic (2) rds 7 2549d 2550d 0/28 closed as dup on 2018/01/30 22:28
upstream BUG: spinlock bad magic C 6 2635d 2652d 0/28 closed as invalid on 2017/10/18 08:55
android-49 BUG: spinlock bad magic (2) C 52 2500d 2071d 0/3 public: reported C repro on 2019/04/12 00:00

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
BUG: spinlock bad magic on CPU#0, syz-executor6/3762
 lock: 0xffff8801cd0aa118, .magic: dead4eac, .owner: <none>/-1, .owner_cpu: -1
CPU: 0 PID: 3762 Comm: syz-executor6 Not tainted 4.9.60-gdfe0a9b #81
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801db207898 ffffffff81d91389 ffff8801cd0aa118 ffff8801c9784800
 0000000000000001 0000000000000001 0000000000000000 ffff8801db2078d8
 ffffffff8124856d ffffffff812238ae 0000000000000000 0000000000000000
Call Trace:
 <IRQ> 
 [<ffffffff81d91389>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d91389>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff8124856d>] spin_dump+0x14d/0x280 kernel/locking/spinlock_debug.c:67
 [<ffffffff812488a4>] spin_bug kernel/locking/spinlock_debug.c:75 [inline]
 [<ffffffff812488a4>] debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline]
 [<ffffffff812488a4>] do_raw_spin_lock+0x174/0x1e0 kernel/locking/spinlock_debug.c:112
 [<ffffffff838aa186>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:119 [inline]
 [<ffffffff838aa186>] _raw_spin_lock_irqsave+0x56/0x70 kernel/locking/spinlock.c:159
 [<ffffffff812238ae>] __wake_up+0x1e/0x50 kernel/sched/wait.c:94
 [<ffffffff826637dc>] sg_rq_end_io+0x5dc/0xbb0 drivers/scsi/sg.c:1386
 [<ffffffff81d20bb4>] __blk_mq_end_request+0x54/0xc0 block/blk-mq.c:331
 [<ffffffff825c8fa5>] scsi_end_request+0x135/0x5c0 drivers/scsi/scsi_lib.c:627
 [<ffffffff825d2bde>] scsi_io_completion+0x15de/0x1730 drivers/scsi/scsi_lib.c:829
 [<ffffffff825b5658>] scsi_finish_command+0x3b8/0x530 drivers/scsi/scsi.c:607
 [<ffffffff825d02b0>] scsi_softirq_done+0x250/0x350 drivers/scsi/scsi_lib.c:1567
 [<ffffffff81d23ab5>] blk_mq_ipi_complete_request block/blk-mq.c:376 [inline]
 [<ffffffff81d23ab5>] __blk_mq_complete_request+0x205/0x4b0 block/blk-mq.c:388
 [<ffffffff81d23dc5>] blk_mq_complete_request+0x65/0x80 block/blk-mq.c:407
 [<ffffffff825cc3fe>] scsi_mq_done+0xce/0x320 drivers/scsi/scsi_lib.c:1877
 [<ffffffff825f6c7f>] virtscsi_complete_cmd+0x5cf/0x7f0 drivers/scsi/virtio_scsi.c:211
 [<ffffffff825f4949>] virtscsi_vq_done+0xc9/0x170 drivers/scsi/virtio_scsi.c:229
 [<ffffffff825f4a97>] virtscsi_req_done+0xa7/0xd0 drivers/scsi/virtio_scsi.c:244
 [<ffffffff81fd9f19>] vring_interrupt+0x109/0x150 drivers/virtio/virtio_ring.c:909
 [<ffffffff8126db9f>] __handle_irq_event_percpu+0xef/0x800 kernel/irq/handle.c:145
 [<ffffffff8126e324>] handle_irq_event_percpu+0x74/0x150 kernel/irq/handle.c:185
 [<ffffffff8126e4a7>] handle_irq_event+0xa7/0x140 kernel/irq/handle.c:202
 [<ffffffff81278b0a>] handle_edge_irq+0x1fa/0x8e0 kernel/irq/chip.c:665
 [<ffffffff8105a9ce>] generic_handle_irq_desc include/linux/irqdesc.h:150 [inline]
 [<ffffffff8105a9ce>] handle_irq+0x24e/0x3b0 arch/x86/kernel/irq_64.c:76
 [<ffffffff838ac899>] do_IRQ+0x89/0x1b0 arch/x86/kernel/irq.c:239
 [<ffffffff838aaccc>] common_interrupt+0x8c/0x8c arch/x86/entry/entry_64.S:520
 <EOI> 
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3747 Comm: syz-executor0 Not tainted 4.9.60-gdfe0a9b #81
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801c585c800 task.stack: ffff8801cd1f8000
RIP: 0010:[<ffffffff8144db91>]  [<ffffffff8144db91>] __read_once_size include/linux/compiler.h:243 [inline]
RIP: 0010:[<ffffffff8144db91>]  [<ffffffff8144db91>] atomic_read arch/x86/include/asm/atomic.h:26 [inline]
RIP: 0010:[<ffffffff8144db91>]  [<ffffffff8144db91>] page_ref_count include/linux/page_ref.h:66 [inline]
RIP: 0010:[<ffffffff8144db91>]  [<ffffffff8144db91>] put_page_testzero include/linux/mm.h:445 [inline]
RIP: 0010:[<ffffffff8144db91>]  [<ffffffff8144db91>] __free_pages+0x21/0x80 mm/page_alloc.c:3901
RSP: 0018:ffff8801cd1ffab0  EFLAGS: 00010a07
RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffc90003d88000
RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c
RBP: ffff8801cd1ffac0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
R13: 0000000000000020 R14: ffff8801cd0a8000 R15: dffffc0000000000
FS:  00007f0547a98700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001bdbc27000 CR3: 00000001cae2b000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801c585c800 ffff8801cd0a8158 ffff8801cd1ffb20 ffffffff8265fab1
 ffff8801cd0a8170 ffffed0039a1502b ffffed0039a1502e ffff8801cd0a8168
 dead4ead00000000 ffff8801cd0a8140 0000000000000000 0000000000000000
Call Trace:
 [<ffffffff8265fab1>] sg_remove_scat.isra.20+0x1c1/0x2d0 drivers/scsi/sg.c:1954
 [<ffffffff8265fe75>] sg_finish_rem_req+0x2b5/0x340 drivers/scsi/sg.c:1836
 [<ffffffff8265ff39>] sg_new_read.isra.21+0x39/0x3e0 drivers/scsi/sg.c:567
 [<ffffffff82661b16>] sg_read+0x8a6/0x1400 drivers/scsi/sg.c:456
 [<ffffffff8156c793>] __vfs_read+0x103/0x670 fs/read_write.c:452
 [<ffffffff8156dd27>] vfs_read+0x107/0x330 fs/read_write.c:475
 [<ffffffff815719c9>] SYSC_read fs/read_write.c:591 [inline]
 [<ffffffff815719c9>] SyS_read+0xd9/0x1b0 fs/read_write.c:584
 [<ffffffff838aa305>] entry_SYSCALL_64_fastpath+0x23/0xc6
Code: ff 66 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 53 48 89 fb 48 83 c7 1c 48 89 fa 48 83 ec 08 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 3d 
RIP  [<ffffffff8144db91>] __read_once_size include/linux/compiler.h:243 [inline]
RIP  [<ffffffff8144db91>] atomic_read arch/x86/include/asm/atomic.h:26 [inline]
RIP  [<ffffffff8144db91>] page_ref_count include/linux/page_ref.h:66 [inline]
RIP  [<ffffffff8144db91>] put_page_testzero include/linux/mm.h:445 [inline]
RIP  [<ffffffff8144db91>] __free_pages+0x21/0x80 mm/page_alloc.c:3901
 RSP <ffff8801cd1ffab0>
---[ end trace 6ba7fc15290497cc ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/05 05:58 https://android.googlesource.com/kernel/common android-4.9 dfe0a9bcfc3a d49979f7 .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.