binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29201 ====================================================== WARNING: possible circular locking dependency detected 4.15.0+ #298 Not tainted ------------------------------------------------------ syz-executor6/5743 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [<000000001209be25>] lock_sock include/net/sock.h:1463 [inline] (sk_lock-AF_INET){+.+.}, at: [<000000001209be25>] do_ip_setsockopt.isra.12+0x1d9/0x3210 net/ipv4/ip_sockglue.c:646 but task is already holding lock: (rtnl_mutex){+.+.}, at: [<00000000c5b6a689>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (rtnl_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 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+0x218/0x350 net/ipv4/netfilter/ip_tables.c:654 __do_replace+0x79d/0xa50 net/ipv4/netfilter/ip_tables.c:1089 do_replace net/ipv4/netfilter/ip_tables.c:1145 [inline] do_ipt_set_ctl+0x40f/0x5f0 net/ipv4/netfilter/ip_tables.c:1675 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:1259 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2905 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b -> #1 (&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:1041 xt_request_find_table_lock+0x28/0xc0 net/netfilter/x_tables.c:1088 get_info+0x154/0x690 net/ipv6/netfilter/ip6_tables.c:989 do_ipt_get_ctl+0x159/0xac0 net/ipv4/netfilter/ip_tables.c:1699 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x6a/0xc0 net/netfilter/nf_sockopt.c:122 ip_getsockopt+0x15c/0x220 net/ipv4/ip_sockglue.c:1571 tcp_getsockopt+0x82/0xd0 net/ipv4/tcp.c:3359 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2934 SYSC_getsockopt net/socket.c:1880 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1862 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b -> #0 (sk_lock-AF_INET){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 lock_sock_nested+0xc2/0x110 net/core/sock.c:2777 lock_sock include/net/sock.h:1463 [inline] do_ip_setsockopt.isra.12+0x1d9/0x3210 net/ipv4/ip_sockglue.c:646 ip_setsockopt+0x3a/0xa0 net/ipv4/ip_sockglue.c:1252 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4104 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 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: sk_lock-AF_INET --> &xt[i].mutex --> rtnl_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rtnl_mutex); lock(&xt[i].mutex); lock(rtnl_mutex); lock(sk_lock-AF_INET); *** DEADLOCK *** 1 lock held by syz-executor6/5743: #0: (rtnl_mutex){+.+.}, at: [<00000000c5b6a689>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 stack backtrace: CPU: 1 PID: 5743 Comm: syz-executor6 Not tainted 4.15.0+ #298 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 lock_sock_nested+0xc2/0x110 net/core/sock.c:2777 lock_sock include/net/sock.h:1463 [inline] do_ip_setsockopt.isra.12+0x1d9/0x3210 net/ipv4/ip_sockglue.c:646 ip_setsockopt+0x3a/0xa0 net/ipv4/ip_sockglue.c:1252 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4104 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fee3397cc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000030 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000000519 R08: 00000000000001a8 R09: 0000000000000000 R10: 000000002039be58 R11: 0000000000000212 R12: 00000000006f6af8 R13: 00000000ffffffff R14: 00007fee3397d6d4 R15: 0000000000000000 syz-executor5 uses obsolete (PF_INET,SOCK_PACKET) SELinux: unrecognized netlink message: protocol=0 nlmsg_type=54932 sclass=netlink_route_socket pig=5845 comm=syz-executor1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=54932 sclass=netlink_route_socket pig=5845 comm=syz-executor1 capability: warning: `syz-executor3' uses 32-bit capabilities (legacy support in use) IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 binder: 6014:6018 unknown command 0 binder: 6014:6018 ioctl c0306201 20012000 returned -22 binder: 6014:6018 Release 1 refcount change on invalid ref 0 ret -22 binder: 6014:6030 unknown command 0 binder: 6014:6030 ioctl c0306201 20012000 returned -22 binder: 6014:6030 Release 1 refcount change on invalid ref 0 ret -22 QAT: Invalid ioctl QAT: Invalid ioctl x_tables: ip6_tables: .0 target: invalid size 8 (kernel) != (user) 0 x_tables: ip6_tables: .0 target: invalid size 8 (kernel) != (user) 0 netlink: 'syz-executor5': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 3 has an invalid length. netlink: 'syz-executor5': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 3 has an invalid length. kauditd_printk_skb: 11 callbacks suppressed audit: type=1401 audit(1517907274.277:38): op=fscreate invalid_context=A64AE90D9D2892ACAF142F7FB1A7155CF5E264BEC19D91E9ED6A745F492AD55B776542DBC6AD37DC1376D822F41DCA817E7FB6D7D99D7442B94C996ABE6366C5BD1CA1279318C2 can: request_module (can-proto-3) failed. can: request_module (can-proto-3) failed. audit: type=1401 audit(1517907274.327:39): op=fscreate invalid_context=A64AE90D9D2892ACAF142F7FB1A7155CF5E264BEC19D91E9ED6A745F492AD55B776542DBC6AD37DC1376D822F41DCA817E7FB6D7D99D7442B94C996ABE6366C5BD1CA1279318C2 openvswitch: netlink: ufid size 56 bytes exceeds the range (1, 16) openvswitch: netlink: Flow set message rejected, Key attribute missing. openvswitch: netlink: ufid size 56 bytes exceeds the range (1, 16) openvswitch: netlink: Flow set message rejected, Key attribute missing. mmap: syz-executor7 (6343) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. audit: type=1400 audit(1517907274.774:40): avc: denied { read } for pid=6339 comm="syz-executor0" path="socket:[16550]" dev="sockfs" ino=16550 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 device eql entered promiscuous mode audit: type=1400 audit(1517907276.383:41): avc: denied { setopt } for pid=6721 comm="syz-executor3" 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 QAT: Invalid ioctl QAT: Invalid ioctl audit: type=1400 audit(1517907276.648:42): avc: denied { map } for pid=6815 comm="syz-executor2" path="/65/file0/bus" dev="ramfs" ino=17656 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ramfs_t:s0 tclass=file permissive=1 Cannot find add_set index 0 as target Cannot find add_set index 0 as target dccp_close: ABORT with 4294967275 bytes unread audit: type=1400 audit(1517907277.550:43): avc: denied { map } for pid=7050 comm="syz-executor4" path="/dev/binder0" dev="devtmpfs" ino=1102 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 binder: 7050:7056 BC_FREE_BUFFER u00000000204edf8a no match audit: type=1400 audit(1517907277.552:44): avc: denied { call } for pid=7050 comm="syz-executor4" 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(1517907277.552:45): avc: denied { transfer } for pid=7050 comm="syz-executor4" 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: BINDER_SET_CONTEXT_MGR already set binder_alloc: binder_alloc_mmap_handler: 7050 20000000-20002000 already mapped failed -16 binder: 7050:7056 ioctl 40046207 0 returned -16 binder: release 7050:7056 transaction 6 out, still active binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 6, target dead FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 device syz1 entered promiscuous mode CPU: 0 PID: 7098 Comm: syz-executor0 Not tainted 4.15.0+ #298 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_failslab+0xec/0x120 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3539 dst_alloc+0x11f/0x1a0 net/core/dst.c:104 rt_dst_alloc+0xe9/0x520 net/ipv4/route.c:1497 __mkroute_output net/ipv4/route.c:2239 [inline] ip_route_output_key_hash_rcu+0xa59/0x2f00 net/ipv4/route.c:2467 ip_route_output_key_hash+0x20b/0x370 net/ipv4/route.c:2296 __ip_route_output_key include/net/route.h:125 [inline] ip_route_output_flow+0x26/0xa0 net/ipv4/route.c:2550 raw_sendmsg+0xcca/0x26b0 net/ipv4/raw.c:653 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 SYSC_sendto+0x361/0x5c0 net/socket.c:1747 SyS_sendto+0x40/0x50 net/socket.c:1715 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fb225bdec58 EFLAGS: 00000212 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000000 RSI: 00000000200f8fff RDI: 0000000000000013 RBP: 00000000000004b9 R08: 0000000020001000 R09: 0000000000000010 R10: 0000000020000810 R11: 0000000000000212 R12: 00000000006f61f8 R13: 0000000000000014 R14: 00007fb225bdf6d4 R15: ffffffffffffffff device syz1 left promiscuous mode mip6: mip6_rthdr_init_state: spi is not 0: 3708026880 dccp_close: ABORT with 4294967275 bytes unread audit: type=1400 audit(1517907278.688:46): avc: denied { getopt } for pid=7272 comm="syz-executor4" 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 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device syz7 entered promiscuous mode irq bypass consumer (token 00000000a2535864) registration fails: -16 audit: type=1400 audit(1517907279.511:47): avc: denied { map } for pid=7530 comm="syz-executor7" path="/selinux/status" dev="selinuxfs" ino=19 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:security_t:s0 tclass=file permissive=1 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 7537 Comm: syz-executor6 Not tainted 4.15.0+ #298 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_failslab+0xec/0x120 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3539 kmem_cache_zalloc include/linux/slab.h:691 [inline] locks_alloc_lock+0x86/0x260 fs/locks.c:312 fcntl_setlk+0xc7/0x1100 fs/locks.c:2250 do_fcntl+0x77b/0x1150 fs/fcntl.c:370 SYSC_fcntl fs/fcntl.c:463 [inline] SyS_fcntl+0xd6/0x110 fs/fcntl.c:448 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fee3397cc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000048 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000020003fe0 RSI: 0000000000000026 RDI: 0000000000000014 RBP: 000000000000008e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006efdf0 R13: 0000000000000015 R14: 00007fee3397d6d4 R15: ffffffffffffffff FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 7586 Comm: syz-executor6 Not tainted 4.15.0+ #298 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_failslab+0xec/0x120 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3539 kmem_cache_zalloc include/linux/slab.h:691 [inline] locks_alloc_lock+0x86/0x260 fs/locks.c:312 posix_lock_inode+0x52c/0x20c0 fs/locks.c:1022 posix_lock_file fs/locks.c:1229 [inline] vfs_lock_file+0x145/0x190 fs/locks.c:2200 do_lock_file_wait+0x10d/0x280 fs/locks.c:2214 fcntl_setlk+0x770/0x1100 fs/locks.c:2301 do_fcntl+0x77b/0x1150 fs/fcntl.c:370 SYSC_fcntl fs/fcntl.c:463 [inline] SyS_fcntl+0xd6/0x110 fs/fcntl.c:448 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fee3397cc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000048 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000020003fe0 RSI: 0000000000000026 RDI: 0000000000000014 RBP: 000000000000008e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006efdf0 R13: 0000000000000015 R14: 00007fee3397d6d4 R15: ffffffffffffffff FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 7613 Comm: syz-executor6 Not tainted 4.15.0+ #298 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_failslab+0xec/0x120 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3539 kmem_cache_zalloc include/linux/slab.h:691 [inline] locks_alloc_lock+0x86/0x260 fs/locks.c:312 posix_lock_inode+0x538/0x20c0 fs/locks.c:1023 posix_lock_file fs/locks.c:1229 [inline] vfs_lock_file+0x145/0x190 fs/locks.c:2200 do_lock_file_wait+0x10d/0x280 fs/locks.c:2214 fcntl_setlk+0x770/0x1100 fs/locks.c:2301 do_fcntl+0x77b/0x1150 fs/fcntl.c:370 SYSC_fcntl fs/fcntl.c:463 [inline] SyS_fcntl+0xd6/0x110 fs/fcntl.c:448 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fee3397cc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000048 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000020003fe0 RSI: 0000000000000026 RDI: 0000000000000014 RBP: 000000000000008e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006efdf0 R13: 0000000000000015 R14: 00007fee3397d6d4 R15: ffffffffffffffff TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies. Check SNMP counters.