============================= WARNING: suspicious RCU usage 4.17.0-rc2+ #24 Not tainted ----------------------------- include/linux/rcupdate.h:304 Illegal context switch in RCU read-side critical section! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 1 lock held by jbd2/sda1-8/2270: #0: (ptrval) (rcu_read_lock){....}, at: hctx_lock+0x7a/0x1d0 block/blk-mq.c:570 stack backtrace: CPU: 1 PID: 2270 Comm: jbd2/sda1-8 Not tainted 4.17.0-rc2+ #24 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 lockdep_rcu_suspicious+0x14a/0x153 kernel/locking/lockdep.c:4592 rcu_preempt_sleep_check include/linux/rcupdate.h:303 [inline] ___might_sleep+0x26d/0x320 kernel/sched/core.c:6153 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b9/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa1/0xc0 kernel/locking/spinlock.c:184 RSP: 0000:ffff8801cc54d778 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9 RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 0000000000000000 RDX: 1ffffffff11a315d RSI: ffff8801cc540a38 RDI: 0000000000000286 RBP: ffff8801cc54d788 R08: ffff8801cc540a38 R09: 0000000000000006 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d22337e0 R13: ffff8801d2233818 R14: 0000000000000286 R15: 00000000d2375001 spin_unlock_irqrestore include/linux/spinlock.h:365 [inline] virtscsi_kick_cmd+0xcb/0x130 drivers/scsi/virtio_scsi.c:478 virtscsi_queuecommand+0x98a/0xe30 drivers/scsi/virtio_scsi.c:569 scsi_dispatch_cmd+0x3ea/0xcb0 drivers/scsi/scsi_lib.c:1761 scsi_queue_rq+0x1531/0x1ed0 drivers/scsi/scsi_lib.c:2064 blk_mq_dispatch_rq_list+0xe0a/0x2490 block/blk-mq.c:1223 blk_mq_do_dispatch_sched+0x23b/0x560 block/blk-mq-sched.c:120 blk_mq_sched_dispatch_requests+0x63b/0xa60 block/blk-mq-sched.c:216 __blk_mq_run_hw_queue+0x156/0x200 block/blk-mq.c:1334 __blk_mq_delay_run_hw_queue+0x488/0x520 block/blk-mq.c:1402 blk_mq_run_hw_queue+0x1c2/0x390 block/blk-mq.c:1439 blk_mq_sched_insert_requests+0x1b4/0x250 block/blk-mq-sched.c:478 blk_mq_flush_plug_list+0xa79/0x1120 block/blk-mq.c:1689 blk_flush_plug_list+0x1b3/0xb00 block/blk-core.c:3688 blk_finish_plug+0x58/0xa2 block/blk-core.c:3752 jbd2_journal_commit_transaction+0x45d0/0x8c18 fs/jbd2/commit.c:774 kjournald2+0x26c/0xb30 fs/jbd2/journal.c:229 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 2270, name: jbd2/sda1-8 1 lock held by jbd2/sda1-8/2270: #0: (ptrval) (rcu_read_lock){....}, at: hctx_lock+0x7a/0x1d0 block/blk-mq.c:570 irq event stamp: 35008 hardirqs last enabled at (35007): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (35007): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184 hardirqs last disabled at (35008): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (34218): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (34211): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (34211): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 1 PID: 2270 Comm: jbd2/sda1-8 Not tainted 4.17.0-rc2+ #24 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 ___might_sleep.cold.87+0x11f/0x13a kernel/sched/core.c:6188 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b9/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa1/0xc0 kernel/locking/spinlock.c:184 RSP: 0000:ffff8801cc54d778 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9 RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 0000000000000000 RDX: 1ffffffff11a315d RSI: ffff8801cc540a38 RDI: 0000000000000286 RBP: ffff8801cc54d788 R08: ffff8801cc540a38 R09: 0000000000000006 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d22337e0 R13: ffff8801d2233818 R14: 0000000000000286 R15: 00000000d2375001 spin_unlock_irqrestore include/linux/spinlock.h:365 [inline] virtscsi_kick_cmd+0xcb/0x130 drivers/scsi/virtio_scsi.c:478 virtscsi_queuecommand+0x98a/0xe30 drivers/scsi/virtio_scsi.c:569 scsi_dispatch_cmd+0x3ea/0xcb0 drivers/scsi/scsi_lib.c:1761 scsi_queue_rq+0x1531/0x1ed0 drivers/scsi/scsi_lib.c:2064 blk_mq_dispatch_rq_list+0xe0a/0x2490 block/blk-mq.c:1223 blk_mq_do_dispatch_sched+0x23b/0x560 block/blk-mq-sched.c:120 blk_mq_sched_dispatch_requests+0x63b/0xa60 block/blk-mq-sched.c:216 __blk_mq_run_hw_queue+0x156/0x200 block/blk-mq.c:1334 __blk_mq_delay_run_hw_queue+0x488/0x520 block/blk-mq.c:1402 blk_mq_run_hw_queue+0x1c2/0x390 block/blk-mq.c:1439 blk_mq_sched_insert_requests+0x1b4/0x250 block/blk-mq-sched.c:478 blk_mq_flush_plug_list+0xa79/0x1120 block/blk-mq.c:1689 blk_flush_plug_list+0x1b3/0xb00 block/blk-core.c:3688 blk_finish_plug+0x58/0xa2 block/blk-core.c:3752 jbd2_journal_commit_transaction+0x45d0/0x8c18 fs/jbd2/commit.c:774 kjournald2+0x26c/0xb30 fs/jbd2/journal.c:229 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 random: crng init done net_ratelimit: 8 callbacks suppressed sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 IPVS: ftp: loaded support on port[0] = 21 kernel msg: ebtables bug: please report to author: NOPROTO & 802_3 not allowed kernel msg: ebtables bug: please report to author: NOPROTO & 802_3 not allowed sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 bond0: cannot enslave bond to itself. bond0: cannot enslave bond to itself. sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 IPVS: ftp: loaded support on port[0] = 21 sctp: [Deprecated]: syz-executor4 (pid 10171) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 10171) Use of int in maxseg socket option. Use struct sctp_assoc_value instead device lo entered promiscuous mode device lo entered promiscuous mode device lo left promiscuous mode device lo entered promiscuous mode netlink: 20 bytes leftover after parsing attributes in process `syz-executor7'. IPVS: set_ctl: invalid protocol: 12 224.0.0.2:20003 lc IPVS: set_ctl: invalid protocol: 12 224.0.0.2:20003 lc net_ratelimit: 18 callbacks suppressed sit: non-ECT from 0.0.0.0 with TOS=0x3 IPVS: length: 4096 != 8 IPVS: length: 4096 != 8 sit: non-ECT from 0.0.0.0 with TOS=0x3 l2tp_ppp: tunl 59: set debug=f55d40e sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 netlink: 'syz-executor2': attribute type 18 has an invalid length. sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. sit: non-ECT from 0.0.0.0 with TOS=0x3 netlink: 'syz-executor4': attribute type 3 has an invalid length. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 'syz-executor4': attribute type 3 has an invalid length. sit: non-ECT from 0.0.0.0 with TOS=0x3 sit: non-ECT from 0.0.0.0 with TOS=0x3 IPVS: set_ctl: invalid protocol: 0 224.0.0.2:20001 sh IPVS: set_ctl: invalid protocol: 0 0.0.0.0:4096 wlc IPVS: set_ctl: invalid protocol: 0 224.0.0.2:20001 sh IPVS: set_ctl: invalid protocol: 0 0.0.0.0:4096 wlc netlink: 'syz-executor2': attribute type 2 has an invalid length. netlink: 'syz-executor2': attribute type 2 has an invalid length. kernel msg: ebtables bug: please report to author: bad policy