syzbot


BUG: bad unlock balance in __free_pages

Status: auto-closed as invalid on 2019/02/22 12:39
First crash: 2323d, last: 2322d

Sample crash report:
keychord: invalid keycode count 0

=====================================
[ BUG: bad unlock balance detected! ]
4.9.67-gf26d3c7 #106 Not tainted
-------------------------------------
syz-executor4/19183 is trying to release lock ([  102.689997] 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
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 19190 Comm: syz-executor0 Not tainted 4.9.67-gf26d3c7 #106
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d0e66000 task.stack: ffff8801c9df8000
RIP: 0010:[<ffffffff8144bc11>] 
 [<ffffffff8144bc11>] __read_once_size include/linux/compiler.h:243 [inline]
 [<ffffffff8144bc11>] atomic_read arch/x86/include/asm/atomic.h:26 [inline]
 [<ffffffff8144bc11>] page_ref_count include/linux/page_ref.h:66 [inline]
 [<ffffffff8144bc11>] put_page_testzero include/linux/mm.h:450 [inline]
 [<ffffffff8144bc11>] __free_pages+0x21/0x80 mm/page_alloc.c:3910
RSP: 0018:ffff8801c9dffab0  EFLAGS: 00010a07
RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffc9000570c000
RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c
RBP: ffff8801c9dffac0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8801d0e66000 R12: 0000000000000004
R13: 0000000000000020 R14: ffff8801da1e4200 R15: dffffc0000000000
FS:  00007f266a298700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000208f5000 CR3: 00000001a521a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801d0e66000
 ffff8801da1e4358 ffff8801c9dffb20 ffffffff8265f731[  102.690138]  ffff8801da1e4370
 ffffed003b43c86b ffffed003b43c86e ffff8801da1e4368[  102.690149]  dead4ead00000000
 ffff8801da1e4340 0000000000000000 0000000000000000[  102.690158] Call Trace:
 [<ffffffff8265f731>] sg_remove_scat.isra.20+0x1c1/0x2d0 drivers/scsi/sg.c:1954
 [<ffffffff8265faf5>] sg_finish_rem_req+0x2b5/0x340 drivers/scsi/sg.c:1836
 [<ffffffff8265fbb9>] sg_new_read.isra.21+0x39/0x3e0 drivers/scsi/sg.c:567
 [<ffffffff826617ad>] sg_read+0x8bd/0x1440 drivers/scsi/sg.c:456
 [<ffffffff815680d3>] __vfs_read+0x103/0x670 fs/read_write.c:452
 [<ffffffff8156be6e>] vfs_read+0x11e/0x380 fs/read_write.c:475
 [<ffffffff8156fb99>] SYSC_read fs/read_write.c:591 [inline]
 [<ffffffff8156fb99>] SyS_read+0xd9/0x1b0 fs/read_write.c:584
 [<ffffffff838a9985>] 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 [  102.690493] RIP 
 [<ffffffff8144bc11>] __read_once_size include/linux/compiler.h:243 [inline]
 [<ffffffff8144bc11>] atomic_read arch/x86/include/asm/atomic.h:26 [inline]
 [<ffffffff8144bc11>] page_ref_count include/linux/page_ref.h:66 [inline]
 [<ffffffff8144bc11>] put_page_testzero include/linux/mm.h:450 [inline]
 [<ffffffff8144bc11>] __free_pages+0x21/0x80 mm/page_alloc.c:3910
---[ end trace 498de21e1a9a22ef ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/09 10:02 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report ci-android-49-kasan-gce
2017/12/07 19:19 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5d643f8e .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.