Skip to content

Instantly share code, notes, and snippets.

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

Yunseong Kim kzall0c

🏠
Working from home
View GitHub Profile
@kzall0c
kzall0c / kcov-usb-invalid-sleeping.log
Created July 25, 2025 19:33
PREEPT_RT have BUG from f85d39dd7ed8 ("kcov, usb: disable interrupts in kcov_remote_start_usb_softirq")
[ 114.639440][ C1] BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48
[ 114.639474][ C1] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 30, name: ksoftirqd/1
[ 114.639483][ C1] preempt_count: 0, expected: 0
[ 114.639488][ C1] RCU nest depth: 2, expected: 2
[ 114.639501][ C1] CPU: 1 UID: 0 PID: 30 Comm: ksoftirqd/1 Tainted: G W 6.16.0-rc1-rt1 #11 PREEMPT_RT
[ 114.639516][ C1] Tainted: [W]=WARN
[ 114.639519][ C1] Hardware name: QEMU KVM Virtual Machine, BIOS 2025.02-8 05/13/2025
[ 114.639525][ C1] Call trace:
[ 114.639529][ C1] show_stack+0x2c/0x3c (C)
[ 114.639561][ C1] __dump_stack+0x30/0x40
@kzall0c
kzall0c / PREEMPT_RT-hardlockup.log
Created July 25, 2025 00:05
https://lore.kernel.org/linux-rt-devel/[email protected]/ ``` $ 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
@kzall0c
kzall0c / PREEMPT_RT-perf-soft-lockup.log
Created July 25, 2025 00:00
https://lore.kernel.org/linux-rt-devel/[email protected]/ ``` $ 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:
@kzall0c
kzall0c / 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 <[email protected]>
* Triggers kernel WARN and UBSAN with disabled child perf event.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
@kzall0c
kzall0c / 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:
@kzall0c
kzall0c / 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/[email protected]/ 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>