syzbot


BUG: using __this_cpu_read() in preemptible code in check_preemption_disabled

Status: auto-closed as invalid on 2019/02/22 12:39
First crash: 2318d, last: 2315d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 BUG: using __this_cpu_read() in preemptible code in check_preemption_disabled (2) 14 2274d 2322d 0/3 auto-closed as invalid on 2019/02/22 14:57
android-49 BUG: using __this_cpu_read() in preemptible code in check_preemption_disabled 1 2323d 2323d 0/3 closed as invalid on 2017/12/14 08:27

Sample crash report:
BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor1/8233
caller is __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62
CPU: 1 PID: 8233 Comm: syz-executor1 Not tainted 4.4.107-g610c835 #4
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 bf269d4190796ee8 ffff8800bb87f648 ffffffff81d0457d
 0000000000000001 ffffffff839fd5a0 ffffffff83d09e20 ffff8800ab105f00
 0000000000000003 ffff8800bb87f688 ffffffff81d63f24 ffff8800bb87f6a0
Call Trace:
 [<ffffffff81d0457d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0457d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff81d63f24>] check_preemption_disabled+0x1d4/0x200 lib/smp_processor_id.c:46
sg_write: data in/out 458716/229 bytes for SCSI command 0x37-- guessing data in;
   program syz-executor6 not setting count and/or reply_len properly
 [<ffffffff81d63f8c>] __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62
 [<ffffffff832e248a>] ipcomp_alloc_tfms net/xfrm/xfrm_ipcomp.c:286 [inline]
 [<ffffffff832e248a>] ipcomp_init_state+0x19a/0x970 net/xfrm/xfrm_ipcomp.c:363
 [<ffffffff8324a690>] ipcomp4_init_state+0xb0/0x7d0 net/ipv4/ipcomp.c:137
 [<ffffffff832c0dd7>] __xfrm_init_state+0x3e7/0xb30 net/xfrm/xfrm_state.c:2058
 [<ffffffff832c153a>] xfrm_init_state+0x1a/0x20 net/xfrm/xfrm_state.c:2084
 [<ffffffff83445a7b>] pfkey_msg2xfrm_state net/key/af_key.c:1281 [inline]
 [<ffffffff83445a7b>] pfkey_add+0x1fbb/0x3490 net/key/af_key.c:1498
 [<ffffffff8344964e>] pfkey_process+0x61e/0x730 net/key/af_key.c:2826
 [<ffffffff8344aef9>] pfkey_sendmsg+0x3a9/0x760 net/key/af_key.c:3670
 [<ffffffff82dec59a>] sock_sendmsg_nosec net/socket.c:625 [inline]
 [<ffffffff82dec59a>] sock_sendmsg+0xca/0x110 net/socket.c:635
 [<ffffffff82dee171>] ___sys_sendmsg+0x6c1/0x7c0 net/socket.c:1962
 [<ffffffff82df01c3>] __sys_sendmsg+0xd3/0x190 net/socket.c:1996
 [<ffffffff82eda28a>] C_SYSC_sendmsg net/compat.c:720 [inline]
 [<ffffffff82eda28a>] compat_SyS_sendmsg+0x2a/0x40 net/compat.c:718
 [<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
 [<ffffffff837754d7>] sysenter_flags_fixed+0xd/0x17
binder: BINDER_SET_CONTEXT_MGR already set
binder: 8325:8328 ioctl 40046207 0 returned -16
binder_alloc: 8325: binder_alloc_buf, no vma
binder: 8325:8348 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered transaction 56, process died.
binder: undelivered transaction 55, process died.
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_COMPLETE
netlink: 9 bytes leftover after parsing attributes in process `syz-executor1'.
netlink: 9 bytes leftover after parsing attributes in process `syz-executor1'.
binder: undelivered transaction 60, process died.
binder: undelivered transaction 59, process died.
binder: binder_mmap: 8483 20000000-20001000 bad vm_flags failed -1
binder: BINDER_SET_CONTEXT_MGR already set
binder: 8483:8488 ioctl 40046207 0 returned -16
binder: 8545:8546 BC_INCREFS_DONE u0000000000000000 no match
binder: 8545:8558 BC_INCREFS_DONE node 62 has no pending increfs request
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket
netlink: 2 bytes leftover after parsing attributes in process `syz-executor2'.
netlink: 2 bytes leftover after parsing attributes in process `syz-executor2'.
binder: 8707:8710 unknown command 0
binder: 8707:8710 ioctl c0306201 204ecfd0 returned -22
netlink: 1 bytes leftover after parsing attributes in process `syz-executor2'.
IPv6: NLM_F_REPLACE set, but no existing node found!
netlink: 1 bytes leftover after parsing attributes in process `syz-executor2'.
IPv6: NLM_F_REPLACE set, but no existing node found!
device gre0 entered promiscuous mode
audit: type=1326 audit(1513938941.067:32): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8782 comm="syz-executor6" exe="/root/syz-executor6" sig=31 arch=40000003 syscall=240 compat=1 ip=0xf77c0ba9 code=0x0
binder_alloc: binder_alloc_mmap_handler: 8804 20000000-20002000 already mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 8804:8806 ioctl 40046207 0 returned -16
binder_alloc: 8804: binder_alloc_buf, no vma
binder: 8804:8813 transaction failed 29189/-3, size 72-16 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 8804:8806 transaction 64 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: send failed reply for transaction 64, target dead
device gre0 entered promiscuous mode
binder: 8855:8862 BC_ACQUIRE_DONE u0000000000000000 no match
binder: 8855:8874 ioctl 22554dc0 2000cffc returned -22
binder: BINDER_SET_CONTEXT_MGR already set
binder: 8855:8877 BC_ACQUIRE_DONE u0000000000000000 no match
binder: 8855:8874 ioctl 40046207 0 returned -16
binder: 8855:8874 ioctl 22554dc0 2000cffc returned -22
SELinux: unrecognized netlink message: protocol=4 nlmsg_type=40137 sclass=netlink_tcpdiag_socket
SELinux: unrecognized netlink message: protocol=4 nlmsg_type=40137 sclass=netlink_tcpdiag_socket
binder: 9018:9030 ioctl 540a 0 returned -22
binder: BINDER_SET_CONTEXT_MGR already set
binder: 9018:9041 ioctl 40046207 0 returned -16
binder_alloc: 9018: binder_alloc_buf, no vma
binder: 9018:9041 transaction failed 29189/-3, size 0-0 line 3128
binder: 9018:9068 ioctl 540a 0 returned -22
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 9018:9041 transaction 68 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: release 9018:9030 transaction 68 in, still active
binder: send failed reply for transaction 68, target dead
binder: 9075:9076 ioctl 8905 20f4affc returned -22
binder: 9075:9078 ioctl 8905 20f4affc returned -22
device gre0 entered promiscuous mode
binder: 9227:9230 got new transaction with bad transaction stack, transaction 71 has target 9227:0
netlink: 8 bytes leftover after parsing attributes in process `syz-executor3'.
netlink: 8 bytes leftover after parsing attributes in process `syz-executor3'.
binder: 9227:9230 transaction failed 29201/-71, size 0-0 line 3032
binder: BINDER_SET_CONTEXT_MGR already set
binder: 9227:9244 ioctl 40046207 0 returned -16
binder_alloc: 9227: binder_alloc_buf, no vma
binder: 9227:9244 transaction failed 29189/-3, size 0-0 line 3128
binder_alloc: 9227: binder_alloc_buf, no vma
binder: 9227:9230 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 9227:9230 transaction 71 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_ERROR: 29201
device syz6 entered promiscuous mode
skbuff: bad partial csum: csum=65535/0 len=28
binder: send failed reply for transaction 71, target dead
skbuff: bad partial csum: csum=65535/0 len=28
netlink: 1 bytes leftover after parsing attributes in process `syz-executor7'.
device gre0 entered promiscuous mode
device gre0 entered promiscuous mode
device gre0 left promiscuous mode
device gre0 entered promiscuous mode
device gre0 entered promiscuous mode
netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'.
netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'.
netlink: 11 bytes leftover after parsing attributes in process `syz-executor7'.
netlink: 11 bytes leftover after parsing attributes in process `syz-executor7'.
device gre0 entered promiscuous mode
binder: 9687:9691 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0
binder: 9687:9710 BC_DEAD_BINDER_DONE 0000000000000004 not found
binder: 9687:9710 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0
binder: 9687:9722 BC_DEAD_BINDER_DONE 0000000000000004 not found
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=17 sclass=netlink_audit_socket
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=17 sclass=netlink_audit_socket
binder: 9860:9861 Acquire 1 refcount change on invalid ref 0 ret -22
binder: 9860:9861 got transaction to invalid handle
binder: 9860:9861 transaction failed 29201/-22, size 0-0 line 3005
binder: undelivered TRANSACTION_ERROR: 29201
netlink: 11 bytes leftover after parsing attributes in process `syz-executor5'.
netlink: 11 bytes leftover after parsing attributes in process `syz-executor5'.
binder: 9902:9904 ERROR: BC_REGISTER_LOOPER called without request
binder: 9902:9904 got transaction with unaligned buffers size, 2
binder: 9902:9904 transaction failed 29201/-22, size 0-0 line 3173
binder: send failed reply for transaction 79 to 9902:9914
binder: BINDER_SET_CONTEXT_MGR already set
binder: 9902:9914 ioctl 40046207 0 returned -16
binder: 9902:9904 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 9902: binder_alloc_buf, no vma
binder: 9902:9914 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_ERROR: 29190
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_ERROR: 29201
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1576 sclass=netlink_route_socket
netlink: 8 bytes leftover after parsing attributes in process `syz-executor1'.
device gre0 entered promiscuous mode
device syz0 entered promiscuous mode
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1576 sclass=netlink_route_socket
binder: 9977:9979 tried to acquire reference to desc 0, got 1 instead
binder: BINDER_SET_CONTEXT_MGR already set
binder: 9981:9992 ioctl 40046207 0 returned -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 10111:10136 ioctl 40046207 0 returned -16
sg_write: data in/out 458716/2 bytes for SCSI command 0x5f-- guessing data in;
   program syz-executor3 not setting count and/or reply_len properly

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/22 10:35 https://android.googlesource.com/kernel/common android-4.4 610c835673f3 81fe66b4 .config console log report ci-android-44-kasan-gce-386
2017/12/19 14:05 https://android.googlesource.com/kernel/common android-4.4 170051828437 af9163c7 .config console log report ci-android-44-kasan-gce
* Struck through repros no longer work on HEAD.