Skip to content

Instantly share code, notes, and snippets.

View yskzalloc's full-sized avatar
🏠
Working from home

Yunseong Kim yskzalloc

🏠
Working from home
View GitHub Profile
@yskzalloc
yskzalloc / PREEMPT_RT-hardlockup.log
Created July 25, 2025 00:05
https://lore.kernel.org/linux-rt-devel/20250610080307.LMm1hleC@linutronix.de/ ``` $ git remote add rt-devel git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git $ git checkout v6.16-rc1-rt1 ``` Arm64 Server - RADXA Orion6 - Armv9.2 Architecture
📃 coverage
🤖 syscalls
🛒 corpus
💻 VMs
🔧 config
Kernel panic - not syncing: Hard LOCKUP
CPU: 1 UID: 0 PID: 9003 Comm: systemd-rfkill Tainted: G W 6.16.0-rc1-rt1 #11 PREEMPT_RT
Tainted: [W]=WARN
@yskzalloc
yskzalloc / PREEMPT_RT-perf-soft-lockup.log
Created July 25, 2025 00:00
https://lore.kernel.org/linux-rt-devel/20250610080307.LMm1hleC@linutronix.de/ ``` $ git remote add rt-devel git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git $ git checkout v6.16-rc1-rt1 ``` Arm64 Server - RADXA Orion6 - Armv9.2 Architecture - Quad Big Cortex®-A720 Up to 2.6GHz - Quad Medium Cortex®-A720 Up to 2.4GHz - Quad Lit…
perf lockup
watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [syz.1.915:10188]
CPU#2 Utilization every 4s during lockup:
#1: 100% system, 0% softirq, 0% hardirq, 0% idle
#2: 100% system, 0% softirq, 0% hardirq, 0% idle
#3: 100% system, 0% softirq, 1% hardirq, 0% idle
#4: 100% system, 0% softirq, 0% hardirq, 0% idle
#5: 100% system, 0% softirq, 0% hardirq, 0% idle
Modules linked in:
@yskzalloc
yskzalloc / perf-disabled-child.c
Last active July 24, 2025 18:48
Triggers kernel WARN and UBSAN by creating a disabled child perf event in a hardware event group. Link: https://lore.kernel.org/lkml/aIIT7fq3xG9qtRD8@J2N7QTR9R3/
/*
* Reproducer by Mark Rutland <mark.rutland@arm.com>
* Triggers kernel WARN and UBSAN with disabled child perf event.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
@yskzalloc
yskzalloc / kprobe_insn_boundary-stall.txt
Created June 27, 2024 03:48
scripts/decode_stacktrace.sh /usr/lib/debug/boot/vmlinux-6.8.0-36-generic $HOME/linux-source-6.8.0 < kprobe_insn_boundary-stall.txt
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:s:
rcu:
(detected by 0, t=6002 jiffies, g=24353, q=1 ncpus=1)1)
rcu: All QSes seen, last rcu_sched kthread activity 6002 (4294978930-4294972928), jiffies_till_next_fqs=1, root ->qsmask 0x0x0
rcu: rcu_sched kthread starved for 6002 jiffies! g24353 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0=0
rcu:
Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior.r.
rcu: RCU grace-period kthread stack dump:p:
task:rcu_sched state:R running task stack:0 pid:16 tgid:16 ppid:2 flags:0x0000000000
Call Trace:e:
@yskzalloc
yskzalloc / qdisc-null-ptr-deref.c
Last active June 21, 2024 16:06
Yun Levi and I submit the Linux kernel patch for fixing the NULL pointer dereference that can occur in perf trace events when using the veth and Bluetooth device. It's twice as fun working on it together! 💪 😎 😎 👍 kernel mailing list: https://lore.kernel.org/all/20240621114551.2061-3-yskelg@gmail.com/ bugzilla: https://bugzilla.redhat.com/show_bu…
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>