tmpfs: Bad value for 'size'
Call Trace:
======================================================
WARNING: possible circular locking dependency detected
5.17.0-next-20220325 #1 Not tainted
------------------------------------------------------
syz-executor.7/5824 is trying to acquire lock:
ffffffff851f55f8 ((console_sem).lock){-.-.}-{2:2}, at: down_trylock+0xe/0x60
but task is already holding lock:
ffff888041699c20 (&ctx->lock){....}-{2:2}, at: __perf_event_task_sched_in+0x4a3/0xa80
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #3 (&ctx->lock){....}-{2:2}:
_raw_spin_lock+0x2a/0x40
__perf_event_task_sched_out+0x6b3/0x1c60
__schedule+0xec4/0x2450
schedule+0xd2/0x1f0
exit_to_user_mode_prepare+0x114/0x1a0
syscall_exit_to_user_mode+0x19/0x50
do_syscall_64+0x48/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
-> #2 (&rq->__lock){-.-.}-{2:2}:
_raw_spin_lock_nested+0x30/0x40
raw_spin_rq_lock_nested+0x1e/0x30
task_fork_fair+0x63/0x4d0
sched_cgroup_fork+0x343/0x490
copy_process+0x4054/0x6d60
kernel_clone+0xe7/0xa60
kernel_thread+0xb5/0xf0
rest_init+0x24/0x3d0
start_kernel+0x489/0x4aa
secondary_startup_64_no_verify+0xd5/0xdb
-> #1 (&p->pi_lock){-.-.}-{2:2}:
_raw_spin_lock_irqsave+0x39/0x50
try_to_wake_up+0xa5/0x1060
up+0x75/0xb0
__up_console_sem+0x6e/0x80
console_unlock+0x603/0xd40
vprintk_emit+0x1b4/0x550
vprintk+0x80/0x90
_printk+0xba/0xed
kauditd_hold_skb.cold+0x3f/0x4e
kauditd_send_queue+0x22b/0x290
kauditd_thread+0x762/0xba0
kthread+0x2f2/0x3b0
ret_from_fork+0x22/0x30
-> #0 ((console_sem).lock){-.-.}-{2:2}:
__lock_acquire+0x2c2f/0x6120
lock_acquire+0x1a2/0x4d0
_raw_spin_lock_irqsave+0x39/0x50
down_trylock+0xe/0x60
__down_trylock_console_sem+0x3b/0xd0
vprintk_emit+0x162/0x550
vprintk+0x80/0x90
_printk+0xba/0xed
show_trace_log_lvl+0x57/0x2bb
ex_handler_msr+0x311/0x3a0
fixup_exception+0x307/0xff0
exc_general_protection+0xf6/0x2d0
asm_exc_general_protection+0x1e/0x30
x86_pmu_enable_all+0x132/0x3c0
x86_pmu_enable+0x580/0xd90
__perf_event_task_sched_in+0x775/0xa80
finish_task_switch.isra.0+0x45c/0x870
__schedule+0x895/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
other info that might help us debug this:
Chain exists of:
(console_sem).lock --> &rq->__lock --> &ctx->lock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&ctx->lock);
lock(&rq->__lock);
lock(&ctx->lock);
lock((console_sem).lock);
*** DEADLOCK ***
3 locks held by syz-executor.7/5824:
#0: ffff888041699cb0 (&ctx->mutex){+.+.}-{3:3}, at: perf_event_init_task+0x261/0x800
#1: ffff88806ce3f220 (&cpuctx_lock){-...}-{2:2}, at: __perf_event_task_sched_in+0x492/0xa80
#2: ffff888041699c20 (&ctx->lock){....}-{2:2}, at: __perf_event_task_sched_in+0x4a3/0xa80
stack backtrace:
CPU: 0 PID: 5824 Comm: syz-executor.7 Not tainted 5.17.0-next-20220325 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
dump_stack_lvl+0x8b/0xb3
check_noncircular+0x25f/0x2e0
__lock_acquire+0x2c2f/0x6120
lock_acquire+0x1a2/0x4d0
_raw_spin_lock_irqsave+0x39/0x50
down_trylock+0xe/0x60
__down_trylock_console_sem+0x3b/0xd0
vprintk_emit+0x162/0x550
vprintk+0x80/0x90
_printk+0xba/0xed
show_trace_log_lvl+0x57/0x2bb
ex_handler_msr+0x311/0x3a0
fixup_exception+0x307/0xff0
exc_general_protection+0xf6/0x2d0
asm_exc_general_protection+0x1e/0x30
RIP: 0010:x86_pmu_enable_all+0x132/0x3c0
Code: f7 d7 49 21 c7 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 64 02 00 00 48 8b 9b 70 01 00 00 4c 89 fa 44 89 f8 48 c1 ea 20 89 d9 <0f> 30 0f 1f 44 00 00 e8 12 db 42 00 e8 0d db 42 00 8b 1d 83 ba 8c
RSP: 0018:ffff88804401f4e8 EFLAGS: 00010016
RAX: 0000000000530076 RBX: 00000000c0010200 RCX: 00000000c0010200
RDX: 0000000000000100 RSI: ffffffff8100dd36 RDI: ffff888008328cf0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff8100dd25 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88806ce21c20 R14: ffff88806ce21e20 R15: 0000010000530076
x86_pmu_enable+0x580/0xd90
__perf_event_task_sched_in+0x775/0xa80
finish_task_switch.isra.0+0x45c/0x870
__schedule+0x895/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03236c2b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0320c38108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f03237d5f60 RCX: 00007f03236c2b19
RDX: 0000000020ffe000 RSI: 000000002000a400 RDI: 00000000000048aa
RBP: 000000002000a400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000020ffe000 R14: 0000000000000000 R15: 0000000020ffc000
x86_pmu_enable+0x580/0xd90
__perf_event_task_sched_in+0x775/0xa80
finish_task_switch.isra.0+0x45c/0x870
__schedule+0x895/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03236c2b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0320c38108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f03237d5f60 RCX: 00007f03236c2b19
RDX: 0000000020ffe000 RSI: 000000002000a400 RDI: 00000000000048aa
RBP: 000000002000a400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000020ffe000 R14: 0000000000000000 R15: 0000000020ffc000
Call Trace:
x86_pmu_enable+0x580/0xd90
__perf_event_task_sched_out+0x8fe/0x1c60
__schedule+0xec4/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03236c2b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0320c38108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f03237d5f60 RCX: 00007f03236c2b19
RDX: 0000000020ffe000 RSI: 000000002000a400 RDI: 00000000000048aa
RBP: 000000002000a400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000020ffe000 R14: 0000000000000000 R15: 0000000020ffc000
Call Trace:
x86_pmu_enable+0x580/0xd90
__perf_event_task_sched_in+0x775/0xa80
finish_task_switch.isra.0+0x45c/0x870
__schedule+0x895/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03236c2b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0320c38108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f03237d5f60 RCX: 00007f03236c2b19
RDX: 0000000020ffe000 RSI: 000000002000a400 RDI: 00000000000048aa
RBP: 000000002000a400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000020ffe000 R14: 0000000000000000 R15: 0000000020ffc000
Call Trace:
x86_pmu_stop+0x149/0x330
x86_pmu_del+0x1be/0x610
event_sched_out+0x2ed/0xe80
__perf_remove_from_context+0x87/0xbe0
event_function+0x297/0x3d0
remote_function+0x125/0x1b0
flush_smp_call_function_queue+0x1df/0x610
__sysvec_call_function_single+0x92/0x3a0
sysvec_call_function_single+0x3b/0xc0
asm_sysvec_call_function_single+0x12/0x20
RIP: 0010:__do_softirq+0x183/0x8c7
Code: 0a 00 00 00 48 89 44 24 18 48 c7 c7 20 9c 65 84 e8 02 e9 d1 ff 65 66 c7 05 88 72 c3 7b 00 00 e8 a3 86 0a fd fb b8 ff ff ff ff <48> c7 c3 c0 a0 00 85 41 0f bc c5 89 c1 83 c1 01 89 4c 24 04 75 41
RSP: 0018:ffff88806ce09f68 EFLAGS: 00000246
RAX: 00000000ffffffff RBX: ffff8880416c3580 RCX: 1ffffffff0b1b991
RDX: 0000000000000000 RSI: ffffffff814a8871 RDI: ffffffff8440017d
RBP: ffff8880081bd040 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff814a8858 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000182 R14: 0000000000000000 R15: 0000000000000000
__irq_exit_rcu+0x113/0x170
irq_exit_rcu+0x5/0x20
sysvec_apic_timer_interrupt+0x8e/0xc0
asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:finish_task_switch.isra.0+0x230/0x870
Code: 89 f7 48 c7 03 00 00 00 00 e8 8c 9b 20 03 4d 85 e4 75 ba 4c 89 f7 e8 af 2e f4 02 e8 5a eb 2a 00 fb 65 48 8b 1c 25 40 6f 02 00 <48> 8d bb 40 14 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1
RSP: 0018:ffff88804401f6d0 EFLAGS: 00000246
RAX: 0000000000000007 RBX: ffff8880416c3580 RCX: 1ffffffff0b1b991
RDX: 0000000000000000 RSI: ffffffff814a8871 RDI: ffffffff811f9cc6
RBP: ffff88804401f710 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff814a8858 R11: 0000000000000001 R12: ffffffff858dcc8c
R13: ffff888042e53580 R14: ffff88806ce37dc0 R15: ffff88806ce37dd8
__schedule+0x895/0x2450
preempt_schedule_common+0x45/0xc0
__cond_resched+0x13/0x20
__mutex_lock+0xa3/0x1480
inherit_event.constprop.0+0x222/0x970
inherit_task_group.isra.0+0x152/0x600
perf_event_init_task+0x37d/0x800
copy_process+0x1ee1/0x6d60
create_io_thread+0xb6/0xf0
io_uring_setup.cold+0x2450/0x2592
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03236c2b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0320c38108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f03237d5f60 RCX: 00007f03236c2b19
RDX: 0000000020ffe000 RSI: 000000002000a400 RDI: 00000000000048aa
RBP: 000000002000a400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000020ffe000 R14: 0000000000000000 R15: 0000000020ffc000
Bluetooth: hci0: command 0x080f tx timeout
----------------
Code disassembly (best guess):
0: f7 d7 not %edi
2: 49 21 c7 and %rax,%r15
5: 48 89 f8 mov %rdi,%rax
8: 48 c1 e8 03 shr $0x3,%rax
c: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
11: 0f 85 64 02 00 00 jne 0x27b
17: 48 8b 9b 70 01 00 00 mov 0x170(%rbx),%rbx
1e: 4c 89 fa mov %r15,%rdx
21: 44 89 f8 mov %r15d,%eax
24: 48 c1 ea 20 shr $0x20,%rdx
28: 89 d9 mov %ebx,%ecx
* 2a: 0f 30 wrmsr <-- trapping instruction
2c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
31: e8 12 db 42 00 callq 0x42db48
36: e8 0d db 42 00 callq 0x42db48
3b: 8b .byte 0x8b
3c: 1d .byte 0x1d
3d: 83 .byte 0x83
3e: ba .byte 0xba
3f: 8c .byte 0x8c