Skip to content

Instantly share code, notes, and snippets.

View trisk's full-sized avatar
🧲
💾

Albert Lee trisk

🧲
💾
View GitHub Profile
#!/bin/bash
if [ "${EUID}" -ne 0 ]; then
(>&2 echo "only support exec as root.")
exit 1
fi
set -euo pipefail
# global errors
Thread 8 (Thread 8):
#0 __read_once_size (lock=0xffff88010bdc6d1c, val=<value optimized out>) at ./include/linux/compiler.h:178
#1 atomic_read (lock=0xffff88010bdc6d1c, val=<value optimized out>) at ./arch/x86/include/asm/atomic.h:27
#2 virt_spin_lock (lock=0xffff88010bdc6d1c, val=<value optimized out>) at ./arch/x86/include/asm/qspinlock.h:63
#3 native_queued_spin_lock_slowpath (lock=0xffff88010bdc6d1c, val=<value optimized out>) at kernel/locking/qspinlock.c:305
#4 0xffffffff817b0edb in pv_queued_spin_lock_slowpath (lock=0xffff88010bdc6d1c) at ./arch/x86/include/asm/paravirt.h:669
#5 queued_spin_lock_slowpath (lock=0xffff88010bdc6d1c) at ./arch/x86/include/asm/qspinlock.h:29
#6 queued_spin_lock (lock=0xffff88010bdc6d1c) at ./include/asm-generic/qspinlock.h:90
#7 do_raw_spin_lock (lock=0xffff88010bdc6d1c) at ./include/linux/spinlock.h:166
#8 __raw_spin_lock (lock=0xffff88010bdc6d1c) at ./include/linux/spinlock_api_smp.h:143
#!/bin/sh
# fails on zfsonlinux 0.7.7 with ENOSPC at "9259" (2048th file)
# fails after 2047 entries added, while creating "9259"
# we create more files after ENOSPC
DIR="DST"
mkdir "${DIR}" || exit 1
count=0
total=0
for name in \
4718 8139 471 2269 406 592 2313 4781 6121 2287 4615 926 8034 951 8043 4662 \
> ::threadlist
ADDR PROC LWP CLS PRI WCHAN
fffffffffbc4a080 fffffffffbc49080 fffffffffbc4e060 0 96 0
PC: _resume_from_idle+0x126 CMD: sched
stack pointer for thread fffffffffbc4a080: fffffffffbc8a110
[ fffffffffbc8a110 _resume_from_idle+0x126() ]
swtch+0x141()
sched+0x835()
main+0x46c()
_locore_start+0x90()
@trisk
trisk / gist:358565d42e850aae498869ec7c53a638
Created April 1, 2018 09:54
30E2 ignoring neighbor solicitation
admin@router:/tmp/home/root# /mnt/sda1/tcpdump.sh -i vlan2 ip6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan2, link-type EN10MB (Ethernet), capture size 262144 bytes
04:49:35.262273 IP6 fe80::16dd:a9ff:fe8d:4838.546 > ff02::1:2.547: dhcp6 solicit
0x0000: 6000 0000 0059 1101 fe80 0000 0000 0000 `....Y..........
0x0010: 16dd a9ff fe8d 4838 ff02 0000 0000 0000 ......H8........
0x0020: 0000 0000 0001 0002 0222 0223 0059 afbe .........".#.Y..
0x0030: 010b b546 0001 000a 0003 0001 14dd a98d ...F............
0x0040: 4838 000e 0000 0008 0002 ffff 0006 0004 H8..............
0x0050: 0017 0018 0019 0029 000d 4838 0000 0000 .......)..H8....
# zpool replace p2 /dev/s3-1
INFO: task txg_sync:4950 blocked for more than 120 seconds.
Tainted: P O 4.14.24 #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
txg_sync D 0 4950 2 0x80000080
Call Trace:
__schedule+0x2e1/0x730
? __dbuf_hold_impl+0x15a/0x5b0 [zfs]
? spl_kmem_alloc+0x96/0x1a0 [spl]
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws.com/00000060 #012 req_id: (null) id-2: (null). Won't retry.
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws.com/0000005d #012 req_id: (null) id-2: (null). Won't retry.
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws.com/0000005a #012 req_id: (null) id-2: (null). Won't retry.
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws.com/00000062 #012 req_id: (null) id-2: (null). Won't retry.
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws.com/00000059 #012 req_id: (null) id-2: (null). Won't retry.
Mar 8 13:11:05 localhost s3backer: Error Timeout (http: 100 curl 28) PUT https://keeptrisk-09403-s3disk-0.s3.amazonaws
# zpool replace p2 /dev/s3-1
INFO: task txg_sync:5338 blocked for more than 120 seconds.
Tainted: P O 4.14.24 #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
txg_sync D 0 5338 2 0x80000080
Call Trace:
__schedule+0x2e1/0x730
? __dbuf_hold_impl+0x15a/0x5b0 [zfs]
Installing kernel update This will take a while. Please wait patiently...
~/downloads/kernel ~
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Setting up Remove Process
No Match for argument: kernel-debug
Loading mirror speeds from cached hostfile
Package(s) kernel-debug available, but not installed.
No Match for argument: kernel-firmware
Package(s) kernel-firmware available, but not installed.
No Match for argument: microcode_ctl
@trisk
trisk / syslog.log
Last active January 29, 2018 21:09
Jan 29 14:50:21 rc_service: httpd 2753:notify_rc restart_firewall
Jan 29 14:50:21 miniupnpd[3240]: shutting down MiniUPnPd
Jan 29 14:50:21 start_nat_rules: apply the nat_rules (/tmp/nat_rules_vlan2_vlan2)!
Jan 29 14:50:21 start_nat_rules: (/tmp/nat_rules_vlan2_vlan2) success!
Jan 29 14:50:21 custom_script: Running /jffs/scripts/nat-start
Jan 29 14:50:35 custom_script: Running /jffs/scripts/firewall-start (args: vlan2)
Jan 29 14:50:35 miniupnpd[3279]: HTTP listening on port 55921
Jan 29 14:50:35 miniupnpd[3279]: Listening for NAT-PMP/PCP traffic on port 5351
Jan 29 14:51:57 dhcp6c: dhcp6c state change detected SOLICIT