BUG: sleeping function called from invalid context at net/core/sock.c:2772 in_atomic(): 1, irqs_disabled(): 0, pid: 5, name: kworker/u4:0 5 locks held by kworker/u4:0/5: #0: ((wq_completion)"%s""netns"){+.+.}, at: [<000000007ff6a0a8>] process_one_work+0xaaf/0x1af0 kernel/workqueue.c:2084 device bridge0 entered promiscuous mode #1: (net_cleanup_work){+.+.}, at: [<00000000dae60ac0>] process_one_work+0xb01/0x1af0 kernel/workqueue.c:2088 #2: (net_sem){++++}, at: [<000000000674aedb>] cleanup_net+0x23f/0xd20 net/core/net_namespace.c:494 #3: (net_mutex){+.+.}, at: [<00000000c67bad36>] cleanup_net+0xa7d/0xd20 net/core/net_namespace.c:496 #4: (&(&srv->idr_lock)->rlock){+...}, at: [<00000000bdab8e37>] spin_lock_bh include/linux/spinlock.h:315 [inline] #4: (&(&srv->idr_lock)->rlock){+...}, at: [<00000000bdab8e37>] tipc_topsrv_stop+0x231/0x610 net/tipc/topsrv.c:685 syz-executor4 uses obsolete (PF_INET,SOCK_PACKET) CPU: 1 PID: 5 Comm: kworker/u4:0 Not tainted 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6128 __might_sleep+0x95/0x190 kernel/sched/core.c:6081 lock_sock_nested+0x37/0x110 net/core/sock.c:2772 lock_sock include/net/sock.h:1463 [inline] tipc_release+0x103/0xff0 net/tipc/socket.c:572 sock_release+0x8d/0x1e0 net/socket.c:594 tipc_topsrv_stop+0x3c0/0x610 net/tipc/topsrv.c:696 tipc_exit_net+0x15/0x40 net/tipc/core.c:96 ops_exit_list.isra.6+0xae/0x150 net/core/net_namespace.c:148 cleanup_net+0x6ba/0xd20 net/core/net_namespace.c:529 process_one_work+0xbbf/0x1af0 kernel/workqueue.c:2113 worker_thread+0x223/0x1990 kernel/workqueue.c:2247 kthread+0x33c/0x400 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:429 device bridge0 left promiscuous mode audit: type=1400 audit(1519097053.332:21): avc: denied { map_read map_write } for pid=5426 comm="syz-executor7" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 ip6t_REJECT: ECHOREPLY is not supported. ip6t_REJECT: ECHOREPLY is not supported. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7928 sclass=netlink_route_socket pig=5461 comm=syz-executor3 netlink: 'syz-executor6': attribute type 15 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7928 sclass=netlink_route_socket pig=5461 comm=syz-executor3 xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables ====================================================== WARNING: possible circular locking dependency detected 4.16.0-rc1+ #232 Tainted: G W ------------------------------------------------------ syz-executor3/5525 is trying to acquire lock: (rtnl_mutex){+.+.}, at: [<000000009c2eb75c>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 but task is already holding lock: (&xt[i].mutex){+.+.}, at: [<000000009d0c54fd>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1046 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&xt[i].mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1046 xt_request_find_table_lock+0x28/0xc0 net/netfilter/x_tables.c:1093 get_info+0x154/0x690 net/ipv6/netfilter/ip6_tables.c:989 do_ip6t_get_ctl+0x159/0xaf0 net/ipv6/netfilter/ip6_tables.c:1710 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x6a/0xc0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt+0x1df/0x2e0 net/ipv6/ipv6_sockglue.c:1371 tcp_getsockopt+0x82/0xd0 net/ipv4/tcp.c:3359 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2938 SYSC_getsockopt net/socket.c:1881 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1863 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b -> #1 (sk_lock-AF_INET6){+.+.}: lock_sock_nested+0xc2/0x110 net/core/sock.c:2781 lock_sock include/net/sock.h:1463 [inline] do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 net/ipv6/ipv6_sockglue.c:167 ipv6_setsockopt+0xd7/0x130 net/ipv6/ipv6_sockglue.c:922 rawv6_setsockopt+0x4a/0xf0 net/ipv6/raw.c:1060 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b -> #0 (rtnl_mutex){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 unregister_netdevice_notifier+0x91/0x4e0 net/core/dev.c:1673 tee_tg_destroy+0x61/0xc0 net/netfilter/xt_TEE.c:123 cleanup_entry+0x242/0x380 net/ipv6/netfilter/ip6_tables.c:673 __do_replace+0x7ac/0xa70 net/ipv6/netfilter/ip6_tables.c:1108 do_replace net/ipv6/netfilter/ip6_tables.c:1164 [inline] do_ip6t_set_ctl+0x40f/0x5f0 net/ipv6/netfilter/ip6_tables.c:1686 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x10b/0x130 net/ipv6/ipv6_sockglue.c:927 udpv6_setsockopt+0x45/0x80 net/ipv6/udp.c:1422 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b other info that might help us debug this: Chain exists of: rtnl_mutex --> sk_lock-AF_INET6 --> &xt[i].mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&xt[i].mutex); lock(sk_lock-AF_INET6); lock(&xt[i].mutex); lock(rtnl_mutex); *** DEADLOCK *** 1 lock held by syz-executor3/5525: #0: (&xt[i].mutex){+.+.}, at: [<000000009d0c54fd>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1046 stack backtrace: CPU: 0 PID: 5525 Comm: syz-executor3 Tainted: G W 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_circular_bug.isra.38+0x2cd/0x2dc kernel/locking/lockdep.c:1223 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x30a8/0x3e00 kernel/locking/lockdep.c:3431 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 unregister_netdevice_notifier+0x91/0x4e0 net/core/dev.c:1673 tee_tg_destroy+0x61/0xc0 net/netfilter/xt_TEE.c:123 cleanup_entry+0x242/0x380 net/ipv6/netfilter/ip6_tables.c:673 __do_replace+0x7ac/0xa70 net/ipv6/netfilter/ip6_tables.c:1108 do_replace net/ipv6/netfilter/ip6_tables.c:1164 [inline] do_ip6t_set_ctl+0x40f/0x5f0 net/ipv6/netfilter/ip6_tables.c:1686 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x10b/0x130 net/ipv6/ipv6_sockglue.c:927 udpv6_setsockopt+0x45/0x80 net/ipv6/udp.c:1422 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453da9 RSP: 002b:00007fd61a75cc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fd61a75d6d4 RCX: 0000000000453da9 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000015 RBP: 000000000072bea0 R08: 00000000000002b7 R09: 0000000000000000 R10: 0000000020cd8000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004d5 R14: 00000000006f7498 R15: 0000000000000000 sctp: [Deprecated]: syz-executor2 (pid 5589) Use of int in max_burst socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor2 (pid 5589) Use of int in max_burst socket option. Use struct sctp_assoc_value instead IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready can: request_module (can-proto-6) failed. can: request_module (can-proto-6) failed. sctp: [Deprecated]: syz-executor0 (pid 5759) Use of int in maxseg socket option. Use struct sctp_assoc_value instead xt_connbytes: Forcing CT accounting to be enabled sctp: [Deprecated]: syz-executor0 (pid 5776) Use of int in maxseg socket option. Use struct sctp_assoc_value instead device bridge0 entered promiscuous mode syz-executor6 (5921) used greatest stack depth: 15344 bytes left device bridge0 left promiscuous mode x_tables: ip_tables: rpfilter match: used from hooks PREROUTING/OUTPUT, but only valid from PREROUTING kernel msg: ebtables bug: please report to author: Couldn't copy entries from userspace kernel msg: ebtables bug: please report to author: Couldn't copy entries from userspace netlink: 7 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 'syz-executor2': attribute type 15 has an invalid length. netlink: 7 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 'syz-executor2': attribute type 15 has an invalid length. xt_HL: invalid or unknown mode 3 xt_HL: invalid or unknown mode 3 kernel msg: ebtables bug: please report to author: Valid hook without chain netlink: 3 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor2'. kernel msg: ebtables bug: please report to author: Valid hook without chain xt_CT: No such helper "snmp" xt_CT: No such helper "snmp" netlink: 'syz-executor0': attribute type 2 has an invalid length. x_tables: ip6_tables: socket match: used from hooks PREROUTING/OUTPUT, but only valid from PREROUTING/INPUT x_tables: ip6_tables: socket match: used from hooks PREROUTING/OUTPUT, but only valid from PREROUTING/INPUT SELinux: unrecognized netlink message: protocol=0 nlmsg_type=39 sclass=netlink_route_socket pig=6520 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=39 sclass=netlink_route_socket pig=6520 comm=syz-executor2 kernel msg: ebtables bug: please report to author: Valid hook without chain kauditd_printk_skb: 18 callbacks suppressed audit: type=1400 audit(1519097056.964:40): avc: denied { net_broadcast } for pid=6595 comm="syz-executor7" capability=11 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 xt_connbytes: Forcing CT accounting to be enabled xt_connbytes: Forcing CT accounting to be enabled mapping of prio or/and queue is allowed only from OUTPUT/FORWARD/POSTROUTING chains mapping of prio or/and queue is allowed only from OUTPUT/FORWARD/POSTROUTING chains SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=6687 comm=syz-executor4 ipt_ECN: unsupported ECN operation 3 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=6694 comm=syz-executor4 ipt_ECN: unsupported ECN operation 3 openvswitch: netlink: Either Ethernet header or EtherType is required. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 'syz-executor5': attribute type 1 has an invalid length. x_tables: ip6_tables: rpfilter match: used from hooks PREROUTING/INPUT/FORWARD/OUTPUT/POSTROUTING, but only valid from PREROUTING netlink: 'syz-executor5': attribute type 1 has an invalid length. x_tables: ip6_tables: MASQUERADE target: used from hooks OUTPUT, but only usable from POSTROUTING audit: type=1400 audit(1519097057.637:41): avc: denied { relabelto } for pid=6893 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:wtmp_t:s0 tclass=packet permissive=1 x_tables: ip6_tables: rpfilter match: used from hooks PREROUTING/INPUT/FORWARD/OUTPUT/POSTROUTING, but only valid from PREROUTING x_tables: ip6_tables: MASQUERADE target: used from hooks OUTPUT, but only usable from POSTROUTING xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables netlink: 28 bytes leftover after parsing attributes in process `syz-executor0'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=14668 sclass=netlink_route_socket pig=7004 comm=syz-executor6 netlink: 'syz-executor1': attribute type 1 has an invalid length. audit: type=1400 audit(1519097057.979:42): avc: denied { relabelto } for pid=7031 comm="syz-executor2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mouse_device_t:s0 tclass=packet permissive=1 netlink: 'syz-executor1': attribute type 1 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=14668 sclass=netlink_route_socket pig=7028 comm=syz-executor6 netlink: 'syz-executor2': attribute type 21 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1555 sclass=netlink_route_socket pig=7107 comm=syz-executor2 netlink: 'syz-executor2': attribute type 21 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1555 sclass=netlink_route_socket pig=7137 comm=syz-executor2 netlink: 2 bytes leftover after parsing attributes in process `syz-executor0'. audit: type=1400 audit(1519097058.368:43): avc: denied { accept } for pid=7146 comm="syz-executor5" 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: 2 bytes leftover after parsing attributes in process `syz-executor0'. kernel msg: ebtables bug: please report to author: Unknown flag for inv bitmask openvswitch: netlink: Flow key attr not present in new flow. openvswitch: netlink: Flow key attr not present in new flow. openvswitch: netlink: ct_state flags ffffffff unsupported openvswitch: netlink: ct_state flags ffffffff unsupported audit: type=1400 audit(1519097058.921:44): avc: denied { create } for pid=7353 comm="syz-executor6" 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(1519097058.934:45): avc: denied { write } for pid=7353 comm="syz-executor6" 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 x_tables: ip6_tables: SNAT target: used from hooks OUTPUT, but only usable from INPUT/POSTROUTING x_tables: ip6_tables: SNAT target: used from hooks OUTPUT, but only usable from INPUT/POSTROUTING audit: type=1400 audit(1519097059.232:46): avc: denied { map } for pid=7471 comm="syz-executor6" path="socket:[19547]" dev="sockfs" ino=19547 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=packet_socket permissive=1 xt_connbytes: Forcing CT accounting to be enabled device syz4 entered promiscuous mode device syz4 left promiscuous mode device syz4 entered promiscuous mode device syz4 left promiscuous mode netlink: 40 bytes leftover after parsing attributes in process `syz-executor4'. sctp: [Deprecated]: syz-executor5 (pid 7639) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 7662) Use of int in maxseg socket option. Use struct sctp_assoc_value instead syz-executor3: vmalloc: allocation failure: 17179869096 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor3 cpuset=/ mems_allowed=0 selinux_nlmsg_perm: 2 callbacks suppressed SELinux: unrecognized netlink message: protocol=0 nlmsg_type=41441 sclass=netlink_route_socket pig=7686 comm=syz-executor2 CPU: 1 PID: 7679 Comm: syz-executor3 Tainted: G W 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=41441 sclass=netlink_route_socket pig=7686 comm=syz-executor2 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 warn_alloc+0x19a/0x2b0 mm/page_alloc.c:3306 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:428 kvmalloc include/linux/mm.h:541 [inline] kvmalloc_array include/linux/mm.h:557 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:779 translate_table+0x2e0/0x1dd0 net/ipv4/netfilter/arp_tables.c:533 do_replace net/ipv4/netfilter/arp_tables.c:981 [inline] do_arpt_set_ctl+0x394/0x8d0 net/ipv4/netfilter/arp_tables.c:1458 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0x97/0xa0 net/ipv4/ip_sockglue.c:1261 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453da9 RSP: 002b:00007fd61a75cc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fd61a75d6d4 RCX: 0000000000453da9 RDX: 0000000000000060 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 00000000000002c0 R09: 0000000000000000 R10: 0000000020f20c80 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004d6 R14: 00000000006f74b0 R15: 0000000000000000 Mem-Info: active_anon:50409 inactive_anon:64 isolated_anon:0 active_file:3471 inactive_file:8468 isolated_file:0 unevictable:0 dirty:6553 writeback:0 unstable:0 slab_reclaimable:8416 slab_unreclaimable:86058 mapped:24241 shmem:70 pagetables:638 bounce:0 free:1446476 free_pcp:471 free_cma:0 Node 0 active_anon:201636kB inactive_anon:256kB active_file:13884kB inactive_file:33872kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:96964kB dirty:26212kB writeback:0kB shmem:280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 86016kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no syz-executor3: vmalloc: allocation failure: 17179869096 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) Node 0 DMA free:15908kB min:164kB low:204kB high:244kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: syz-executor3 cpuset=/ 0 mems_allowed=0 2868 CPU: 0 PID: 7695 Comm: syz-executor3 Tainted: G W 4.16.0-rc1+ #232 6378 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 6378 warn_alloc+0x19a/0x2b0 mm/page_alloc.c:3306 Node 0 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 DMA32 free:2939232kB min:30316kB low:37892kB high:45468kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2939940kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:708kB local_pcp:664kB free_cma:0kB lowmem_reserve[]: 0 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:428 0 kvmalloc include/linux/mm.h:541 [inline] kvmalloc_array include/linux/mm.h:557 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:779 translate_table+0x2e0/0x1dd0 net/ipv4/netfilter/arp_tables.c:533 3510 3510 Node 0 do_replace net/ipv4/netfilter/arp_tables.c:981 [inline] do_arpt_set_ctl+0x394/0x8d0 net/ipv4/netfilter/arp_tables.c:1458 Normal free:2830764kB min:37100kB low:46372kB high:55644kB active_anon:201636kB inactive_anon:256kB active_file:13884kB inactive_file:33872kB unevictable:0kB writepending:26212kB present:4718592kB managed:3594328kB mlocked:0kB kernel_stack:4160kB pagetables:2552kB bounce:0kB free_pcp:1152kB local_pcp:564kB free_cma:0kB lowmem_reserve[]: 0 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 0 ip_setsockopt+0x97/0xa0 net/ipv4/ip_sockglue.c:1261 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870 0 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 0 Node 0 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 DMA: 1*4kB (U) entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453da9 RSP: 002b:00007fd61a71ac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 0*8kB RAX: ffffffffffffffda RBX: 00007fd61a71b6d4 RCX: 0000000000453da9 RDX: 0000000000000060 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 000000000072c010 R08: 00000000000002c0 R09: 0000000000000000 R10: 0000000020f20c80 R11: 0000000000000246 R12: 00000000ffffffff 0*16kB R13: 00000000000004d6 R14: 00000000006f74b0 R15: 0000000000000002 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 2*4kB (M) 3*8kB (M) 2*16kB (M) 3*32kB (M) 3*64kB (M) 2*128kB (M) 1*256kB (M) 3*512kB (M) 2*1024kB (M) 1*2048kB (M) 716*4096kB (M) = 2939232kB Node 0 Normal: 153*4kB (UM) 106*8kB (UM) 709*16kB (UM) 470*32kB (UME) 231*64kB (UM) 62*128kB (UE) 23*256kB (UME) 9*512kB (UE) 61*1024kB (UM) 4*2048kB (ME) 659*4096kB (UM) = 2830980kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 12015 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 328425 pages reserved TCP: request_sock_TCPv6: Possible SYN flooding on port 20022. Sending cookies. Check SNMP counters. SELinux: unrecognized netlink message: protocol=9 nlmsg_type=61120 sclass=netlink_audit_socket pig=7700 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=61120 sclass=netlink_audit_socket pig=7749 comm=syz-executor7 BUG: sleeping function called from invalid context at mm/slab.h:420 netlink: 'syz-executor1': attribute type 1 has an invalid length. in_atomic(): 1, irqs_disabled(): 0, pid: 7763, name: syz-executor3 netlink: 'syz-executor1': attribute type 1 has an invalid length. INFO: lockdep is turned off. CPU: 0 PID: 7763 Comm: syz-executor3 Tainted: G W 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6128 __might_sleep+0x95/0x190 kernel/sched/core.c:6081 slab_pre_alloc_hook mm/slab.h:420 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc_trace+0x299/0x740 mm/slab.c:3605 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] rds_loop_conn_alloc+0xc8/0x380 net/rds/loop.c:126 __rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309 rds_sendmsg+0xe63/0x2550 net/rds/send.c:1153 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xca/0x110 net/socket.c:639 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2047 __sys_sendmsg+0xe5/0x210 net/socket.c:2081 SYSC_sendmsg net/socket.c:2092 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2088 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453da9 RSP: 002b:00007fd61a75cc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fd61a75d6d4 RCX: 0000000000453da9 RDX: 0000000000000000 RSI: 000000002000dfc8 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004b5 R14: 00000000006f7198 R15: 0000000000000000 bridge0: port 1(syz5) entered blocking state bridge0: port 1(syz5) entered disabled state device syz5 entered promiscuous mode bridge0: port 1(syz5) entered blocking state bridge0: port 1(syz5) entered forwarding state IPv6: ADDRCONF(NETDEV_CHANGE): bridge0: link becomes ready x_tables: ip_tables: socket match: used from hooks INPUT/FORWARD, but only valid from PREROUTING/INPUT x_tables: ip_tables: socket match: used from hooks INPUT/FORWARD, but only valid from PREROUTING/INPUT syz-executor1 (7972) used greatest stack depth: 14160 bytes left FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 7989 Comm: syz-executor0 Tainted: G W 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:2955 [inline] prepare_alloc_pages mm/page_alloc.c:4194 [inline] __alloc_pages_nodemask+0x327/0xdd0 mm/page_alloc.c:4233 alloc_pages_current+0xb6/0x1e0 mm/mempolicy.c:2055 alloc_pages include/linux/gfp.h:492 [inline] skb_page_frag_refill+0x358/0x5f0 net/core/sock.c:2212 tun_build_skb.isra.50+0x2f0/0x1850 drivers/net/tun.c:1632 tun_get_user+0x17d0/0x3940 drivers/net/tun.c:1803 tun_chr_write_iter+0xbd/0x1c0 drivers/net/tun.c:1989 call_write_iter include/linux/fs.h:1781 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653 do_iter_write+0x154/0x540 fs/read_write.c:932 vfs_writev+0x18a/0x340 fs/read_write.c:977 do_writev+0xfc/0x2a0 fs/read_write.c:1012 SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453c81 RSP: 002b:00007f99e255cba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000000036 RCX: 0000000000453c81 RDX: 0000000000000001 RSI: 00007f99e255cbf0 RDI: 0000000000000012 RBP: 0000000020af0000 R08: 0000000000000012 R09: 0000000000000000 R10: 0000000000000036 R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000610 R14: 00000000006f9220 R15: 0000000000000000 xt_SECMARK: target only valid in the 'mangle' or 'security' tables, not 'broute'. xt_SECMARK: target only valid in the 'mangle' or 'security' tables, not 'broute'. TCP: request_sock_TCPv6: Possible SYN flooding on port 20014. Sending cookies. Check SNMP counters. nla_parse: 1 callbacks suppressed netlink: 8 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 'syz-executor1': attribute type 20 has an invalid length. netlink: 'syz-executor1': attribute type 20 has an invalid length.