============================= WARNING: suspicious RCU usage 4.17.0-rc2+ #23 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 4 locks held by syz-executor4/10840: #0: (ptrval) (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1550 [inline] #0: (ptrval) (sb_writers#4){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 #1: (ptrval) (&type->i_mutex_dir_key/1){+.+.}, at: inode_lock_nested include/linux/fs.h:748 [inline] #1: (ptrval) (&type->i_mutex_dir_key/1){+.+.}, at: filename_create+0x1aa/0x5a0 fs/namei.c:3606 #2: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385 #3: (ptrval) (rcu_read_lock){....}, at: __list_add include/linux/list.h:64 [inline] #3: (ptrval) (rcu_read_lock){....}, at: list_add include/linux/list.h:79 [inline] #3: (ptrval) (rcu_read_lock){....}, at: jbd2_write_access_granted.part.8+0x0/0x420 fs/jbd2/transaction.c:2544 stack backtrace: CPU: 0 PID: 10840 Comm: syz-executor4 Not tainted 4.17.0-rc2+ #23 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:__read_once_size include/linux/compiler.h:188 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x26/0x50 kernel/kcov.c:101 RSP: 0018:ffff8801aae6f8d0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd9 RAX: ffff88019b390280 RBX: 1ffff100355cdf1e RCX: ffffffff8218894e RDX: 0000000000000000 RSI: ffffffff82188958 RDI: 0000000000000005 RBP: ffff8801aae6f8d0 R08: ffff88019b390280 R09: ffffed003b5c46c2 R10: ffffed003b5c46c2 R11: ffff8801dae23613 R12: 0000000000000001 R13: ffff8801b2643901 R14: ffff8801b2643940 R15: ffff8801a84256e0 rcu_read_unlock include/linux/rcupdate.h:684 [inline] jbd2_write_access_granted.part.8+0x248/0x420 fs/jbd2/transaction.c:1066 jbd2_write_access_granted fs/jbd2/transaction.c:1096 [inline] jbd2_journal_get_write_access+0x91/0xc0 fs/jbd2/transaction.c:1086 __ext4_journal_get_write_access+0x5e/0xa0 fs/ext4/ext4_jbd2.c:169 ext4_reserve_inode_write+0x191/0x260 fs/ext4/inode.c:5763 ext4_mark_inode_dirty+0x177/0xb20 fs/ext4/inode.c:5912 ext4_add_nondir+0x76/0x90 fs/ext4/namei.c:2413 ext4_symlink+0x759/0x1150 fs/ext4/namei.c:3163 vfs_symlink+0x37a/0x5d0 fs/namei.c:4097 do_symlinkat+0x22d/0x2b0 fs/namei.c:4124 __do_sys_symlink fs/namei.c:4143 [inline] __se_sys_symlink fs/namei.c:4141 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4141 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4556a7 RSP: 002b:00007ffc7fa4f298 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 000000000000007f RCX: 00000000004556a7 RDX: 0000000000000000 RSI: 00000000004badf3 RDI: 00007ffc7fa4ffd0 RBP: 0000000000000013 R08: 0000000000000000 R09: 0000000002779940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380 BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 10840, name: syz-executor4 4 locks held by syz-executor4/10840: #0: (ptrval) (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1550 [inline] #0: (ptrval) (sb_writers#4){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 #1: (ptrval) (&type->i_mutex_dir_key/1){+.+.}, at: inode_lock_nested include/linux/fs.h:748 [inline] #1: (ptrval) (&type->i_mutex_dir_key/1){+.+.}, at: filename_create+0x1aa/0x5a0 fs/namei.c:3606 #2: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385 #3: (ptrval) (rcu_read_lock){....}, at: __list_add include/linux/list.h:64 [inline] #3: (ptrval) (rcu_read_lock){....}, at: list_add include/linux/list.h:79 [inline] #3: (ptrval) (rcu_read_lock){....}, at: jbd2_write_access_granted.part.8+0x0/0x420 fs/jbd2/transaction.c:2544 irq event stamp: 312 hardirqs last enabled at (311): [] lookup_bh_lru fs/buffer.c:1271 [inline] hardirqs last enabled at (311): [] __find_get_block+0x2b8/0xe50 fs/buffer.c:1283 hardirqs last disabled at (312): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (114): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (95): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (95): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 10840 Comm: syz-executor4 Not tainted 4.17.0-rc2+ #23 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:__read_once_size include/linux/compiler.h:188 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x26/0x50 kernel/kcov.c:101 RSP: 0018:ffff8801aae6f8d0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd9 RAX: ffff88019b390280 RBX: 1ffff100355cdf1e RCX: ffffffff8218894e RDX: 0000000000000000 RSI: ffffffff82188958 RDI: 0000000000000005 RBP: ffff8801aae6f8d0 R08: ffff88019b390280 R09: ffffed003b5c46c2 R10: ffffed003b5c46c2 R11: ffff8801dae23613 R12: 0000000000000001 R13: ffff8801b2643901 R14: ffff8801b2643940 R15: ffff8801a84256e0 rcu_read_unlock include/linux/rcupdate.h:684 [inline] jbd2_write_access_granted.part.8+0x248/0x420 fs/jbd2/transaction.c:1066 jbd2_write_access_granted fs/jbd2/transaction.c:1096 [inline] jbd2_journal_get_write_access+0x91/0xc0 fs/jbd2/transaction.c:1086 __ext4_journal_get_write_access+0x5e/0xa0 fs/ext4/ext4_jbd2.c:169 ext4_reserve_inode_write+0x191/0x260 fs/ext4/inode.c:5763 ext4_mark_inode_dirty+0x177/0xb20 fs/ext4/inode.c:5912 ext4_add_nondir+0x76/0x90 fs/ext4/namei.c:2413 ext4_symlink+0x759/0x1150 fs/ext4/namei.c:3163 vfs_symlink+0x37a/0x5d0 fs/namei.c:4097 do_symlinkat+0x22d/0x2b0 fs/namei.c:4124 __do_sys_symlink fs/namei.c:4143 [inline] __se_sys_symlink fs/namei.c:4141 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4141 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4556a7 RSP: 002b:00007ffc7fa4f298 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 000000000000007f RCX: 00000000004556a7 RDX: 0000000000000000 RSI: 00000000004badf3 RDI: 00007ffc7fa4ffd0 RBP: 0000000000000013 R08: 0000000000000000 R09: 0000000002779940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380 random: crng init done gfs2: gfs2 mount does not exist hM==: renamed from lo gfs2: gfs2 mount does not exist tmpfs: No value for mount option ' L' tmpfs: No value for mount option ' L' IPVS: ftp: loaded support on port[0] = 21 autofs4:pid:11376:autofs4_fill_super: called with bogus options tmpfs: No value for mount option 'e'UЂt D7].9*W Xa^wގxSWx"_41.rf&:G|A"' autofs4:pid:11379:autofs4_fill_super: called with bogus options tmpfs: No value for mount option 'e'UЂt D7].9*W Xa^wގxSWx"_41.rf&:G|A"' devpts: called with bogus options devpts: called with bogus options devpts: called with bogus options libceph: parse_ips bad ip '0.file' libceph: parse_ips bad ip '0.file' 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0