syzbot


BUG: using __this_cpu_read() in preemptible code in __this_cpu_preempt_check

Status: auto-closed as invalid on 2019/02/22 13:19
First crash: 2510d, last: 2510d

Sample crash report:
BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor6/7274
caller is __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62
CPU: 0 PID: 7274 Comm: syz-executor6 Not tainted 4.4.110-gdac1439 #13
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 37ba563708804927 ffff8800b2107638 ffffffff81d04e3d
 0000000000000000 ffffffff839fd8a0 ffffffff83d0ab60 ffff8801ccee4740
 0000000000000003 ffff8800b2107678 ffffffff81d64dd4 ffff8800b2107690
Call Trace:
 [<ffffffff81d04e3d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d04e3d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff81d64dd4>] check_preemption_disabled+0x1d4/0x200 lib/smp_processor_id.c:46
 [<ffffffff81d64e3c>] __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62
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: 1 PID: 7288 Comm: syz-executor1 Not tainted 4.4.110-gdac1439 #13
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8800b26197c0 task.stack: ffff8800b2370000
RIP: 0010:[<ffffffff814333e1>]  [<ffffffff814333e1>] __read_once_size include/linux/compiler.h:218 [inline]
RIP: 0010:[<ffffffff814333e1>]  [<ffffffff814333e1>] atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP: 0010:[<ffffffff814333e1>]  [<ffffffff814333e1>] put_page_testzero include/linux/mm.h:357 [inline]
RIP: 0010:[<ffffffff814333e1>]  [<ffffffff814333e1>] __free_pages+0x21/0x90 mm/page_alloc.c:3365
RSP: 0018:ffff8800b2377970  EFLAGS: 00010a07
RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffffff825b9c5b
RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c
RBP: ffff8800b2377980 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 1ffff1001646ef0c R12: 0000000000000004
R13: 0000000000000020 R14: ffff8801d04da100 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f6f2fb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000020eaa000 CR3: 00000000b8348000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000246 ffff8801d04da258 ffff8800b23779e0 ffffffff825b9c81
 ffff8801d04da270 ffffed003a09b44b ffffed003a09b44e ffff8801d04da268
 dead4ead00000000 ffff8801d04da240 0000000000000000 0000000000000000
Call Trace:
 [<ffffffff825b9c81>] sg_remove_scat.isra.17+0x1c1/0x2d0 drivers/scsi/sg.c:1964
 [<ffffffff825ba045>] sg_finish_rem_req+0x2b5/0x340 drivers/scsi/sg.c:1846
 [<ffffffff825ba406>] sg_new_read.isra.18+0x336/0x3c0 drivers/scsi/sg.c:578
 [<ffffffff825bbd02>] sg_read+0x8c2/0x1490 drivers/scsi/sg.c:467
 [<ffffffff8151ca11>] do_loop_readv_writev+0x141/0x1e0 fs/read_write.c:680
 [<ffffffff8151f5af>] compat_do_readv_writev+0x5df/0x6e0 fs/read_write.c:984
 [<ffffffff8151f789>] compat_readv+0xd9/0x140 fs/read_write.c:1013
 [<ffffffff81521b18>] C_SYSC_readv fs/read_write.c:1033 [inline]
 [<ffffffff81521b18>] compat_SyS_readv+0xd8/0x1b0 fs/read_write.c:1022
 [<ffffffff81006d84>] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline]
 [<ffffffff81006d84>] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457
 [<ffffffff83776f6a>] sysenter_flags_fixed+0xd/0x17
Code: 96 a4 0c 00 e9 78 fd ff ff 90 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 49 
RIP  [<ffffffff814333e1>] __read_once_size include/linux/compiler.h:218 [inline]
RIP  [<ffffffff814333e1>] atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP  [<ffffffff814333e1>] put_page_testzero include/linux/mm.h:357 [inline]
RIP  [<ffffffff814333e1>] __free_pages+0x21/0x90 mm/page_alloc.c:3365
 RSP <ffff8800b2377970>
---[ end trace 6ffbe873b11e6287 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/07 12:58 https://android.googlesource.com/kernel/common android-4.4 dac143966992 19c05fff .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.