BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor5/5326 caller is __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62 CPU: 1 PID: 5326 Comm: syz-executor5 Not tainted 4.9.80-g8a174b47 #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b51cf490 ffffffff81d94be9 0000000000000001 ffffffff83c18800 ffffffff83f454c0 ffff8801b525b000 0000000000000003 ffff8801b51cf4d0 ffffffff81dfc1c4 ffff8801b51cf4e8[ 34.364445] syz-executor3 (5340) used greatest stack depth: 22208 bytes left ffffffff83f454c0 dffffc0000000000 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] check_preemption_disabled+0x1d4/0x200 lib/smp_processor_id.c:46 [] __this_cpu_preempt_check+0x1c/0x20 lib/smp_processor_id.c:62 [] ipcomp_alloc_tfms net/xfrm/xfrm_ipcomp.c:286 [inline] [] ipcomp_init_state+0x188/0x930 net/xfrm/xfrm_ipcomp.c:363 [] ipcomp4_init_state+0xb0/0x7d0 net/ipv4/ipcomp.c:137 [] __xfrm_init_state+0x3e7/0xb30 net/xfrm/xfrm_state.c:2096 [] xfrm_state_construct net/xfrm/xfrm_user.c:590 [inline] [] xfrm_add_sa+0x1916/0x2e40 net/xfrm/xfrm_user.c:639 [] xfrm_user_rcv_msg+0x413/0x6a0 net/xfrm/xfrm_user.c:2525 [] netlink_rcv_skb+0x13e/0x370 net/netlink/af_netlink.c:2351 [] xfrm_netlink_rcv+0x6f/0x90 net/xfrm/xfrm_user.c:2533 [] netlink_unicast_kernel net/netlink/af_netlink.c:1275 [inline] [] netlink_unicast+0x511/0x750 net/netlink/af_netlink.c:1301 [] netlink_sendmsg+0x8e8/0xc50 net/netlink/af_netlink.c:1847 [] sock_sendmsg_nosec net/socket.c:635 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:645 [] ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1969 [] __sys_sendmsg+0xd6/0x190 net/socket.c:2003 [] SYSC_sendmsg net/socket.c:2014 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2010 [] entry_SYSCALL_64_fastpath+0x29/0xe8 device syz5 entered promiscuous mode capability: warning: `syz-executor7' uses 32-bit capabilities (legacy support in use) audit: type=1400 audit(1518418356.064:13): avc: denied { setgid } for pid=5451 comm="syz-executor7" capability=6 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1518418357.104:14): avc: denied { set_context_mgr } for pid=5534 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 audit: type=1400 audit(1518418357.134:15): avc: denied { call } for pid=5534 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 binder_alloc: binder_alloc_mmap_handler: 5534 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 5534:5535 ioctl 40046207 0 returned -16 binder_alloc: 5534: binder_alloc_buf, no vma binder: 5534:5561 transaction failed 29189/-3, size 0-0 line 3127 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 5534:5561 transaction 1 out, still active binder: undelivered TRANSACTION_COMPLETE binder: release 5534:5535 transaction 3 out, still active binder: release 5534:5535 transaction 1 in, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 3, target dead binder: send failed reply for transaction 1, target dead device gre0 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): gre0: link is not ready IPVS: Creating netns size=2536 id=9 audit: type=1400 audit(1518418361.624:16): avc: denied { fsetid } for pid=5931 comm="syz-executor3" capability=4 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1518418361.654:17): avc: denied { write } for pid=5961 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. audit: type=1400 audit(1518418361.714:18): avc: denied { connect } for pid=5980 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 audit: type=1400 audit(1518418361.744:19): avc: denied { setopt } for pid=5980 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. SELinux: unknown mount option syz-executor2: vmalloc: allocation failure: 0 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 6115 Comm: syz-executor2 Not tainted 4.9.80-g8a174b47 #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d84b7938 ffffffff81d94be9 1ffff1003b096f2a ffff8801d8799800 ffffffff83ab8ea0 0000000000000001 0000000000400000 ffff8801d84b7a48 ffffffff81451d22 024000c2d84b7988 0000000041b58ab3 ffffffff8419522d Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3056 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] sel_write_load+0x130/0xfd0 security/selinux/selinuxfs.c:514 [] __vfs_write+0x103/0x680 fs/read_write.c:510 [] vfs_write+0x189/0x530 fs/read_write.c:560 [] SYSC_write fs/read_write.c:607 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:599 [] entry_SYSCALL_64_fastpath+0x29/0xe8 Mem-Info: active_anon:59610 inactive_anon:45 isolated_anon:0 active_file:3521 inactive_file:8313 isolated_file:0 unevictable:0 dirty:122 writeback:0 unstable:0 slab_reclaimable:5486 slab_unreclaimable:59989 mapped:24084 shmem:51 pagetables:716 bounce:0 free:1470037 free_pcp:325 free_cma:0 Node 0 active_anon:219900kB inactive_anon:180kB active_file:14084kB inactive_file:33252kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:96336kB dirty:488kB writeback:0kB shmem:204kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 108544kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2908 6410 6410 DMA32 free:2980084kB min:30592kB low:38240kB high:45888kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2980720kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:636kB local_pcp:636kB free_cma:0kB lowmem_reserve[]: 0 0 3501 3501 Normal free:2908980kB min:36824kB low:46028kB high:55232kB active_anon:215568kB inactive_anon:180kB active_file:14084kB inactive_file:33252kB unevictable:0kB writepending:500kB present:4718592kB managed:3585212kB mlocked:0kB slab_reclaimable:21944kB slab_unreclaimable:240148kB kernel_stack:5600kB pagetables:2588kB bounce:0kB free_pcp:1416kB local_pcp:700kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB DMA32: 3*4kB (M) 5*8kB (M) 4*16kB (M) 2*32kB (M) 3*64kB (M) 3*128kB (M) 2*256kB (M) 4*512kB (M) 1*1024kB (M) 1*2048kB (M) 726*4096kB (M) = 2980084kB Normal: 875*4kB (UME) 137*8kB (UME) 103*16kB (UE) 49*32kB (UME) 4*64kB (U) 10*128kB (UME) 7*256kB (UME) 4*512kB (ME) 22*1024kB (ME) 5*2048kB (UME) 699*4096kB (M) = 2909060kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11899 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965969 pages RAM 0 pages HighMem/MovableOnly 320509 pages reserved syz-executor2: vmalloc: allocation failure: 0 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 6142 Comm: syz-executor2 Not tainted 4.9.80-g8a174b47 #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d8bd7938 ffffffff81d94be9 1ffff1003b17af2a ffff8801b2851800 ffffffff83ab8ea0 0000000000000001 0000000000400000 ffff8801d8bd7a48 ffffffff81451d22 024000c2d8bd7988 0000000041b58ab3 ffffffff8419522d Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3056 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] sel_write_load+0x130/0xfd0 security/selinux/selinuxfs.c:514 [] __vfs_write+0x103/0x680 fs/read_write.c:510 [] vfs_write+0x189/0x530 fs/read_write.c:560 [] SYSC_write fs/read_write.c:607 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:599 [] entry_SYSCALL_64_fastpath+0x29/0xe8 Mem-Info: active_anon:53878 inactive_anon:45 isolated_anon:0 active_file:3521 inactive_file:8320 isolated_file:0 unevictable:0 dirty:130 writeback:0 unstable:0 slab_reclaimable:5490 slab_unreclaimable:59858 mapped:24037 shmem:51 pagetables:643 bounce:0 free:1476476 free_pcp:510 free_cma:0 Node 0 active_anon:205160kB inactive_anon:180kB active_file:14084kB inactive_file:33292kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:96096kB dirty:520kB writeback:0kB shmem:204kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 75776kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2908 6410 6410 DMA32 free:2980084kB min:30592kB low:38240kB high:45888kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2980720kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:636kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 3501 3501 Normal free:2920504kB min:36824kB low:46028kB high:55232kB active_anon:205160kB inactive_anon:180kB active_file:14084kB inactive_file:33292kB unevictable:0kB writepending:520kB present:4718592kB managed:3585212kB mlocked:0kB slab_reclaimable:21960kB slab_unreclaimable:239468kB kernel_stack:5344kB pagetables:2496kB bounce:0kB free_pcp:1412kB local_pcp:700kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB DMA32: 3*4kB (M) 5*8kB (M) 4*16kB (M) 2*32kB (M) 3*64kB (M) 3*128kB (M) 2*256kB (M) 4*512kB (M) 1*1024kB (M) 1*2048kB (M) 726*4096kB (M) = 2980084kB Normal: 984*4kB (UME) 157*8kB (UME) 131*16kB (UME) 54*32kB (UME) 4*64kB (U) 10*128kB (UME) 7*256kB (UME) 4*512kB (ME) 22*1024kB (ME) 4*2048kB (UME) 702*4096kB (M) = 2920504kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11899 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965969 pages RAM 0 pages HighMem/MovableOnly 320509 pages reserved TCP: request_sock_TCPv6: Possible SYN flooding on port 20022. Sending cookies. Check SNMP counters. audit: type=1400 audit(1518418363.454:20): avc: denied { create } for pid=6230 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 mip6: mip6_rthdr_init_state: state's mode is not 2: 0 binder: 6290:6303 transaction failed 29189/-22, size 40-16 line 3004 binder_alloc: binder_alloc_mmap_handler: 6290 20000000-20002000 already mapped failed -16 mip6: mip6_rthdr_init_state: state's mode is not 2: 0 audit: type=1400 audit(1518418363.784:21): avc: denied { transfer } for pid=6290 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 binder: 6297:6302 unknown command 0 binder: 6297:6302 ioctl c0306201 20002fd0 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 6297:6317 ioctl 40046207 0 returned -16 binder_alloc: 6297: binder_alloc_buf, no vma binder: 6297:6324 transaction failed 29189/-3, size 0-0 line 3127 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 10, process died. binder: 6290:6311 got transaction with invalid offset (40, min 24 max 40) or object. binder: 6290:6311 transaction failed 29201/-22, size 40-16 line 3190 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 PF_BRIDGE: RTM_SETLINK with unknown ifindex audit: type=1400 audit(1518418363.924:22): avc: denied { setuid } for pid=6337 comm="syz-executor5" capability=7 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1518418364.044:23): avc: denied { create } for pid=6403 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_connector_socket permissive=1 audit: type=1400 audit(1518418364.104:24): avc: denied { ioctl } for pid=6401 comm="syz-executor7" path="socket:[16184]" dev="sockfs" ino=16184 ioctlcmd=0x8904 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 audit: type=1400 audit(1518418364.384:25): avc: denied { ioctl } for pid=6446 comm="syz-executor1" path="socket:[16221]" dev="sockfs" ino=16221 ioctlcmd=0x660b scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: type=1400 audit(1518418364.614:26): avc: denied { getattr } for pid=6531 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 audit: type=1401 audit(1518418364.614:27): op=setxattr invalid_context="/dev/binder#" binder: 6523:6536 transaction failed 29189/-22, size 0-0 line 3004 audit: type=1400 audit(1518418364.644:28): avc: denied { dac_override } for pid=6500 comm="syz-executor7" capability=1 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1518418364.644:29): avc: denied { net_admin } for pid=6525 comm="syz-executor4" capability=12 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 binder: 6523:6553 got reply transaction with no transaction stack binder: 6523:6553 transaction failed 29201/-71, size 0-0 line 2920 binder: 6523:6553 transaction failed 29189/-22, size 0-0 line 3004 binder: 6523:6553 got reply transaction with no transaction stack binder: 6523:6553 transaction failed 29201/-71, size 0-0 line 2920 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: 6621:6627 ioctl 5600 2000c000 returned -22 binder: 6619:6632 got transaction with invalid offset (40, min 0 max 0) or object. binder: 6619:6632 transaction failed 29201/-22, size 0-8 line 3190