=============================== [ INFO: suspicious RCU usage. ] 4.9.119-g9dc978d #27 Not tainted ------------------------------- kernel/rcu/tree_plugin.h:678 Illegal synchronize_rcu() in RCU read-side critical section! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 0 3 locks held by blkid/19647: #0: (&mm->mmap_sem){++++++}, at: [] do_mprotect_pkey+0x18d/0x890 mm/mprotect.c:388 #1: (rcu_read_lock){......}, at: [] INIT_LIST_HEAD include/linux/list.h:28 [inline] #1: (rcu_read_lock){......}, at: [] avc_compute_av+0xb0/0x610 security/selinux/avc.c:975 #2: (rcu_callback){......}, at: [] __rcu_reclaim kernel/rcu/rcu.h:108 [inline] #2: (rcu_callback){......}, at: [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] #2: (rcu_callback){......}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] #2: (rcu_callback){......}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] #2: (rcu_callback){......}, at: [] rcu_process_callbacks+0x98e/0x12b0 kernel/rcu/tree.c:3037 stack backtrace: CPU: 0 PID: 19647 Comm: blkid Not tainted 4.9.119-g9dc978d #27 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801db207d60 ffffffff81eb4be9 ffff8801bace0000 0000000000000000 0000000000000002 ffffffff83c6df20 ffff8801cadde158 ffff8801db207d90 ffffffff81426330 ffff8801cadde000 ffff8801cb46dd48 ffff8801cb46d548 Call Trace: [ 451.952769] [] __dump_stack lib/dump_stack.c:15 [inline] [ 451.952769] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] lockdep_rcu_suspicious.cold.48+0x110/0x141 kernel/locking/lockdep.c:4455 [] synchronize_rcu+0x68/0x90 kernel/rcu/tree_plugin.h:675 [] __l2tp_session_unhash+0x38a/0x520 net/l2tp/l2tp_core.c:1796 [] l2tp_tunnel_closeall+0x1f7/0x350 net/l2tp/l2tp_core.c:1364 [] l2tp_tunnel_destruct+0x2f2/0x590 net/l2tp/l2tp_core.c:1324 [] __sk_destruct+0x55/0x590 net/core/sock.c:1428 [] __rcu_reclaim kernel/rcu/rcu.h:118 [inline] [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] [] rcu_process_callbacks+0x8ae/0x12b0 kernel/rcu/tree.c:3037 [] __do_softirq+0x20b/0x937 kernel/softirq.c:284 [] invoke_softirq kernel/softirq.c:364 [inline] [] irq_exit+0x147/0x190 kernel/softirq.c:405 [] exiting_irq arch/x86/include/asm/apic.h:659 [inline] [] smp_apic_timer_interrupt+0x81/0xa0 arch/x86/kernel/apic/apic.c:960 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:648 [ 452.066523] [] ? arch_local_irq_restore arch/x86/include/asm/paravirt.h:768 [inline] [ 452.066523] [] ? __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:162 [inline] [ 452.066523] [] ? _raw_spin_unlock_irqrestore+0x5f/0x70 kernel/locking/spinlock.c:191 [] spin_unlock_irqrestore include/linux/spinlock.h:362 [inline] [] avc_reclaim_node security/selinux/avc.c:543 [inline] [] avc_alloc_node+0x289/0x3d0 security/selinux/avc.c:561 [] avc_insert security/selinux/avc.c:672 [inline] [] avc_compute_av+0x178/0x610 security/selinux/avc.c:978 [] avc_has_perm_noaudit security/selinux/avc.c:1114 [inline] [] avc_has_perm+0x364/0x4f0 security/selinux/avc.c:1148 [] inode_has_perm.isra.32+0x10a/0x160 security/selinux/hooks.c:1704 [] file_has_perm+0x253/0x330 security/selinux/hooks.c:1794 [] file_map_prot_check+0x1e3/0x310 security/selinux/hooks.c:3519 [] selinux_file_mprotect+0xef/0x5d0 security/selinux/hooks.c:3583 [] security_file_mprotect+0x83/0xc0 security/security.c:852 [] do_mprotect_pkey+0x444/0x890 mm/mprotect.c:453 [] SYSC_mprotect mm/mprotect.c:485 [inline] [] SyS_mprotect+0x2a/0x40 mm/mprotect.c:482 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb BUG: sleeping function called from invalid context at kernel/rcu/tree_exp.h:281 in_atomic(): 1, irqs_disabled(): 0, pid: 19647, name: blkid INFO: lockdep is turned off. Preemption disabled at:[ 452.241694] [] avc_reclaim_node security/selinux/avc.c:528 [inline] Preemption disabled at:[ 452.241694] [] avc_alloc_node+0x133/0x3d0 security/selinux/avc.c:561 CPU: 0 PID: 19647 Comm: blkid Not tainted 4.9.119-g9dc978d #27 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801db2079b0 ffffffff81eb4be9 ffffffff81cf6f03 0000000000000000 0000000000000102 ffff8801bace0000 ffff8801bace0000 ffff8801db2079e8 ffffffff81424630 ffff8801bace0000 ffffffff83c6d460 0000000000000119 Call Trace: [ 452.292672] [] __dump_stack lib/dump_stack.c:15 [inline] [ 452.292672] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] ___might_sleep.cold.123+0x1bc/0x1f5 kernel/sched/core.c:7988 [] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7945 [] exp_funnel_lock kernel/rcu/tree_exp.h:279 [inline] [] _synchronize_rcu_expedited+0x600/0x840 kernel/rcu/tree_exp.h:569 [] synchronize_rcu_expedited kernel/rcu/tree_exp.h:687 [inline] [] synchronize_rcu.part.62+0xd3/0x110 kernel/rcu/tree_plugin.h:682 [] synchronize_rcu+0x27/0x90 kernel/rcu/tree_plugin.h:685 [] __l2tp_session_unhash+0x38a/0x520 net/l2tp/l2tp_core.c:1796 [] l2tp_tunnel_closeall+0x1f7/0x350 net/l2tp/l2tp_core.c:1364 [] l2tp_tunnel_destruct+0x2f2/0x590 net/l2tp/l2tp_core.c:1324 [] __sk_destruct+0x55/0x590 net/core/sock.c:1428 [] __rcu_reclaim kernel/rcu/rcu.h:118 [inline] [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] [] rcu_process_callbacks+0x8ae/0x12b0 kernel/rcu/tree.c:3037 [] __do_softirq+0x20b/0x937 kernel/softirq.c:284 [] invoke_softirq kernel/softirq.c:364 [inline] [] irq_exit+0x147/0x190 kernel/softirq.c:405 [] exiting_irq arch/x86/include/asm/apic.h:659 [inline] [] smp_apic_timer_interrupt+0x81/0xa0 arch/x86/kernel/apic/apic.c:960 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:648 [ 452.517321] [] ? arch_local_irq_restore arch/x86/include/asm/paravirt.h:768 [inline] [ 452.517321] [] ? __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:162 [inline] [ 452.517321] [] ? _raw_spin_unlock_irqrestore+0x5f/0x70 kernel/locking/spinlock.c:191 [] spin_unlock_irqrestore include/linux/spinlock.h:362 [inline] [] avc_reclaim_node security/selinux/avc.c:543 [inline] [] avc_alloc_node+0x289/0x3d0 security/selinux/avc.c:561 [] avc_insert security/selinux/avc.c:672 [inline] [] avc_compute_av+0x178/0x610 security/selinux/avc.c:978 [] avc_has_perm_noaudit security/selinux/avc.c:1114 [inline] [] avc_has_perm+0x364/0x4f0 security/selinux/avc.c:1148 [] inode_has_perm.isra.32+0x10a/0x160 security/selinux/hooks.c:1704 [] file_has_perm+0x253/0x330 security/selinux/hooks.c:1794 [] file_map_prot_check+0x1e3/0x310 security/selinux/hooks.c:3519 [] selinux_file_mprotect+0xef/0x5d0 security/selinux/hooks.c:3583 [] security_file_mprotect+0x83/0xc0 security/security.c:852 [] do_mprotect_pkey+0x444/0x890 mm/mprotect.c:453 [] SYSC_mprotect mm/mprotect.c:485 [inline] [] SyS_mprotect+0x2a/0x40 mm/mprotect.c:482 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb BUG: scheduling while atomic: blkid/19647/0x00000102 INFO: lockdep is turned off. Modules linked in: Preemption disabled at:[ 452.686632] [] avc_reclaim_node security/selinux/avc.c:528 [inline] Preemption disabled at:[ 452.686632] [] avc_alloc_node+0x133/0x3d0 security/selinux/avc.c:561