=============================
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/9001:
#0: (ptrval) (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2718 [inline]
#0: (ptrval) (sb_writers#4){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548
#1: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_trylock include/linux/fs.h:733 [inline]
#1: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x299/0x1420 fs/ext4/file.c:232
#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: find_get_pages_range_tag+0x139/0x1250 mm/filemap.c:1874
stack backtrace:
CPU: 0 PID: 9001 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:__sanitizer_cov_trace_pc+0x3f/0x50 kernel/kcov.c:106
RSP: 0018:ffff88018dcf6be0 EFLAGS: 00000216 ORIG_RAX: ffffffffffffffda
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc90003cbf000
RDX: 0000000000040000 RSI: ffffffff8194e014 RDI: 0000000000000005
RBP: ffff88018dcf6be0 R08: ffff8801d03ee040 R09: ffffed003b5c46c2
R10: ffffed003b5c46c2 R11: ffff8801dae23613 R12: 0000000000000fff
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88018dcf6f80
find_get_pages_range_tag+0x364/0x1250 mm/filemap.c:1885
pagevec_lookup_range_tag+0x40/0x80 mm/swap.c:1006
mpage_prepare_extent_to_map+0x3ff/0x1100 fs/ext4/inode.c:2633
ext4_writepages+0x186f/0x4030 fs/ext4/inode.c:2853
do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
__filemap_fdatawrite_range+0x333/0x470 mm/filemap.c:445
filemap_write_and_wait_range+0x48/0xd0 mm/filemap.c:656
__generic_file_write_iter+0x4f2/0x630 mm/filemap.c:3250
ext4_file_write_iter+0x388/0x1420 fs/ext4/file.c:266
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_pwrite64+0x174/0x1a0 fs/read_write.c:652
__do_sys_pwrite64 fs/read_write.c:662 [inline]
__se_sys_pwrite64 fs/read_write.c:659 [inline]
__x64_sys_pwrite64+0x97/0xf0 fs/read_write.c:659
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007f1c49fa0c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f1c49fa16d4 RCX: 0000000000455389
RDX: 00000000fffffdcb RSI: 0000000020000000 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000048d R14: 00000000006f9dd8 R15: 0000000000000000
BUG: sleeping function called from invalid context at mm/slab.h:421
in_atomic(): 1, irqs_disabled(): 1, pid: 9001, name: syz-executor2
5 locks held by syz-executor2/9001:
#0: (ptrval) (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2718 [inline]
#0: (ptrval) (sb_writers#4){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548
#1: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_trylock include/linux/fs.h:733 [inline]
#1: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x299/0x1420 fs/ext4/file.c:232
#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: find_get_pages_range_tag+0x139/0x1250 mm/filemap.c:1874
irq event stamp: 90264
hardirqs last enabled at (90263): [] free_unref_page_list+0xc9a/0x12c0 mm/page_alloc.c:2849
hardirqs last disabled at (90264): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last enabled at (90152): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311
softirqs last disabled at (90145): [] invoke_softirq kernel/softirq.c:365 [inline]
softirqs last disabled at (90145): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405
CPU: 0 PID: 9001 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:__sanitizer_cov_trace_pc+0x3f/0x50 kernel/kcov.c:106
RSP: 0018:ffff88018dcf6be0 EFLAGS: 00000216 ORIG_RAX: ffffffffffffffda
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc90003cbf000
RDX: 0000000000040000 RSI: ffffffff8194e014 RDI: 0000000000000005
RBP: ffff88018dcf6be0 R08: ffff8801d03ee040 R09: ffffed003b5c46c2
R10: ffffed003b5c46c2 R11: ffff8801dae23613 R12: 0000000000000fff
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88018dcf6f80
find_get_pages_range_tag+0x364/0x1250 mm/filemap.c:1885
pagevec_lookup_range_tag+0x40/0x80 mm/swap.c:1006
mpage_prepare_extent_to_map+0x3ff/0x1100 fs/ext4/inode.c:2633
ext4_writepages+0x186f/0x4030 fs/ext4/inode.c:2853
do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341
__filemap_fdatawrite_range+0x333/0x470 mm/filemap.c:445
filemap_write_and_wait_range+0x48/0xd0 mm/filemap.c:656
__generic_file_write_iter+0x4f2/0x630 mm/filemap.c:3250
ext4_file_write_iter+0x388/0x1420 fs/ext4/file.c:266
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_pwrite64+0x174/0x1a0 fs/read_write.c:652
__do_sys_pwrite64 fs/read_write.c:662 [inline]
__se_sys_pwrite64 fs/read_write.c:659 [inline]
__x64_sys_pwrite64+0x97/0xf0 fs/read_write.c:659
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007f1c49fa0c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f1c49fa16d4 RCX: 0000000000455389
RDX: 00000000fffffdcb RSI: 0000000020000000 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000048d R14: 00000000006f9dd8 R15: 0000000000000000
random: crng init done
netlink: 5192 bytes leftover after parsing attributes in process `syz-executor0'.
netlink: 5192 bytes leftover after parsing attributes in process `syz-executor0'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 9405 Comm: syz-executor4 Tainted: G W 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
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149
__should_failslab+0x124/0x180 mm/failslab.c:32
should_failslab+0x9/0x14 mm/slab_common.c:1522
slab_pre_alloc_hook mm/slab.h:423 [inline]
slab_alloc mm/slab.c:3378 [inline]
__do_kmalloc mm/slab.c:3716 [inline]
__kmalloc+0x2c8/0x760 mm/slab.c:3727
kmalloc include/linux/slab.h:517 [inline]
kzalloc include/linux/slab.h:701 [inline]
l2tp_session_create+0x8e/0xb50 net/l2tp/l2tp_core.c:1658
pppol2tp_connect+0xfb8/0x2050 net/l2tp/l2tp_ppp.c:748
__sys_connect+0x37d/0x4c0 net/socket.c:1665
__do_sys_connect net/socket.c:1676 [inline]
__se_sys_connect net/socket.c:1673 [inline]
__x64_sys_connect+0x73/0xb0 net/socket.c:1673
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007f66becd0c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f66becd16d4 RCX: 0000000000455389
RDX: 000000000000002e RSI: 00000000205fafd2 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014
R13: 000000000000005c R14: 00000000006f3940 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 9500 Comm: syz-executor1 Tainted: G W 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
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149
__should_failslab+0x124/0x180 mm/failslab.c:32
should_failslab+0x9/0x14 mm/slab_common.c:1522
slab_pre_alloc_hook mm/slab.h:423 [inline]
slab_alloc mm/slab.c:3378 [inline]
__do_kmalloc mm/slab.c:3716 [inline]
__kmalloc+0x2c8/0x760 mm/slab.c:3727
kmalloc include/linux/slab.h:517 [inline]
kernfs_fop_write+0x33d/0x480 fs/kernfs/file.c:293
__vfs_write+0x10b/0x960 fs/read_write.c:485
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:00007fe335459c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe33545a6d4 RCX: 0000000000455389
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000014
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015
R13: 00000000000006c7 R14: 00000000006fd348 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 9527 Comm: syz-executor1 Tainted: G W 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
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149
__should_failslab+0x124/0x180 mm/failslab.c:32
should_failslab+0x9/0x14 mm/slab_common.c:1522
slab_pre_alloc_hook mm/slab.h:423 [inline]
slab_alloc mm/slab.c:3378 [inline]
__do_kmalloc mm/slab.c:3716 [inline]
__kmalloc_track_caller+0x2c4/0x760 mm/slab.c:3733
kmemdup+0x24/0x50 mm/util.c:118
kmemdup include/linux/string.h:418 [inline]
alloc_trial_cpuset+0x23/0x110 kernel/cgroup/cpuset.c:429
cpuset_write_resmask+0x247/0x2e80 kernel/cgroup/cpuset.c:1716
cgroup_file_write+0x317/0x820 kernel/cgroup/cgroup.c:3429
kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316
__vfs_write+0x10b/0x960 fs/read_write.c:485
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:00007fe335459c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe33545a6d4 RCX: 0000000000455389
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000014
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015
R13: 00000000000006c7 R14: 00000000006fd348 R15: 0000000000000001
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 9822 Comm: syz-executor3 Tainted: G W 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
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149
__should_failslab+0x124/0x180 mm/failslab.c:32
should_failslab+0x9/0x14 mm/slab_common.c:1522
slab_pre_alloc_hook mm/slab.h:423 [inline]
slab_alloc mm/slab.c:3378 [inline]
__do_kmalloc mm/slab.c:3716 [inline]
__kmalloc+0x2c8/0x760 mm/slab.c:3727
kmalloc include/linux/slab.h:517 [inline]
kzalloc include/linux/slab.h:701 [inline]
ext4_ext_precache.part.35+0x89/0x530 fs/ext4/extents.c:580
ext4_ext_precache fs/ext4/extents.c:574 [inline]
ext4_fiemap+0x9a2/0x1830 fs/ext4/extents.c:5150
ioctl_fiemap fs/ioctl.c:212 [inline]
do_vfs_ioctl+0xd30/0x16a0 fs/ioctl.c:668
ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
__do_sys_ioctl fs/ioctl.c:708 [inline]
__se_sys_ioctl fs/ioctl.c:706 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455389
RSP: 002b:00007f9c541b4c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f9c541b56d4 RCX: 0000000000455389
RDX: 0000000020000140 RSI: 00000000c020660b RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014
R13: 0000000000000365 R14: 00000000006f8218 R15: 0000000000000000