================================ WARNING: inconsistent lock state 4.15.0-rc9+ #283 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/8755 [HC0[0]:SC1[1]:HE1:SE0] takes: (&(&est->lock)->rlock){+.?.}, at: [<00000000a805486e>] spin_lock include/linux/spinlock.h:310 [inline] (&(&est->lock)->rlock){+.?.}, at: [<00000000a805486e>] est_fetch_counters+0x4f/0x150 net/core/gen_estimator.c:70 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:310 [inline] est_fetch_counters+0x4f/0x150 net/core/gen_estimator.c:70 gen_new_estimator+0x317/0x770 net/core/gen_estimator.c:162 xt_rateest_tg_checkentry+0x487/0xaa0 net/netfilter/xt_RATEEST.c:135 xt_check_target+0x22c/0x7d0 net/netfilter/x_tables.c:845 check_target net/ipv4/netfilter/ip_tables.c:518 [inline] find_check_entry.isra.8+0x8c8/0xcb0 net/ipv4/netfilter/ip_tables.c:559 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:730 do_replace net/ipv4/netfilter/ip_tables.c:1148 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1682 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 sctp_setsockopt+0x2a0/0x5de0 net/sctp/socket.c:4074 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 entry_SYSCALL_64_fastpath+0x29/0xa0 irq event stamp: 628 hardirqs last enabled at (628): [<000000002371ca89>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (628): [<000000002371ca89>] _raw_spin_unlock_irq+0x27/0x70 kernel/locking/spinlock.c:192 hardirqs last disabled at (627): [<0000000025cd26bd>] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (627): [<0000000025cd26bd>] _raw_spin_lock_irq+0x3c/0x80 kernel/locking/spinlock.c:160 softirqs last enabled at (392): [<000000008f0ad69a>] __do_softirq+0x7a0/0xb85 kernel/softirq.c:311 softirqs last disabled at (581): [<00000000c162f1e9>] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (581): [<00000000c162f1e9>] irq_exit+0x1cc/0x200 kernel/softirq.c:405 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&est->lock)->rlock); lock(&(&est->lock)->rlock); *** DEADLOCK *** 3 locks held by udevd/8755: #0: (&sig->cred_guard_mutex){+.+.}, at: [<00000000f9e7d646>] prepare_bprm_creds+0x53/0x110 fs/exec.c:1389 #1: (&anon_vma->rwsem){++++}, at: [<00000000db4db2d0>] lock_anon_vma_root mm/rmap.c:237 [inline] #1: (&anon_vma->rwsem){++++}, at: [<00000000db4db2d0>] unlink_anon_vmas+0x2bc/0x9f0 mm/rmap.c:387 #2: ((&est->timer)){+.-.}, at: [<00000000e97a54de>] lockdep_copy_map include/linux/lockdep.h:178 [inline] #2: ((&est->timer)){+.-.}, at: [<00000000e97a54de>] call_timer_fn+0x1c6/0x820 kernel/time/timer.c:1308 stack backtrace: CPU: 1 PID: 8755 Comm: udevd Not tainted 4.15.0-rc9+ #283 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_usage_bug+0x377/0x38c kernel/locking/lockdep.c:2537 valid_state kernel/locking/lockdep.c:2550 [inline] mark_lock_irq kernel/locking/lockdep.c:2744 [inline] mark_lock+0xf61/0x1430 kernel/locking/lockdep.c:3142 mark_irqflags kernel/locking/lockdep.c:3020 [inline] __lock_acquire+0x173a/0x3e00 kernel/locking/lockdep.c:3383 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:310 [inline] est_fetch_counters+0x4f/0x150 net/core/gen_estimator.c:70 est_timer+0x97/0x7c0 net/core/gen_estimator.c:85 call_timer_fn+0x228/0x820 kernel/time/timer.c:1318 expire_timers kernel/time/timer.c:1355 [inline] __run_timers+0x7ee/0xb70 kernel/time/timer.c:1658 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1684 __do_softirq+0x2d7/0xb85 kernel/softirq.c:285 invoke_softirq kernel/softirq.c:365 [inline] irq_exit+0x1cc/0x200 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:541 [inline] smp_apic_timer_interrupt+0x16b/0x700 arch/x86/kernel/apic/apic.c:1052 apic_timer_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:937 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:kmem_cache_free+0x17c/0x2a0 mm/slab.c:3747 RSP: 0018:ffff8801c1aaf110 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff11 RAX: 0000000000000007 RBX: ffff8801d35d7000 RCX: 0000000000000006 RDX: 0000000000000000 RSI: 1ffff10035164d48 RDI: 0000000000000282 RBP: ffff8801c1aaf130 R08: 1ffff10038355df0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801dad31500 R13: 0000000000000282 R14: ffffffff819ef50d R15: ffff8801d35d7018 anon_vma_chain_free mm/rmap.c:133 [inline] unlink_anon_vmas+0x20d/0x9f0 mm/rmap.c:400 free_pgtables+0x21e/0x330 mm/memory.c:635 exit_mmap+0x291/0x500 mm/mmap.c:3039 __mmput kernel/fork.c:923 [inline] mmput+0x223/0x6d0 kernel/fork.c:944 exec_mmap fs/exec.c:1039 [inline] flush_old_exec+0xc8b/0x2010 fs/exec.c:1271 load_elf_binary+0x87b/0x4c10 fs/binfmt_elf.c:864 search_binary_handler+0x142/0x6b0 fs/exec.c:1638 exec_binprm fs/exec.c:1680 [inline] do_execveat_common.isra.30+0x1754/0x23c0 fs/exec.c:1802 do_execve fs/exec.c:1847 [inline] SYSC_execve fs/exec.c:1928 [inline] SyS_execve+0x39/0x50 fs/exec.c:1923 do_syscall_64+0x273/0x920 arch/x86/entry/common.c:285 entry_SYSCALL64_slow_path+0x25/0x25 RIP: 0033:0x7ffb51473207 RSP: 002b:00007fff003be268 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007ffb51473207 RDX: 0000000001674890 RSI: 00007fff003be360 RDI: 00007fff003bf370 RBP: 0000000000625500 R08: 0000000000000e4d R09: 0000000000000e4d R10: 0000000000000000 R11: 0000000000000202 R12: 0000000001674890 R13: 0000000000000007 R14: 00000000014e3030 R15: 0000000000000005 audit: type=1326 audit(1517129896.211:282): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8791 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517129896.240:283): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8791 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=2 compat=0 ip=0x40d591 code=0x7ffc0000 audit: type=1326 audit(1517129896.241:284): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8791 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517129896.241:285): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8791 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=111 compat=0 ip=0x453299 code=0x7ffc0000 QAT: Invalid ioctl QAT: Invalid ioctl kauditd_printk_skb: 49 callbacks suppressed audit: type=1400 audit(1517129897.967:335): avc: denied { map } for pid=9298 comm="syz-executor3" path="pipe:[23176]" dev="pipefs" ino=23176 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=fifo_file permissive=1 audit: type=1400 audit(1517129898.315:336): avc: denied { accept } for pid=9447 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=netlink_netfilter_socket permissive=1 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 9664 Comm: syz-executor0 Not tainted 4.15.0-rc9+ #283 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:421 [inline] slab_alloc mm/slab.c:3368 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3542 getname_flags+0xcb/0x580 fs/namei.c:138 getname fs/namei.c:209 [inline] SYSC_renameat2 fs/namei.c:4511 [inline] SyS_renameat2 fs/namei.c:4482 [inline] SYSC_renameat fs/namei.c:4628 [inline] SyS_renameat+0x234/0xca0 fs/namei.c:4625 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007f504cc75c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000108 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000014 RSI: 0000000020dd1ff8 RDI: 0000000000000014 RBP: 0000000000000631 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000203b5000 R11: 0000000000000212 R12: 00000000006f8538 R13: 00000000ffffffff R14: 00007f504cc766d4 R15: 0000000000000000 audit: type=1400 audit(1517129899.825:337): avc: denied { getopt } for pid=9830 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=netlink_crypto_socket permissive=1 IPVS: ftp: loaded support on port[0] = 21 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 10294 Comm: syz-executor6 Not tainted 4.15.0-rc9+ #283 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:421 [inline] slab_alloc mm/slab.c:3368 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3542 getname_flags+0xcb/0x580 fs/namei.c:138 user_path_at_empty+0x2d/0x50 fs/namei.c:2590 user_path_at include/linux/namei.h:57 [inline] do_sys_truncate+0x92/0x130 fs/open.c:141 SYSC_truncate fs/open.c:155 [inline] SyS_truncate+0x1d/0x30 fs/open.c:153 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007f546afd0c58 EFLAGS: 00000212 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f546afd0aa0 RCX: 0000000000453299 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000002037eff8 RBP: 00007f546afd0a90 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b8096 R13: 00007f546afd0bc8 R14: 00000000004b8096 R15: 0000000000000000 audit: type=1400 audit(1517129904.435:338): avc: denied { write } for pid=11227 comm="syz-executor0" path="socket:[28805]" dev="sockfs" ino=28805 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