loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS sector size (1024) and media sector size (512).
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: lock_acquire+0x4cb/0x520 kernel/locking/lockdep.c:5765
======================================================
WARNING: possible circular locking dependency detected
6.4.0-syzkaller-01647-g6e2332e0ab53 #0 Not tainted
------------------------------------------------------
syz-executor.2/32579 is trying to acquire lock:
ffffffff8c783c38 ((console_sem).lock){-.-.}-{2:2}, at: down_trylock+0x12/0x70 kernel/locking/semaphore.c:139
but task is already holding lock:
ffffffff91fd3438 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #3 (&obj_hash[i].lock){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
debug_object_assert_init+0x185/0x3a0 lib/debugobjects.c:928
debug_timer_assert_init kernel/time/timer.c:792 [inline]
debug_assert_init kernel/time/timer.c:837 [inline]
__mod_timer+0x9b/0xe80 kernel/time/timer.c:1020
add_timer+0x62/0x90 kernel/time/timer.c:1244
__queue_delayed_work+0x1a7/0x270 kernel/workqueue.c:1875
queue_delayed_work_on+0x109/0x120 kernel/workqueue.c:1900
psi_task_change+0x1bf/0x300 kernel/sched/psi.c:919
psi_enqueue kernel/sched/stats.h:139 [inline]
enqueue_task kernel/sched/core.c:2078 [inline]
activate_task kernel/sched/core.c:2112 [inline]
wake_up_new_task+0xc13/0x1000 kernel/sched/core.c:4871
kernel_clone+0x219/0x890 kernel/fork.c:2946
user_mode_thread+0xb1/0xf0 kernel/fork.c:2993
rest_init+0x27/0x2b0 init/main.c:698
arch_call_rest_init+0x13/0x30 init/main.c:830
start_kernel+0x3b1/0x490 init/main.c:1075
x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:556
x86_64_start_kernel+0xb3/0xc0 arch/x86/kernel/head64.c:537
secondary_startup_64_no_verify+0x167/0x16b
-> #2 (&rq->__lock){-.-.}-{2:2}:
_raw_spin_lock_nested+0x34/0x40 kernel/locking/spinlock.c:378
raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558
raw_spin_rq_lock kernel/sched/sched.h:1366 [inline]
rq_lock kernel/sched/sched.h:1675 [inline]
task_fork_fair+0x74/0x4f0 kernel/sched/fair.c:12172
sched_cgroup_fork+0x3d1/0x540 kernel/sched/core.c:4815
copy_process+0x4b39/0x75c0 kernel/fork.c:2615
kernel_clone+0xeb/0x890 kernel/fork.c:2915
user_mode_thread+0xb1/0xf0 kernel/fork.c:2993
rest_init+0x27/0x2b0 init/main.c:698
arch_call_rest_init+0x13/0x30 init/main.c:830
start_kernel+0x3b1/0x490 init/main.c:1075
x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:556
x86_64_start_kernel+0xb3/0xc0 arch/x86/kernel/head64.c:537
secondary_startup_64_no_verify+0x167/0x16b
-> #1 (&p->pi_lock){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
try_to_wake_up+0xab/0x1df0 kernel/sched/core.c:4229
up+0x79/0xb0 kernel/locking/semaphore.c:191
__up_console_sem+0xa4/0xc0 kernel/printk/printk.c:346
__console_unlock kernel/printk/printk.c:2685 [inline]
console_unlock+0x17d/0x1f0 kernel/printk/printk.c:3009
vga_remove_vgacon drivers/pci/vgaarb.c:189 [inline]
vga_remove_vgacon+0x96/0xe0 drivers/pci/vgaarb.c:170
virtio_gpu_pci_quirk drivers/gpu/drm/virtio/virtgpu_drv.c:61 [inline]
virtio_gpu_probe+0x308/0x3b0 drivers/gpu/drm/virtio/virtgpu_drv.c:92
virtio_dev_probe+0x57b/0x870 drivers/virtio/virtio.c:305
call_driver_probe drivers/base/dd.c:579 [inline]
really_probe+0x240/0xca0 drivers/base/dd.c:658
__driver_probe_device+0x1df/0x4b0 drivers/base/dd.c:798
driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:828
__driver_attach+0x271/0x570 drivers/base/dd.c:1214
bus_for_each_dev+0x12a/0x1c0 drivers/base/bus.c:368
bus_add_driver+0x2e9/0x640 drivers/base/bus.c:673
driver_register+0x162/0x4a0 drivers/base/driver.c:246
do_one_initcall+0x102/0x540 init/main.c:1239
do_initcall_level init/main.c:1312 [inline]
do_initcalls init/main.c:1328 [inline]
do_basic_setup init/main.c:1347 [inline]
kernel_init_freeable+0x64e/0xba0 init/main.c:1564
kernel_init+0x1e/0x2c0 init/main.c:1455
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
-> #0 ((console_sem).lock){-.-.}-{2:2}:
check_prev_add kernel/locking/lockdep.c:3142 [inline]
check_prevs_add kernel/locking/lockdep.c:3261 [inline]
validate_chain kernel/locking/lockdep.c:3876 [inline]
__lock_acquire+0x2e9d/0x5e20 kernel/locking/lockdep.c:5144
lock_acquire kernel/locking/lockdep.c:5761 [inline]
lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5726
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
down_trylock+0x12/0x70 kernel/locking/semaphore.c:139
__down_trylock_console_sem+0x40/0x120 kernel/printk/printk.c:329
console_trylock kernel/printk/printk.c:2618 [inline]
console_trylock_spinning kernel/printk/printk.c:1927 [inline]
vprintk_emit+0x16b/0x600 kernel/printk/printk.c:2306
vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50
_printk+0xbf/0xf0 kernel/printk/printk.c:2328
panic+0x223/0x730 kernel/panic.c:334
__stack_chk_fail+0x19/0x20 kernel/panic.c:759
lock_acquire+0x4cb/0x520 kernel/locking/lockdep.c:5765
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717
debug_rcu_head_queue kernel/rcu/rcu.h:226 [inline]
__call_rcu_common.constprop.0+0x2c/0x7e0 kernel/rcu/tree.c:2634
destroy_inode+0x129/0x1b0 fs/inode.c:315
iput_final fs/inode.c:1789 [inline]
iput.part.0+0x50a/0x740 fs/inode.c:1815
iput+0x5c/0x80 fs/inode.c:1805
ntfs_fill_super+0x316d/0x3c20 fs/ntfs3/super.c:1267
get_tree_bdev+0x43e/0x7d0 fs/super.c:1319
vfs_get_tree+0x8d/0x350 fs/super.c:1520
do_new_mount fs/namespace.c:3335 [inline]
path_mount+0x136e/0x1e70 fs/namespace.c:3662
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount fs/namespace.c:3861 [inline]
__x64_sys_mount+0x283/0x300 fs/namespace.c:3861
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
other info that might help us debug this:
Chain exists of:
(console_sem).lock --> &rq->__lock --> &obj_hash[i].lock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&obj_hash[i].lock);
lock(&rq->__lock);
lock(&obj_hash[i].lock);
lock((console_sem).lock);
*** DEADLOCK ***
2 locks held by syz-executor.2/32579:
#0: ffff88802df7c0e0 (&type->s_umount_key#91/1){+.+.}-{3:3}, at: alloc_super+0x22e/0xb60 fs/super.c:228
#1: ffffffff91fd3438 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717
stack backtrace:
CPU: 2 PID: 32579 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-01647-g6e2332e0ab53 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
check_noncircular+0x2df/0x3b0 kernel/locking/lockdep.c:2195
check_prev_add kernel/locking/lockdep.c:3142 [inline]
check_prevs_add kernel/locking/lockdep.c:3261 [inline]
validate_chain kernel/locking/lockdep.c:3876 [inline]
__lock_acquire+0x2e9d/0x5e20 kernel/locking/lockdep.c:5144
lock_acquire kernel/locking/lockdep.c:5761 [inline]
lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5726
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
down_trylock+0x12/0x70 kernel/locking/semaphore.c:139
__down_trylock_console_sem+0x40/0x120 kernel/printk/printk.c:329
console_trylock kernel/printk/printk.c:2618 [inline]
console_trylock_spinning kernel/printk/printk.c:1927 [inline]
vprintk_emit+0x16b/0x600 kernel/printk/printk.c:2306
vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50
_printk+0xbf/0xf0 kernel/printk/printk.c:2328
panic+0x223/0x730 kernel/panic.c:334
__stack_chk_fail+0x19/0x20 kernel/panic.c:759
lock_acquire+0x4cb/0x520 kernel/locking/lockdep.c:5765
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717
debug_rcu_head_queue kernel/rcu/rcu.h:226 [inline]
__call_rcu_common.constprop.0+0x2c/0x7e0 kernel/rcu/tree.c:2634
destroy_inode+0x129/0x1b0 fs/inode.c:315
iput_final fs/inode.c:1789 [inline]
iput.part.0+0x50a/0x740 fs/inode.c:1815
iput+0x5c/0x80 fs/inode.c:1805
ntfs_fill_super+0x316d/0x3c20 fs/ntfs3/super.c:1267
get_tree_bdev+0x43e/0x7d0 fs/super.c:1319
vfs_get_tree+0x8d/0x350 fs/super.c:1520
do_new_mount fs/namespace.c:3335 [inline]
path_mount+0x136e/0x1e70 fs/namespace.c:3662
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount fs/namespace.c:3861 [inline]
__x64_sys_mount+0x283/0x300 fs/namespace.c:3861
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8cb028d8ba
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8cb10c4f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000001f7f7 RCX: 00007f8cb028d8ba
RDX: 000000002001f800 RSI: 000000002001f840 RDI: 00007f8cb10c4fe0
RBP: 00007f8cb10c5020 R08: 00007f8cb10c5020 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000002001f800
R13: 000000002001f840 R14: 00007f8cb10c4fe0 R15: 000000002001f880
CPU: 2 PID: 32579 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-01647-g6e2332e0ab53 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
panic+0x686/0x730 kernel/panic.c:340
__stack_chk_fail+0x19/0x20 kernel/panic.c:759
lock_acquire+0x4cb/0x520 kernel/locking/lockdep.c:5765
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
debug_object_activate+0x186/0x4f0 lib/debugobjects.c:717
debug_rcu_head_queue kernel/rcu/rcu.h:226 [inline]
__call_rcu_common.constprop.0+0x2c/0x7e0 kernel/rcu/tree.c:2634
destroy_inode+0x129/0x1b0 fs/inode.c:315
iput_final fs/inode.c:1789 [inline]
iput.part.0+0x50a/0x740 fs/inode.c:1815
iput+0x5c/0x80 fs/inode.c:1805
ntfs_fill_super+0x316d/0x3c20 fs/ntfs3/super.c:1267
get_tree_bdev+0x43e/0x7d0 fs/super.c:1319
vfs_get_tree+0x8d/0x350 fs/super.c:1520
do_new_mount fs/namespace.c:3335 [inline]
path_mount+0x136e/0x1e70 fs/namespace.c:3662
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount fs/namespace.c:3861 [inline]
__x64_sys_mount+0x283/0x300 fs/namespace.c:3861
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8cb028d8ba
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8cb10c4f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000001f7f7 RCX: 00007f8cb028d8ba
RDX: 000000002001f800 RSI: 000000002001f840 RDI: 00007f8cb10c4fe0
RBP: 00007f8cb10c5020 R08: 00007f8cb10c5020 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000002001f800
R13: 000000002001f840 R14: 00007f8cb10c4fe0 R15: 000000002001f880