================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
syz.1.641/8096 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff88810e8e1ca8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_timer+0xd4/0x9f0
{SOFTIRQ-ON-W} state was registered at:
  lock_acquire+0x120/0x360
  _raw_spin_lock+0x2e/0x40
  tcf_connmark_init+0x52b/0x8a0
  tcf_action_init_1+0x463/0x6d0
  tcf_action_init+0x2cf/0xab0
  tcf_exts_validate_ex+0x223/0x530
  fl_change+0x5c2/0x1ac0
  tc_new_tfilter+0xdca/0x15b0
  rtnetlink_rcv_msg+0x7cf/0xb70
  netlink_rcv_skb+0x208/0x470
  netlink_unicast+0x82f/0x9e0
  netlink_sendmsg+0x805/0xb30
  __sock_sendmsg+0x21c/0x270
  ____sys_sendmsg+0x52d/0x830
  ___sys_sendmsg+0x21f/0x2a0
  __sys_sendmmsg+0x227/0x430
  __x64_sys_sendmmsg+0xa0/0xc0
  do_syscall_64+0xfa/0x3b0
  entry_SYSCALL_64_after_hwframe+0x77/0x7f
irq event stamp: 2362
hardirqs last  enabled at (2362): [<ffffffff8b7cceb3>] _raw_spin_unlock_irq+0x23/0x50
hardirqs last disabled at (2361): [<ffffffff8b7ccc2d>] _raw_spin_lock_irq+0x7d/0xf0
softirqs last  enabled at (2190): [<ffffffff8962a3bb>] __dev_queue_xmit+0x27b/0x3b50
softirqs last disabled at (2301): [<ffffffff8184f4da>] __irq_exit_rcu+0xca/0x1f0

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&p->tcfa_lock);
  <Interrupt>
    lock(&p->tcfa_lock);

 *** DEADLOCK ***

2 locks held by syz.1.641/8096:
 #0: ffffffff8e845c90 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_number_perm+0x1bc/0x5a0
 #1: ffffc900001e0be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0

stack backtrace:
CPU: 1 UID: 0 PID: 8096 Comm: syz.1.641 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_usage_bug+0x297/0x2e0
 valid_state+0xc3/0xf0
 mark_lock_irq+0x36/0x390
 mark_lock+0x11b/0x190
 __lock_acquire+0x680/0xd20
 lock_acquire+0x120/0x360
 _raw_spin_lock+0x2e/0x40
 est_timer+0xd4/0x9f0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:tomoyo_check_path_number_acl+0x0/0x280
Code: 4c 89 ef e8 92 40 a5 fd e9 7b ff ff ff 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 55 41 57 41 56 41 55 41 54 53 48 89 f3 49 89 fe 49 bd
RSP: 0018:ffffc900065f7b88 EFLAGS: 00000246
RAX: ffffffff847d870d RBX: dffffc0000000000 RCX: 0000000000000002
RDX: ffff8881253fb980 RSI: ffff88801f4b7680 RDI: ffffc900065f7ca0
RBP: ffff88801f4b7190 R08: ffff8881253fb980 R09: 0000000000000002
R10: 000000000000005c R11: ffffffff847ddc20 R12: 0000000000000002
R13: 0000000000000000 R14: ffff88801f4b7680 R15: 0000000000000002
 tomoyo_check_acl+0x144/0x400
 tomoyo_path_number_perm+0x2dc/0x5a0
 security_file_ioctl+0xcb/0x2d0
 __se_sys_ioctl+0x47/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f93f7d8ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f93f8b71038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f93f7fc5fa0 RCX: 00007f93f7d8ebe9
RDX: 0000200000000200 RSI: 00000000400454ca RDI: 000000000000000e
RBP: 00007f93f7e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f93f7fc6038 R14: 00007f93f7fc5fa0 R15: 00007ffea5a30418
 </TASK>
