Skip to content

Instantly share code, notes, and snippets.

View dongsupark's full-sized avatar

Dongsu Park dongsupark

View GitHub Profile
@dongsupark
dongsupark / kernel-6.1-softlockup-EM-arm64.txt
Last active May 31, 2023 09:48
kernel-6.1-softlockup-EM-arm64
[SOL Session operational. Use ~? for help]
NOTICE: DRAM FW version 210525
CP: 0ff00900
DRAM populated DIMMs:
SK0 MC0 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
SK0 MC1 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
SK0 MC2 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
SK0 MC3 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
SK0 MC4 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
SK0 MC5 S0: RDIMM[ce:80] 32GB 3200 ECC 2R x4 RCD[b3:80] M393A4K40DB3-CWE
@dongsupark
dongsupark / flatcar-3087-earlyboot-fail-20211215
Created December 15, 2021 07:53
flatcar-3087-earlyboot-fail-20211215
[ 0.000000] Linux version 5.15.7-flatcar ([email protected]) (x86_64-cros-linux-gnu-gcc (Gentoo Hardened 9.4.0 p1) 9.4.0, GNU ld (Gentoo 2.36.1 p5) 2.36.1) #1 SMP Mon Dec 13 20:00:53 -00 2021
[ 0.000000] Command line: initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 flatcar.oem.id=packet ignition.config.url=http://bucket.release.flatcar-linux.net/flatcar-jenki/packet/jenkins-c99b2fc console= 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
[ 0.0
@dongsupark
dongsupark / make-amis-public.sh
Created December 10, 2021 09:58
make AMIs public in all AWS regions
#!/bin/bash
# Run with a filter for image names like:
#
# ./make-amis-public.sh capa-ami-flatcar*
#
if [ -z "$1" ] ; then
echo "Please pass the name of the AMI"
exit 1
@dongsupark
dongsupark / flatcar-sdk-container-20211015
Created October 15, 2021 12:00
flatcar-sdk-container-20211015 build log
######
######
###### Building SDK container for version 3005.0.0 from '/home/dpark/flatcar-sdk.amd64/.cache/sdks/flatcar-sdk-amd64-3005.0.0.tar.bz2' ######
###### Writing versionfile 'sdk_container/.repo/manifests/version.txt' to SDK '3005.0.0', OS '3005.0.0'. ######
###### Using existing SDK tarball container 'flatcar-sdk-tarball:3005.0.0' ######
###### Initialising the SDK container and building board packages ######
$ diff -u ~/trunk/.cache/distfiles/audit-017e6c6ab95df55f34e339d2139def83e5dada1f.852bytes.patch /home/dpark/trunk/.cache/distfiles/audit-017e6c6ab95df55f34e339d2139def83e5dada1f.patch
--- /home/dpark/trunk/.cache/distfiles/audit-017e6c6ab95df55f34e339d2139def83e5dada1f.852bytes.patch 2020-07-06 01:53:29.000000000 +0200
+++ /home/dpark/trunk/.cache/distfiles/audit-017e6c6ab95df55f34e339d2139def83e5dada1f.patch 2021-09-29 10:07:51.237716111 +0200
@@ -9,7 +9,7 @@
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ausearch-common.h b/src/ausearch-common.h
-index 6669203..3040547 100644
+index 66692036..3040547a 100644
--- a/src/ausearch-common.h
#!/bin/bash
set -eux
# FROM fedora 34
sudo dnf install -y automake autoconf curl expect gcc git glib2-devel gnutls-devel \
gnutls-utils json-glib-devel gmp-devel gnutls-devel libseccomp-devel \
libtasn1-devel libtool libtpms-devel net-tools openssl-devel \
rpm-build python3-twisted selinux-policy-devel socat softhsm tpm2-pkcs11 \
@dongsupark
dongsupark / ci-e2e.log
Created March 5, 2021 16:37
e2e test failure log in cluster-api-provider-aws
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (2.24.0)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3.9/site-packages (from requests) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.9/site-packages (from requests) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python3.9/site-packages (from requests) (1.25.8)
make -C hack/tools bin/session-manager-plugin
make[1]: Entering directory '/home/dpark/go/src/sigs.k8s.io/cluster-api-provider-aws/hack/tools'
make share/ssm/data.tar.gz
cd bin && tar -xvf ../share/ssm/data.tar.gz usr/local/sessionmanagerplugin/bin/session-manager-plugin --strip-components 4 --directory bin
make[2]: Entering directory '/home/dpark/go/src/sigs.k8s.io/cluster-api-provider-aws/hack/tools'
@dongsupark
dongsupark / gist:9c910bbe6edbfaf73f93f9421329b2fe
Created February 26, 2021 16:25
hack to make runc work with --no-new-privilges
From 657e01b0d909cce33bc5176e5ef618e039ba187f Mon Sep 17 00:00:00 2001
Message-Id: <657e01b0d909cce33bc5176e5ef618e039ba187f.1614356653.git.dongsu@kinvolk.io>
From: Dongsu Park <[email protected]>
Date: Fri, 26 Feb 2021 15:51:04 +0100
Subject: [PATCH] libcontainer: disable prctl with NoNewPrivilges
To make runc work with --security-opt=no-new-privilges
---
libcontainer/standard_init_linux.go | 13 -------------
1 file changed, 13 deletions(-)
@dongsupark
dongsupark / gist:e9787cac6ca709b9b34e00774c51b52d
Created January 20, 2021 16:39
capa-controller-manager panic
$ kubectl --namespace=capi-webhook-system logs capa-controller-manager-647fc8bfb8-ggvdh manager
```
2021/01/20 15:15:22 http: panic serving 10.244.0.1:60498: runtime error: invalid memory address or nil pointer dereference
goroutine 273 [running]:
net/http.(*conn).serve.func1(0xc0000e2a00)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x215a200, 0x3960f30)
/usr/local/go/src/runtime/panic.go:975 +0x47a
@dongsupark
dongsupark / gist:88709d9de4bba3178df272885225cf78
Last active February 2, 2021 14:43
Cluster API AWS quickstart
1. AWS IAM
Configure IAM in your AWS account. The IAM needs to allow the following roles.
a) ec2
```
AllocateAddress
AssociateAddress