nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
WARNING: CPU: 0 PID: 4473 at kernel/events/core.c:331 event_function_local.constprop.115+0x535/0x5e0 kernel/events/core.c:331
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 4473 Comm: syz-executor3 Not tainted 4.18.0+ #36
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+0x1c9/0x2b4 lib/dump_stack.c:113
panic+0x238/0x4e7 kernel/panic.c:184
__warn.cold.8+0x163/0x1ba kernel/panic.c:536
report_bug+0x252/0x2d0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
RIP: 0010:event_function_local.constprop.115+0x535/0x5e0 kernel/events/core.c:331
Code: 00 48 8b 95 70 ff ff ff e9 ad fc ff ff 48 89 85 70 ff ff ff e8 ec 8e 26 00 48 8b 85 70 ff ff ff e9 eb fc ff ff e8 eb 94 e7 ff <0f> 0b e9 65 fe ff ff 48 89 df e8 ec 8e 26 00 48 8d 55 d8 e9 5a fb
RSP: 0018:ffff8801db007d00 EFLAGS: 00010006
RAX: ffff8801b2c2a400 RBX: ffff8801ae209800 RCX: ffffffff8195cab5
RDX: 0000000000010000 RSI: ffffffff8195ccb5 RDI: 0000000000000005
RBP: ffff8801db007da0 R08: ffff8801b2c2a400 R09: ffffed0035c41301
R10: ffffed0035c41301 R11: ffff8801ae20980b R12: ffff8801db031c00
R13: ffff8801ad2262c0 R14: 1ffff1003b600fa3 R15: ffff8801ac3d6340
perf_event_disable_local kernel/events/core.c:2180 [inline]
perf_pending_event+0x242/0x2a0 kernel/events/core.c:5811
irq_work_run_list+0x200/0x280 kernel/irq_work.c:155
irq_work_run+0x1d/0x50 kernel/irq_work.c:170
smp_irq_work_interrupt+0x11a/0x670 arch/x86/kernel/irq_work.c:21
irq_work_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:895
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline]
RIP: 0010:kmem_cache_free+0xb3/0x2d0 mm/slab.c:3757
Code: 84 f1 00 00 00 41 f7 c5 00 02 00 00 0f 84 c2 00 00 00 e8 b0 88 a3 ff 48 83 3d 50 99 35 06 00 0f 84 04 02 00 00 4c 89 ef 57 9d <0f> 1f 44 00 00 4c 8b 6d 08 0f 1f 44 00 00 65 8b 05 b8 5d 45 7e 89
RSP: 0018:ffff8801a1cb7a50 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff09
RAX: 0000000000000007 RBX: ffff88019d1c4b40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000286
RBP: ffff8801a1cb7a70 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801dad75dc0
R13: 0000000000000286 R14: ffffffff81cb03e2 R15: 0000000000000000
putname+0xf2/0x130 fs/namei.c:261
filename_lookup+0x397/0x510 fs/namei.c:2316
user_path_at_empty+0x40/0x50 fs/namei.c:2567
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x129/0x210 fs/stat.c:185
vfs_lstat include/linux/fs.h:3125 [inline]
__do_sys_newlstat+0x8f/0x110 fs/stat.c:350
__se_sys_newlstat fs/stat.c:344 [inline]
__x64_sys_newlstat+0x54/0x80 fs/stat.c:344
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x456465
Code: d4 ff ff ff 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 c7 c2 d4 ff ff ff f7 d8 64 89
RSP: 002b:00007ffc75a446b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000456465
RDX: 00007ffc75a446d0 RSI: 00007ffc75a446d0 RDI: 00007ffc75a44760
RBP: 000000000000013a R08: 0000000000000000 R09: 000000000000000b
R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffc75a457c0
R13: 0000000002004940 R14: 0000000000000000 R15: badc0ffeebadface
======================================================
WARNING: possible circular locking dependency detected
4.18.0+ #36 Not tainted
------------------------------------------------------
syz-executor3/4473 is trying to acquire lock:
00000000f8a9aa71 ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 kernel/locking/semaphore.c:136
but task is already holding lock:
0000000062fdcab7 (&ctx->lock){-...}, at: perf_ctx_lock kernel/events/core.c:157 [inline]
0000000062fdcab7 (&ctx->lock){-...}, at: event_function_local.constprop.115+0x2ae/0x5e0 kernel/events/core.c:318
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #3 (&ctx->lock){-...}:
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
perf_event_context_sched_out kernel/events/core.c:3129 [inline]
__perf_event_task_sched_out+0x1328/0x1a60 kernel/events/core.c:3221
perf_event_task_sched_out include/linux/perf_event.h:1112 [inline]
prepare_task_switch kernel/sched/core.c:2609 [inline]
context_switch kernel/sched/core.c:2788 [inline]
__schedule+0x107a/0x1ec0 kernel/sched/core.c:3471
schedule+0xfb/0x450 kernel/sched/core.c:3515
exit_to_usermode_loop+0x22f/0x380 arch/x86/entry/common.c:152
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
-> #2 (&rq->lock){-.-.}:
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
rq_lock kernel/sched/sched.h:1821 [inline]
task_fork_fair+0x93/0x680 kernel/sched/fair.c:9574
sched_fork+0x44b/0xbd0 kernel/sched/core.c:2353
copy_process.part.36+0x1c7c/0x7170 kernel/fork.c:1804
copy_process kernel/fork.c:1647 [inline]
_do_fork+0x291/0x12a0 kernel/fork.c:2130
kernel_thread+0x34/0x40 kernel/fork.c:2189
rest_init+0x22/0xe4 init/main.c:408
start_kernel+0x913/0x94e init/main.c:738
x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:452
x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:433
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:242
-> #1 (&p->pi_lock){-.-.}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152
try_to_wake_up+0xd2/0x12a0 kernel/sched/core.c:1960
wake_up_process+0x10/0x20 kernel/sched/core.c:2123
__up.isra.1+0x1c0/0x2a0 kernel/locking/semaphore.c:262
up+0x13c/0x1c0 kernel/locking/semaphore.c:187
__up_console_sem+0xbe/0x1b0 kernel/printk/printk.c:242
console_unlock+0x506/0x1110 kernel/printk/printk.c:2427
do_con_write+0x1375/0x23d0 drivers/tty/vt/vt.c:2770
con_write+0x25/0xc0 drivers/tty/vt/vt.c:3119
process_output_block drivers/tty/n_tty.c:580 [inline]
n_tty_write+0x6c1/0x11a0 drivers/tty/n_tty.c:2317
do_tty_write drivers/tty/tty_io.c:958 [inline]
tty_write+0x3f1/0x880 drivers/tty/tty_io.c:1042
__vfs_write+0x117/0x9d0 fs/read_write.c:485
vfs_write+0x1f8/0x560 fs/read_write.c:549
ksys_write+0x101/0x260 fs/read_write.c:598
__do_sys_write fs/read_write.c:610 [inline]
__se_sys_write fs/read_write.c:607 [inline]
__x64_sys_write+0x73/0xb0 fs/read_write.c:607
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
-> #0 ((console_sem).lock){-.-.}:
lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152
down_trylock+0x13/0x70 kernel/locking/semaphore.c:136
__down_trylock_console_sem+0xae/0x200 kernel/printk/printk.c:225
console_trylock+0x15/0xa0 kernel/printk/printk.c:2246
console_trylock_spinning kernel/printk/printk.c:1648 [inline]
vprintk_emit+0x31f/0x910 kernel/printk/printk.c:1923
vprintk_default+0x28/0x30 kernel/printk/printk.c:1965
vprintk_func+0x7a/0x117 kernel/printk/printk_safe.c:398
printk+0xa7/0xcf kernel/printk/printk.c:1998
__warn.cold.8+0x73/0x1ba kernel/panic.c:518
report_bug+0x252/0x2d0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
event_function_local.constprop.115+0x535/0x5e0 kernel/events/core.c:331
perf_event_disable_local kernel/events/core.c:2180 [inline]
perf_pending_event+0x242/0x2a0 kernel/events/core.c:5811
irq_work_run_list+0x200/0x280 kernel/irq_work.c:155
irq_work_run+0x1d/0x50 kernel/irq_work.c:170
smp_irq_work_interrupt+0x11a/0x670 arch/x86/kernel/irq_work.c:21
irq_work_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:895
arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline]
kmem_cache_free+0xb3/0x2d0 mm/slab.c:3757
putname+0xf2/0x130 fs/namei.c:261
filename_lookup+0x397/0x510 fs/namei.c:2316
user_path_at_empty+0x40/0x50 fs/namei.c:2567
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x129/0x210 fs/stat.c:185
vfs_lstat include/linux/fs.h:3125 [inline]
__do_sys_newlstat+0x8f/0x110 fs/stat.c:350
__se_sys_newlstat fs/stat.c:344 [inline]
__x64_sys_newlstat+0x54/0x80 fs/stat.c:344
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
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 ***
2 locks held by syz-executor3/4473:
#0: 00000000507b6b9f (&cpuctx_lock){-...}, at: perf_ctx_lock kernel/events/core.c:155 [inline]
#0: 00000000507b6b9f (&cpuctx_lock){-...}, at: event_function_local.constprop.115+0x28d/0x5e0 kernel/events/core.c:318
#1: 0000000062fdcab7 (&ctx->lock){-...}, at: perf_ctx_lock kernel/events/core.c:157 [inline]
#1: 0000000062fdcab7 (&ctx->lock){-...}, at: event_function_local.constprop.115+0x2ae/0x5e0 kernel/events/core.c:318
stack backtrace:
CPU: 0 PID: 4473 Comm: syz-executor3 Not tainted 4.18.0+ #36
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+0x1c9/0x2b4 lib/dump_stack.c:113
print_circular_bug.isra.37.cold.58+0x1bd/0x27d kernel/locking/lockdep.c:1227
check_prev_add kernel/locking/lockdep.c:1867 [inline]
check_prevs_add kernel/locking/lockdep.c:1980 [inline]
validate_chain kernel/locking/lockdep.c:2421 [inline]
__lock_acquire+0x3449/0x5020 kernel/locking/lockdep.c:3435
lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152
down_trylock+0x13/0x70 kernel/locking/semaphore.c:136
__down_trylock_console_sem+0xae/0x200 kernel/printk/printk.c:225
console_trylock+0x15/0xa0 kernel/printk/printk.c:2246
console_trylock_spinning kernel/printk/printk.c:1648 [inline]
vprintk_emit+0x31f/0x910 kernel/printk/printk.c:1923
vprintk_default+0x28/0x30 kernel/printk/printk.c:1965
vprintk_func+0x7a/0x117 kernel/printk/printk_safe.c:398
printk+0xa7/0xcf kernel/printk/printk.c:1998
__warn.cold.8+0x73/0x1ba kernel/panic.c:518
report_bug+0x252/0x2d0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
RIP: 0010:event_function_local.constprop.115+0x535/0x5e0 kernel/events/core.c:331
Code: 00 48 8b 95 70 ff ff ff e9 ad fc ff ff 48 89 85 70 ff ff ff e8 ec 8e 26 00 48 8b 85 70 ff ff ff e9 eb fc ff ff e8 eb 94 e7 ff <0f> 0b e9 65 fe ff ff 48 89 df e8 ec 8e 26 00 48 8d 55 d8 e9 5a fb
RSP: 0018:ffff8801db007d00 EFLAGS: 00010006
RAX: ffff8801b2c2a400 RBX: ffff8801ae209800 RCX: ffffffff8195cab5
RDX: 0000000000010000 RSI: ffffffff8195ccb5 RDI: 0000000000000005
RBP: ffff8801db007da0 R08: ffff8801b2c2a400 R09: ffffed0035c41301
R10: ffffed0035c41301 R11: ffff8801ae20980b R12: ffff8801db031c00
R13: ffff8801ad2262c0 R14: 1ffff1003b600fa3 R15: ffff8801ac3d6340
perf_event_disable_local kernel/events/core.c:2180 [inline]
perf_pending_event+0x242/0x2a0 kernel/events/core.c:5811
irq_work_run_list+0x200/0x280 kernel/irq_work.c:155
irq_work_run+0x1d/0x50 kernel/irq_work.c:170
smp_irq_work_interrupt+0x11a/0x670 arch/x86/kernel/irq_work.c:21
irq_work_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:895
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline]
RIP: 0010:kmem_cache_free+0xb3/0x2d0 mm/slab.c:3757
Code: 84 f1 00 00 00 41 f7 c5 00 02 00 00 0f 84 c2 00 00 00 e8 b0 88 a3 ff 48 83 3d 50 99 35 06 00 0f 84 04 02 00 00 4c 89 ef 57 9d <0f> 1f 44 00 00 4c 8b 6d 08 0f 1f 44 00 00 65 8b 05 b8 5d 45 7e 89
RSP: 0018:ffff8801a1cb7a50 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff09
RAX: 0000000000000007 RBX: ffff88019d1c4b40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000286
RBP: ffff8801a1cb7a70 R08: 0000000000000058 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801dad75dc0
R13: 0000000000000286 R14: ffffffff81cb03e2 R15: 0000000000000000
putname+0xf2/0x130 fs/namei.c:261
filename_lookup+0x397/0x510 fs/namei.c:2316
user_path_at_empty+0x40/0x50 fs/namei.c:2567
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x129/0x210 fs/stat.c:185
vfs_lstat include/linux/fs.h:3125 [inline]
__do_sys_newlstat+0x8f/0x110 fs/stat.c:350
__se_sys_newlstat fs/stat.c:344 [inline]
__x64_sys_newlstat+0x54/0x80 fs/stat.c:344
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
Lost 12 message(s)!
Shutting down cpus with NMI
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..