====================================================== WARNING: possible circular locking dependency detected 4.15.0-rc7-mm1+ #53 Not tainted ------------------------------------------------------ syz-executor3/9343 is trying to acquire lock: (rtnl_mutex){+.+.}, at: [<00000000d065594f>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 but task is already holding lock: (sk_lock-AF_INET){+.+.}, at: [<0000000050635184>] lock_sock include/net/sock.h:1465 [inline] (sk_lock-AF_INET){+.+.}, at: [<0000000050635184>] ip_setsockopt+0x8c/0xb0 net/ipv4/ip_sockglue.c:1255 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sk_lock-AF_INET){+.+.}: lock_sock_nested+0xc2/0x110 net/core/sock.c:2780 lock_sock include/net/sock.h:1465 [inline] do_ip_setsockopt.isra.12+0x1d9/0x3160 net/ipv4/ip_sockglue.c:646 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1248 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:857 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1821 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1800 entry_SYSCALL_64_fastpath+0x29/0xa0 -> #0 (rtnl_mutex){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 __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 do_ip_vs_set_ctl+0x10e0/0x1cc0 net/netfilter/ipvs/ip_vs_ctl.c:2390 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1256 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2872 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1821 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1800 entry_SYSCALL_64_fastpath+0x29/0xa0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sk_lock-AF_INET); lock(rtnl_mutex); lock(sk_lock-AF_INET); lock(rtnl_mutex); *** DEADLOCK *** 1 lock held by syz-executor3/9343: #0: (sk_lock-AF_INET){+.+.}, at: [<0000000050635184>] lock_sock include/net/sock.h:1465 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000050635184>] ip_setsockopt+0x8c/0xb0 net/ipv4/ip_sockglue.c:1255 stack backtrace: CPU: 1 PID: 9343 Comm: syz-executor3 Not tainted 4.15.0-rc7-mm1+ #53 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.37+0x2cd/0x2dc kernel/locking/lockdep.c:1218 check_prev_add kernel/locking/lockdep.c:1858 [inline] check_prevs_add kernel/locking/lockdep.c:1971 [inline] validate_chain kernel/locking/lockdep.c:2412 [inline] __lock_acquire+0x30a8/0x3e00 kernel/locking/lockdep.c:3426 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 __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 do_ip_vs_set_ctl+0x10e0/0x1cc0 net/netfilter/ipvs/ip_vs_ctl.c:2390 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1256 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2872 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1821 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1800 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452ac9 RSP: 002b:00007faa4d391c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 000000040000048b RSI: 0000000000000000 RDI: 0000000000000013 RBP: 00000000000003e0 R08: 0000000000000018 R09: 0000000000000000 R10: 0000000020789fd4 R11: 0000000000000212 R12: 00000000006f3da0 R13: 00000000ffffffff R14: 00007faa4d3926d4 R15: 0000000000000000 IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt IPVS: Unknown mcast interface: '4]l .Ɓt FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 10542 Comm: syz-executor3 Not tainted 4.15.0-rc7-mm1+ #53 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_node mm/slab.c:3286 [inline] kmem_cache_alloc_node_trace+0x5a/0x750 mm/slab.c:3648 kmalloc_node include/linux/slab.h:553 [inline] kzalloc_node include/linux/slab.h:715 [inline] __get_vm_area_node+0xae/0x340 mm/vmalloc.c:1402 __vmalloc_node_range+0xa3/0x650 mm/vmalloc.c:1754 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc+0x45/0x50 mm/vmalloc.c:1810 bpf_prog_alloc+0xaa/0x380 kernel/bpf/core.c:84 __get_filter+0xe0/0x220 net/core/filter.c:1280 sk_attach_filter+0x1d/0x80 net/core/filter.c:1315 sock_setsockopt+0x1666/0x1af0 net/core/sock.c:928 SYSC_setsockopt net/socket.c:1817 [inline] SyS_setsockopt+0x2ff/0x360 net/socket.c:1800 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452ac9 RSP: 002b:00007faa4d391c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007faa4d391aa0 RCX: 0000000000452ac9 RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000013 RBP: 00007faa4d391a90 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020006ff0 R11: 0000000000000212 R12: 00000000004b767a R13: 00007faa4d391bc8 R14: 00000000004b767a R15: 0000000000000000 syz-executor3: vmalloc: allocation failure: 4096 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor3 cpuset=/ mems_allowed=0 CPU: 0 PID: 10542 Comm: syz-executor3 Not tainted 4.15.0-rc7-mm1+ #53 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:3313 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc+0x45/0x50 mm/vmalloc.c:1810 bpf_prog_alloc+0xaa/0x380 kernel/bpf/core.c:84 __get_filter+0xe0/0x220 net/core/filter.c:1280 sk_attach_filter+0x1d/0x80 net/core/filter.c:1315 sock_setsockopt+0x1666/0x1af0 net/core/sock.c:928 SYSC_setsockopt net/socket.c:1817 [inline] SyS_setsockopt+0x2ff/0x360 net/socket.c:1800 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452ac9 RSP: 002b:00007faa4d391c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007faa4d391aa0 RCX: 0000000000452ac9 RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000013 RBP: 00007faa4d391a90 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020006ff0 R11: 0000000000000212 R12: 00000000004b767a R13: 00007faa4d391bc8 R14: 00000000004b767a R15: 0000000000000000 Mem-Info: active_anon:84288 inactive_anon:61 isolated_anon:0 active_file:3548 inactive_file:7667 isolated_file:0 unevictable:0 dirty:111 writeback:0 unstable:0 slab_reclaimable:8696 slab_unreclaimable:87825 mapped:23364 shmem:85 pagetables:687 bounce:0 free:1411540 free_pcp:443 free_cma:0 Node 0 active_anon:328872kB inactive_anon:244kB active_file:14192kB inactive_file:30668kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:93456kB dirty:444kB writeback:0kB shmem:340kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 165888kB 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 2870 6381 6381 Node 0 DMA32 free:2941540kB min:30332kB low:37912kB high:45492kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2942332kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:792kB local_pcp:180kB free_cma:0kB lowmem_reserve[]: 0 0 3510 3510 Node 0 Normal free:2696984kB min:37084kB low:46352kB high:55620kB active_anon:328864kB inactive_anon:244kB active_file:14192kB inactive_file:30684kB unevictable:0kB writepending:464kB present:4718592kB managed:3594628kB mlocked:0kB kernel_stack:4128kB pagetables:2688kB bounce:0kB free_pcp:1180kB local_pcp:544kB 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: 3*4kB (M) 3*8kB (UM) 4*16kB (UM) 0*32kB 4*64kB (UM) 4*128kB (M) 5*256kB (UM) 3*512kB (UM) 3*1024kB (UM) 3*2048kB (UM) 715*4096kB (M) = 2941540kB Node 0 Normal: 168*4kB (UME) 163*8kB (UM) 43*16kB (UM) 583*32kB (UME) 279*64kB (UME) 46*128kB (UM) 13*256kB (UME) 9*512kB (UME) 10*1024kB (UME) 8*2048kB (UM) 639*4096kB (UM) = 2696968kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11306 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 327762 pages reserved QAT: Invalid ioctl kauditd_printk_skb: 83 callbacks suppressed audit: type=1400 audit(1515696504.933:385): avc: denied { sys_ptrace } for pid=12477 comm="ps" capability=19 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=cap_userns permissive=1