=============================
WARNING: suspicious RCU usage
4.17.0-rc2+ #14 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
5 locks held by syz-executor2/8182:
#0: (ptrval) (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0 fs/file.c:766
#1: (ptrval) (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2718 [inline]
#1: (ptrval) (sb_writers#4){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548
#2: (ptrval) (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
#3: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385
#4: (ptrval) (rcu_read_lock){....}, at: rcu_read_lock+0x0/0x70 include/linux/compiler.h:188
stack backtrace:
CPU: 0 PID: 8182 Comm: syz-executor2 Not tainted 4.17.0-rc2+ #14
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: 0018:ffff8801b20beb18 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffda
RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 1ffff10036dc4152
RDX: 1ffffffff11a315d RSI: ffff8801b6e20a98 RDI: 0000000000000286
RBP: ffff8801b20beb28 R08: ffff8801b6e209f8 R09: 0000000000000006
R10: ffff8801b6e201c0 R11: 0000000000000000 R12: ffff8801b0037b40
R13: ffffea0006343740 R14: 0000000000000000 R15: 0000000000000000
spin_unlock_irqrestore include/linux/spinlock.h:365 [inline]
__test_set_page_writeback+0x410/0x17e0 mm/page-writeback.c:2796
set_page_writeback include/linux/page-flags.h:492 [inline]
ext4_bio_write_page+0x28f/0x1534 fs/ext4/page-io.c:432
mpage_submit_page+0x15d/0x270 fs/ext4/inode.c:2209
mpage_map_and_submit_buffers+0x52e/0x9b0 fs/ext4/inode.c:2406
mpage_map_and_submit_extent fs/ext4/inode.c:2544 [inline]
ext4_writepages+0x262b/0x4030 fs/ext4/inode.c:2856
do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
__filemap_fdatawrite_range+0x333/0x470 mm/filemap.c:445
file_write_and_wait_range+0x98/0x100 mm/filemap.c:753
ext4_sync_file+0x2ce/0x1470 fs/ext4/fsync.c:128
vfs_fsync_range+0x140/0x220 fs/sync.c:197
generic_write_sync include/linux/fs.h:2689 [inline]
ext4_file_write_iter+0x688/0x1420 fs/ext4/file.c:270
call_write_iter include/linux/fs.h:1784 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x64d/0x960 fs/read_write.c:487
vfs_write+0x1f8/0x560 fs/read_write.c:549
ksys_write+0xf9/0x250 fs/read_write.c:598
__do_sys_write fs/read_write.c:610 [inline]
__se_sys_write fs/read_write.c:607 [inline]
__x64_sys_write+0x73/0xb0 fs/read_write.c:607
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007fca9d0fac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca9d0fb6d4 RCX: 0000000000455389
RDX: 00000000fffffe74 RSI: 0000000020001340 RDI: 0000000000000017
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000006ce R14: 00000000006fd3f0 R15: 0000000000000000
BUG: sleeping function called from invalid context at mm/slab.h:421
in_atomic(): 1, irqs_disabled(): 1, pid: 8182, name: syz-executor2
5 locks held by syz-executor2/8182:
#0: (ptrval) (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0 fs/file.c:766
#1: (ptrval) (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2718 [inline]
#1: (ptrval) (sb_writers#4){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548
#2: (ptrval) (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
#3: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385
#4: (ptrval) (rcu_read_lock){....}, at: rcu_read_lock+0x0/0x70 include/linux/compiler.h:188
irq event stamp: 95018
hardirqs last enabled at (95017): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (95017): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184
hardirqs last disabled at (95018): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last enabled at (94894): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311
softirqs last disabled at (94887): [] invoke_softirq kernel/softirq.c:365 [inline]
softirqs last disabled at (94887): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405
CPU: 0 PID: 8182 Comm: syz-executor2 Not tainted 4.17.0-rc2+ #14
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: 0018:ffff8801b20beb18 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffda
RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 1ffff10036dc4152
RDX: 1ffffffff11a315d RSI: ffff8801b6e20a98 RDI: 0000000000000286
RBP: ffff8801b20beb28 R08: ffff8801b6e209f8 R09: 0000000000000006
R10: ffff8801b6e201c0 R11: 0000000000000000 R12: ffff8801b0037b40
R13: ffffea0006343740 R14: 0000000000000000 R15: 0000000000000000
spin_unlock_irqrestore include/linux/spinlock.h:365 [inline]
__test_set_page_writeback+0x410/0x17e0 mm/page-writeback.c:2796
set_page_writeback include/linux/page-flags.h:492 [inline]
ext4_bio_write_page+0x28f/0x1534 fs/ext4/page-io.c:432
mpage_submit_page+0x15d/0x270 fs/ext4/inode.c:2209
mpage_map_and_submit_buffers+0x52e/0x9b0 fs/ext4/inode.c:2406
mpage_map_and_submit_extent fs/ext4/inode.c:2544 [inline]
ext4_writepages+0x262b/0x4030 fs/ext4/inode.c:2856
do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
__filemap_fdatawrite_range+0x333/0x470 mm/filemap.c:445
file_write_and_wait_range+0x98/0x100 mm/filemap.c:753
ext4_sync_file+0x2ce/0x1470 fs/ext4/fsync.c:128
vfs_fsync_range+0x140/0x220 fs/sync.c:197
generic_write_sync include/linux/fs.h:2689 [inline]
ext4_file_write_iter+0x688/0x1420 fs/ext4/file.c:270
call_write_iter include/linux/fs.h:1784 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x64d/0x960 fs/read_write.c:487
vfs_write+0x1f8/0x560 fs/read_write.c:549
ksys_write+0xf9/0x250 fs/read_write.c:598
__do_sys_write fs/read_write.c:610 [inline]
__se_sys_write fs/read_write.c:607 [inline]
__x64_sys_write+0x73/0xb0 fs/read_write.c:607
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007fca9d0fac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fca9d0fb6d4 RCX: 0000000000455389
RDX: 00000000fffffe74 RSI: 0000000020001340 RDI: 0000000000000017
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000006ce R14: 00000000006fd3f0 R15: 0000000000000000
random: crng init done
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
gfs2: not a GFS2 filesystem
gfs2: not a GFS2 filesystem
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
gfs2: not a GFS2 filesystem
capability: warning: `syz-executor4' uses 32-bit capabilities (legacy support in use)
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
gfs2: not a GFS2 filesystem
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
gfs2: not a GFS2 filesystem
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem
dccp_v4_rcv: dropped packet with invalid checksum
TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters.
syz-executor4 (8398) used greatest stack depth: 15432 bytes left
TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters.
TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters.
TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters.