Skip to content

Instantly share code, notes, and snippets.

View mweinelt's full-sized avatar
❄️

Martin Weinelt mweinelt

❄️
View GitHub Profile
#!/usr/bin/lua
local uci = require 'luci.model.uci'
local crs = uci.cursor()
crs:delete('gluon-node-info', crs:get_first('gluon-node-info', 'owner'), 'contact')
crs:save('gluon-node-info')
crs:commit('gluon-node-info')
root@gw05:~# [ 6209.019380] BUG: unable to handle kernel paging request at ffff88013cffe9e4
[ 6209.019404] IP: [<ffffffff8150690b>] eth_header+0x3b/0xc0
[ 6209.019419] PGD 1a07067 PUD 0
[ 6209.019426] Oops: 0002 [#1] SMP
[ 6209.019432] Modules linked in: tun xt_nat iptable_nat nf_nat_ipv4 iptable_mangle nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables xt_conntrack ip6table_filter ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat xt_TCPMSS xt_tcpudp ip6table_mangle ip6_tables x_tables evdev nf_conntrack pcspkr batman_adv(OE) bridge stp llc libcrc32c autofs4 ext4 crc16 jbd2 crc32c_generic mbcache xen_blkfront xen_netfront
[ 6209.019481] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W OE 4.7.0-0.bpo.1-amd64 #1 Debian 4.7.8-1~bpo8+1
[ 6209.019492] task: ffff88003e344180 ti: ffff88003e34c000 task.ti: ffff88003e34c000
[ 6209.019498] RIP: e030:[<ffffffff8150690b>] [<ffffffff8150690b>] eth_header+0x3b/0xc0
[ 6209.019506] RSP: e02b:ffff88003f883950 EFLAGS: 00010246
[ 6209.019511] RAX: f
<Journey trainId="6613408012">
<JourneyAttributeList>
<JourneyAttribute from="27" to="36">
<Attribute priority="-1" type="NAME">
<AttributeVariant type="NORMAL">
<Text>Tram 8</Text>
</AttributeVariant>
</Attribute>
</JourneyAttribute>
<JourneyAttribute from="27" to="36">
[ 0.000000] Linux version 4.8.0-0.bpo.2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Debian 4.8.11-1~bpo8+1 (2016-12-14)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.8.0-0.bpo.2-amd64 root=/dev/mapper/hexa--vg-root ro nomodeset console=tty0 console=ttyS0,115200n8
[ 0.000000] x86/fpu: Legacy x87 FPU detected.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x0000000000090000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000000bffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000c0000-0x000000007eaa4fff] usable
www1 login: [ 21.212720] NOHZ: local_softirq_pending 08
[ 123.612926] NOHZ: local_softirq_pending 08
[ 185.052858] NOHZ: local_softirq_pending 08
[ 307.933074] NOHZ: local_softirq_pending 08
[ 594.653569] NOHZ: local_softirq_pending 08
[ 799.453421] NOHZ: local_softirq_pending 08
[ 819.933067] NOHZ: local_softirq_pending 08
[ 963.292934] NOHZ: local_softirq_pending 08
[ 1106.652382] NOHZ: local_softirq_pending 08
[ 1127.132972] NOHZ: local_softirq_pending 08
@mweinelt
mweinelt / opkg.strace
Created October 23, 2017 18:53
opkg segfaults when called with `list` parameter
execve("/bin/opkg", ["opkg", "list"], 0x7ffc5c08c118 /* 13 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x7fa883fdeb48) = 0
set_tid_address(0x7fa883fdeb80) = 3510
open("/etc/ld-musl-x86_64.path", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/libubox.so", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=41036, ...}) = 0
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\25,\0\0\0\0\0\0"..., 960) = 960
mmap(NULL, 2142208, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7fa883b68000
mmap(0x7fa883d71000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x7fa883d71000
root@64283-oomdebug-842:/# uptime
15:20:18 up 1:31, load average: 3.39, 1.30, 0.82
root@64283-oomdebug-842:/# [ 5463.599700] batman_adv: bat0: Adding interface: mesh0
[ 5463.605038] batman_adv: bat0: Interface activated: mesh0
[ 5473.605882] fastd invoked oom-killer: gfp_mask=0x2420848(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), nodemask=0, order=0, oom_score_adj=0
[ 5473.619538] CPU: 0 PID: 2098 Comm: fastd Not tainted 4.9.77 #0
[ 5473.625586] Stack : 804e765a 00000032 00000000 00000001 81933614 80471327 80424048 00000832
[ 5473.634304] 804e37a0 804939c4 00000168 00000000 000003e8 800a9934 00000000 00000004
[ 5473.643013] 00000006 00000000 80427a30 8057f9ec 00000000 800d7a3c 804e765a 00000086
[ 5473.651718] 00000000 8022e500 00000000 00000000 00000000 00000000 00000000 00000000
config system 'system'
option domain_code 'ffda_da_220_230'
@mweinelt
mweinelt / gist:833b03c25c0ed5949ed9221d2b524783
Created April 21, 2019 13:20
unattended-upgrade removes bridge-utils
2018-12-19 02:26:00,476 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2018-12-19 02:26:00,509 INFO Initial blacklist : (lib)?xen(store)?
2018-12-19 02:26:00,513 INFO Initial whitelist:
2018-12-19 02:26:00,514 INFO Starting unattended upgrades script
2018-12-19 02:26:00,515 INFO Allowed origins are: origin=Debian,codename=buster,label=Debian, origin=Debian,codename=buster,label=Debian-Security
2018-12-19 06:45:46,556 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2018-12-19 06:45:46,587 INFO Initial blacklist : (lib)?xen(store)?
2018-12-19 06:45:46,591 INFO Initial whitelist:
2018-12-19 06:45:46,593 INFO Starting unattended upgrades script
2018-12-19 06:45:46,594 INFO Allowed origins are: origin=Debian,codename=buster,label=Debian, orig
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.2.3-00376
S - IMAGE_VARIANT_STRING=ESAAANAZA
S - OEM_IMAGE_VERSION_STRING=LGEARND7B14
S - Boot Config, 0x000003c1
S - Core 0 Frequency, 0 MHz
B - 345229 - SBL1, Start
B - 414190 - scatterload_region && ram_init, Start
B - 428128 - boot_flash_init, Start