=============================
WARNING: suspicious RCU usage
4.15.0+ #222 Not tainted
syz-executor5: vmalloc: allocation failure: 17178296320 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
-----------------------------
syz-executor5 cpuset=
./include/linux/rcupdate.h:302 Illegal context switch in RCU read-side critical section!
/
other info that might help us debug this:
mems_allowed=0
rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor4/5953:
CPU: 0 PID: 5955 Comm: syz-executor5 Not tainted 4.15.0+ #222
#0:
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
(
warn_alloc+0x19a/0x2b0 mm/page_alloc.c:3306
rcu_read_lock
){....}
, at: [<0000000072a5383e>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218
__vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775
stack backtrace:
__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+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:699
do_replace net/ipv6/netfilter/ip6_tables.c:1160 [inline]
do_ip6t_set_ctl+0x370/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
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
RIP: 0033:0x453a59
RSP: 002b:00007fd7139c7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fd7139c86d4 RCX: 0000000000453a59
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013
RBP: 000000000071bea0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020001fde R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000508 R14: 00000000006f7960 R15: 0000000000000000
CPU: 1 PID: 5953 Comm: syz-executor4 Not tainted 4.15.0+ #222
Mem-Info:
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
active_anon:59060 inactive_anon:63 isolated_anon:0
active_file:3450 inactive_file:8420 isolated_file:0
unevictable:0 dirty:6311 writeback:0 unstable:0
slab_reclaimable:6999 slab_unreclaimable:92283
mapped:24231 shmem:70 pagetables:731 bounce:0
free:1433937 free_pcp:321 free_cma:0
lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4592
Node 0 active_anon:236240kB inactive_anon:252kB active_file:13800kB inactive_file:33680kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:96924kB dirty:25244kB writeback:0kB shmem:280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 110592kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
rcu_preempt_sleep_check include/linux/rcupdate.h:301 [inline]
___might_sleep+0x385/0x470 kernel/sched/core.c:6093
Node 0
__might_sleep+0x95/0x190 kernel/sched/core.c:6081
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
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
lowmem_reserve[]:
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
0
2868
__rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227
6378
6378
Node 0
DMA32 free:2939236kB 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:2939944kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:708kB local_pcp:708kB free_cma:0kB
lowmem_reserve[]:
0
rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309
0
rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126
3510
3510
Node 0
Normal free:2780604kB min:37100kB low:46372kB high:55644kB active_anon:236240kB inactive_anon:252kB active_file:13800kB inactive_file:33680kB unevictable:0kB writepending:25244kB present:4718592kB managed:3594328kB mlocked:0kB kernel_stack:4384kB pagetables:2924kB bounce:0kB free_pcp:576kB local_pcp:340kB free_cma:0kB
lowmem_reserve[]:
sock_sendmsg_nosec net/socket.c:630 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:640
SYSC_sendto+0x361/0x5c0 net/socket.c:1747
0
0
0
0
SyS_sendto+0x40/0x50 net/socket.c:1715
do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
Node 0
DMA:
1*4kB
entry_SYSCALL_64_after_hwframe+0x26/0x9b
(U)
RIP: 0033:0x453a59
RSP: 002b:00007f8067f6ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f8067f6f6d4 RCX: 0000000000453a59
RDX: 0000000000000000 RSI: 0000000020ea8000 RDI: 0000000000000013
0*8kB
RBP: 000000000071bea0 R08: 0000000020dfcff0 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004b9 R14: 00000000006f71f8 R15: 0000000000000000
BUG: sleeping function called from invalid context at mm/slab.h:420
0*16kB
in_atomic(): 1, irqs_disabled(): 0, pid: 5953, name: syz-executor4
1 lock held by syz-executor4/5953:
1*32kB
#0: (
(U)
rcu_read_lock){....}
2*64kB (U) 1*128kB (U) 1*256kB (U)
, at: [<0000000072a5383e>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218
CPU: 1 PID: 5953 Comm: syz-executor4 Not tainted 4.15.0+ #222
0*512kB
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
1*1024kB
___might_sleep+0x2b2/0x470 kernel/sched/core.c:6128
(U)
1*2048kB
__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
(M)
3*4096kB
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
(M)
= 15908kB
__rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227
Node 0
DMA32:
5*4kB
(M)
4*8kB
(M)
3*16kB
(M)
rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309
rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126
4*32kB
(M)
2*64kB
(M)
2*128kB
(M)
sock_sendmsg_nosec net/socket.c:630 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:640
SYSC_sendto+0x361/0x5c0 net/socket.c:1747
1*256kB
(M)
3*512kB
(M)
SyS_sendto+0x40/0x50 net/socket.c:1715
2*1024kB
do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
(M)
1*2048kB
(M)
entry_SYSCALL_64_after_hwframe+0x26/0x9b
716*4096kB
RIP: 0033:0x453a59
RSP: 002b:00007f8067f6ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f8067f6f6d4 RCX: 0000000000453a59
RDX: 0000000000000000 RSI: 0000000020ea8000 RDI: 0000000000000013
(M)
RBP: 000000000071bea0 R08: 0000000020dfcff0 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004b9 R14: 00000000006f71f8 R15: 0000000000000000
syz-executor5: vmalloc: allocation failure: 17178296320 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
= 2939236kB
Node 0 Normal: 484*4kB (UME) 1318*8kB (UME) 1201*16kB (UE) 230*32kB (UME) 25*64kB (UME) 14*128kB (UME)
syz-executor5 cpuset=
16*256kB (UME)
/
30*512kB
mems_allowed=0
(UME) 73*1024kB
CPU: 1 PID: 5995 Comm: syz-executor5 Tainted: G W 4.15.0+ #222
(UM)
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
1*2048kB
warn_alloc+0x19a/0x2b0 mm/page_alloc.c:3306
(E)
642*4096kB
(M)
__vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775
= 2768336kB
__vmalloc_node mm/vmalloc.c:1804 [inline]
__vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
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
11939 total pagecache pages
translate_table+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:699
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
do_replace net/ipv6/netfilter/ip6_tables.c:1160 [inline]
do_ip6t_set_ctl+0x370/0x5f0 net/ipv6/netfilter/ip6_tables.c:1686
Total swap = 0kB
1965969 pages RAM
nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115
0 pages HighMem/MovableOnly
ipv6_setsockopt+0x10b/0x130 net/ipv6/ipv6_sockglue.c:927
tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2905
328424 pages reserved
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:0x453a59
RSP: 002b:00007fd713943c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fd7139446d4 RCX: 0000000000453a59
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013
RBP: 000000000071c180 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020001fde R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000508 R14: 00000000006f7960 R15: 0000000000000004
Mem-Info:
active_anon:57140 inactive_anon:63 isolated_anon:0
active_file:3450 inactive_file:8420 isolated_file:0
unevictable:0 dirty:6312 writeback:0 unstable:0
slab_reclaimable:7007 slab_unreclaimable:92279
mapped:24216 shmem:70 pagetables:653 bounce:0
free:1434872 free_pcp:450 free_cma:0
Node 0 active_anon:228560kB inactive_anon:252kB active_file:13800kB inactive_file:33680kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:96664kB dirty:25248kB writeback:0kB shmem:280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 108544kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
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[]: 0 2868 6378 6378
Node 0 DMA32 free:2939236kB 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:2939944kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:708kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 0 3510 3510
Node 0 Normal free:2784588kB min:37100kB low:46372kB high:55644kB active_anon:228560kB inactive_anon:252kB active_file:13800kB inactive_file:33680kB unevictable:0kB writepending:25248kB present:4718592kB managed:3594328kB mlocked:0kB kernel_stack:3936kB pagetables:2464kB bounce:0kB free_pcp:1148kB local_pcp:476kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0
Node 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
Node 0 DMA32: 5*4kB (M) 4*8kB (M) 3*16kB (M) 4*32kB (M) 2*64kB (M) 2*128kB (M) 1*256kB (M) 3*512kB (M) 2*1024kB (M) 1*2048kB (M) 716*4096kB (M) = 2939236kB
Node 0 Normal: 580*4kB (UME) 1341*8kB (UME) 1222*16kB (UE) 136*32kB (UME) 25*64kB (UME) 14*128kB (UME) 16*256kB (UME) 30*512kB (UME) 73*1024kB (UM) 4*2048kB (ME) 645*4096kB (M) = 2784664kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
11939 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
328424 pages reserved
kauditd_printk_skb: 12 callbacks suppressed
audit: type=1400 audit(1518415923.097:34): avc: denied { map } for pid=6142 comm="syz-executor7" path="socket:[16356]" dev="sockfs" ino=16356 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=socket permissive=1
BUG: sleeping function called from invalid context at mm/slab.h:420
in_atomic(): 1, irqs_disabled(): 0, pid: 6154, name: syz-executor6
1 lock held by syz-executor6/6154:
#0: (rcu_read_lock){....}, at: [<0000000072a5383e>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218
CPU: 1 PID: 6154 Comm: syz-executor6 Tainted: G W 4.15.0+ #222
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+0xda3/0x2390 net/rds/send.c:1126
sock_sendmsg_nosec net/socket.c:630 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:640
___sys_sendmsg+0x767/0x8b0 net/socket.c:2046
__sys_sendmsg+0xe5/0x210 net/socket.c:2080
SYSC_sendmsg net/socket.c:2091 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2087
do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x26/0x9b
RIP: 0033:0x453a59
RSP: 002b:00007f31a6d8ac68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f31a6d8b6d4 RCX: 0000000000453a59
RDX: 0000000000000000 RSI: 0000000020159fc8 RDI: 0000000000000013
RBP: 000000000071bf58 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004a7 R14: 00000000006f7048 R15: 0000000000000001
audit: type=1400 audit(1518415923.757:35): avc: denied { create } for pid=6221 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_fib_lookup_socket permissive=1
sctp: [Deprecated]: syz-executor3 (pid 6237) Use of int in max_burst socket option.
Use struct sctp_assoc_value instead
audit: type=1400 audit(1518415923.799:36): avc: denied { write } for pid=6221 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_fib_lookup_socket permissive=1
audit: type=1400 audit(1518415923.840:37): avc: denied { net_bind_service } for pid=6231 comm="syz-executor4" capability=10 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
dccp_close: ABORT with 1 bytes unread
audit: type=1400 audit(1518415924.252:38): avc: denied { accept } for pid=6343 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: 8 bytes leftover after parsing attributes in process `syz-executor1'.
syz-executor2 uses obsolete (PF_INET,SOCK_PACKET)
netlink: 8 bytes leftover after parsing attributes in process `syz-executor1'.
netlink: 8 bytes leftover after parsing attributes in process `syz-executor1'.
netlink: 8 bytes leftover after parsing attributes in process `syz-executor1'.
audit: type=1400 audit(1518415924.684:39): avc: denied { setopt } for pid=6442 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
netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'.
device lo entered promiscuous mode
device lo left promiscuous mode
device lo entered promiscuous mode
device lo left promiscuous mode
======================================================
WARNING: possible circular locking dependency detected
4.15.0+ #222 Tainted: G W
------------------------------------------------------
syz-executor0/6664 is trying to acquire lock:
(rtnl_mutex){+.+.}, at: [<0000000028ae0a81>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74
but task is already holding lock:
(&xt[i].mutex){+.+.}, at: [<000000006f090a47>] 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_arpt_get_ctl+0x2a9/0xa00 net/ipv4/netfilter/arp_tables.c:1481
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
-> #1 (sk_lock-AF_INET){+.+.}:
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
raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870
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
-> #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+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
raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870
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:
rtnl_mutex --> sk_lock-AF_INET --> &xt[i].mutex
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&xt[i].mutex);
lock(sk_lock-AF_INET);
lock(&xt[i].mutex);
lock(rtnl_mutex);
*** DEADLOCK ***
1 lock held by syz-executor0/6664:
#0: (&xt[i].mutex){+.+.}, at: [<000000006f090a47>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1046
stack backtrace:
CPU: 0 PID: 6664 Comm: syz-executor0 Tainted: G W 4.15.0+ #222
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+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
raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870
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:0x453a59
RSP: 002b:00007febb79f2c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007febb79f36d4 RCX: 0000000000453a59
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000015
RBP: 000000000071bea0 R08: 0000000000000280 R09: 0000000000000000
R10: 0000000020157d80 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004d5 R14: 00000000006f7498 R15: 0000000000000000
audit: type=1400 audit(1518415926.436:40): avc: denied { getopt } for pid=6758 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_crypto_socket permissive=1
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=0 sclass=netlink_audit_socket pig=6759 comm=syz-executor4
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=0 sclass=netlink_audit_socket pig=6776 comm=syz-executor4
ipt_CLUSTERIP: ipt_CLUSTERIP is deprecated and it will removed soon, use xt_cluster instead
NFQUEUE: number of total queues is 0
------------[ cut here ]------------
proc_dir_entry 'ipt_CLUSTERIP/224.0.0.2' already registered
WARNING: CPU: 1 PID: 6870 at fs/proc/generic.c:330 proc_register+0x2d6/0x3b0 fs/proc/generic.c:329