BUG: sleeping function called from invalid context at mm/slab.h:565 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8641, name: syz-executor.3 1 lock held by syz-executor.3/8641: #0: ffffffff88e558b8 (sb_lock){+.+.}, at: spin_lock include/linux/spinlock.h:338 [inline] #0: ffffffff88e558b8 (sb_lock){+.+.}, at: sget_fc+0xba/0x700 fs/super.c:521 Preemption disabled at: [] spin_lock include/linux/spinlock.h:338 [inline] [] sget_fc+0xba/0x700 fs/super.c:521 CPU: 0 PID: 8641 Comm: syz-executor.3 Not tainted 5.5.0-syzkaller #0 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+0x12d/0x187 lib/dump_stack.c:118 ___might_sleep.cold.99+0x1f5/0x238 kernel/sched/core.c:6800 __might_sleep+0x95/0x190 kernel/sched/core.c:6753 slab_pre_alloc_hook mm/slab.h:565 [inline] slab_alloc mm/slab.c:3306 [inline] __do_kmalloc mm/slab.c:3654 [inline] __kmalloc+0x2de/0x790 mm/slab.c:3665 kmalloc include/linux/slab.h:561 [inline] path_remove_extra_slash.part.7+0x99/0x260 fs/ceph/super.c:495 path_remove_extra_slash fs/ceph/super.c:482 [inline] compare_mount_options fs/ceph/super.c:553 [inline] ceph_compare_super+0x1f0/0x510 fs/ceph/super.c:1051 sget_fc+0x1bd/0x700 fs/super.c:524 ceph_get_tree+0x59a/0x1370 fs/ceph/super.c:1126 vfs_get_tree+0x86/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1270/0x1b60 fs/namespace.c:3142 __do_sys_mount fs/namespace.c:3351 [inline] __se_sys_mount fs/namespace.c:3328 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3328 do_syscall_64+0xca/0x5f0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b399 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcca437dc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fcca437e6d4 RCX: 000000000045b399 RDX: 0000000020000140 RSI: 00000000200000c0 RDI: 0000000020000040 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000745 R14: 00000000004c8c38 R15: 000000000075bf2c ceph: No mds server is up or the cluster is laggy