BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3} , at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9dad8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Not tainted 6.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e582e0 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888105b5a4d8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e76650 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888105b5aad8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e76650 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9cad8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 0 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e582e0 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9d6d8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e76650 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9d0d8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 0 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e76650 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9ced8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e582e0 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888105b5b2d8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e582e0 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9d6d8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 0 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e76650 R15: 00007ffcd927dd78 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2481, name: udevd preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by udevd/2481: #0: ffffffff83e6a560 (uuid_mutex){....}-{3:3}, at: btrfs_control_ioctl+0xa3/0x1a0 fs/btrfs/super.c:2258 #1: ffff888108a9ced8 (&fs_devs->device_list_mutex){....}-{3:3}, at: device_list_add+0x19f/0x820 fs/btrfs/volumes.c:828 #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: is_same_device fs/btrfs/volumes.c:746 [inline] #2: ffffffff83d825d0 (rcu_read_lock){....}-{1:2}, at: device_list_add+0x22b/0x820 fs/btrfs/volumes.c:883 CPU: 1 UID: 0 PID: 2481 Comm: udevd Tainted: G W 6.12.0-rc2-syzkaller #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:120 __might_resched+0x1a4/0x1c0 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5e/0x330 mm/slub.c:4141 getname_kernel+0x27/0x100 fs/namei.c:234 kern_path+0x12/0x80 fs/namei.c:2716 is_same_device fs/btrfs/volumes.c:748 [inline] device_list_add+0x262/0x820 fs/btrfs/volumes.c:883 btrfs_scan_one_device+0x22c/0x2c0 fs/btrfs/volumes.c:1463 btrfs_control_ioctl+0xb6/0x1a0 fs/btrfs/super.c:2263 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f066e71ad49 Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffcd927c008 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f066e71ad49 RDX: 00007ffcd927c018 RSI: 0000000090009427 RDI: 0000000000000009 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd927d058 R14: 0000559735e582e0 R15: 00007ffcd927dd78