Skip to content

Instantly share code, notes, and snippets.

@tamird
tamird / kernel-panic-ubuntu-6.4.0-1-cloud-amd64
Created August 8, 2023 23:08
kernel panic seen in aya integration tests
2023-08-08T19:19:46.8695930Z test tests::load::unload_kprobe ... [ 32.651617] BUG: kernel NULL pointer dereference, address: 0000000000000000
2023-08-08T19:19:46.8700780Z [ 32.652972] #PF: supervisor instruction fetch in kernel mode
2023-08-08T19:19:46.8704590Z [ 32.653259] #PF: error_code(0x0010) - not-present page
2023-08-08T19:19:46.8709250Z [ 32.653259] PGD 0 P4D 0
2023-08-08T19:19:46.8713900Z [ 32.653259] Oops: 0010 [#1] PREEMPT SMP NOPTI
2023-08-08T19:19:46.8726350Z [ 32.653259] CPU: 1 PID: 122 Comm: tests::load::un Not tainted 6.4.0-1-cloud-amd64 #1 Debian 6.4.4-2
2023-08-08T19:19:46.8735170Z [ 32.653259] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org 04/01/2014
2023-08-08T19:19:46.8747130Z [ 32.653259] RIP: 0010:0x0
2023-08-08T19:19:46.8759650Z [ 32.653259] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
2023-08-08T19:19:46.8765680Z [ 32.653259] RSP: 0018:ffffb378c0413c60 EFLAGS: 00000046
frame #1: 0x00007f4cc3690fb0 libc.so.6`__GI___pthread_kill [inlined] __pthread_kill_internal(signo=6, threadid=<unavailable>) at pthread_kill.c:78:10
frame #2: 0x00007f4cc3690fb0 libc.so.6`__GI___pthread_kill(threadid=<unavailable>, signo=6) at pthread_kill.c:89:10
frame #3: 0x00007f4cc363c406 libc.so.6`__GI_raise(sig=6) at raise.c:26:13
frame #4: 0x00007f4cc362287c libc.so.6`__GI_abort at abort.c:79:7
frame #5: 0x00007f4cc362279b libc.so.6`__assert_fail_base.cold at assert.c:92:3
frame #6: 0x00007f4cc3633b86 libc.so.6`__assert_fail(assertion="isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"", file="/home/tamird/src/llvm-project/llvm/include/llvm/Support/Casting.h", line=579, function="decltype(auto) llvm::cast(From*) [with To = DIType; From = Metadata]") at assert.c:101:3
frame #7: 0x000055daf2583f6f bpf-linker`decltype(auto) llvm::cast<llvm::DIType, llvm::Metadata>(Val=0x000055daf9063e00) at Casting.h:579:3
frame #8: 0x000055daf3c959fe bpf-linker`llvm::DIType* ll
@tamird
tamird / gist:40f1e37108cef97116e45c4c1d52d0b5
Created June 1, 2023 18:39
bpf-linker dependabot run
proxy | 2023/05/31 20:59:42 proxy starting, commit: d719b9b9871e853c5fd63bf3552f3f857d979f3c
proxy | 2023/05/31 20:59:42 Listening (:1080)
updater | 2023-05-31T20:59:42.546515090 [671345293:main:WARN:src/devices/src/legacy/serial.rs:222] Detached the serial input due to peer close/error.
updater | time="2023-05-31T20:59:46Z" level=info msg="guest starting" commit=8ab4a20db815b67034070152643b9878c12b051d
updater | time="2023-05-31T20:59:46Z" level=info msg="starting job..." fetcher_timeout=10m0s job_id=671345293 updater_timeout=45m0s updater_version=49704c16cb0893c0ab8c5f884471c324baf39b83-github-actions
updater | 2023/05/31 20:59:50 INFO Raven 3.1.2 ready to catch errors
updater | 2023/05/31 20:59:51 INFO <job_671345293> Starting job processing
proxy | 2023/05/31 20:59:51 [002] GET https://api.github.com:443/repos/aya-rs/bpf-linker
proxy | 2023/05/31 20:59:51 [002] * authenticating github api request with token for api.github.com
proxy | 2023/05/31 20:59:52 [002] 200 https://api.github.com:443/repos
proxy | 2023/05/31 20:59:42 proxy starting, commit: d719b9b9871e853c5fd63bf3552f3f857d979f3c
proxy | 2023/05/31 20:59:42 Listening (:1080)
updater | 2023-05-31T20:59:42.546515090 [671345293:main:WARN:src/devices/src/legacy/serial.rs:222] Detached the serial input due to peer close/error.
updater | time="2023-05-31T20:59:46Z" level=info msg="guest starting" commit=8ab4a20db815b67034070152643b9878c12b051d
updater | time="2023-05-31T20:59:46Z" level=info msg="starting job..." fetcher_timeout=10m0s job_id=671345293 updater_timeout=45m0s updater_version=49704c16cb0893c0ab8c5f884471c324baf39b83-github-actions
updater | 2023/05/31 20:59:50 INFO Raven 3.1.2 ready to catch errors
updater | 2023/05/31 20:59:51 INFO <job_671345293> Starting job processing
proxy | 2023/05/31 20:59:51 [002] GET https://api.github.com:443/repos/aya-rs/bpf-linker
proxy | 2023/05/31 20:59:51 [002] * authenticating github api request with token for api.github.com
proxy | 2023/05/31 20:59:52 [002] 200 https://api.github.com:443/repos
fatal error: encountered OS exception
runtime stack:
runtime.throw({0x2f5147e458a, 0x18})
runtime/panic.go:1198 +0x54
runtime.sigpanic()
runtime/os_fuchsia.go:299 +0xa8
runtime.readgstatus(...)
runtime/proc.go:889
runtime.markroot(0x2b9e403d698, 0x90)
runtime/mgcmark.go:198 +0x188
TEST(LocalhostTest, IpAddMembershipAny) {
fbl::unique_fd s;
ASSERT_TRUE(s = fbl::unique_fd(socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))) << strerror(errno);
ip_mreqn param = {
.imr_address =
{
.s_addr = htonl(INADDR_ANY),
},
.imr_ifindex = 1,
diff --git a/third_party/rust_crates/vendor/futures-util/src/stream/select.rs b/third_party/rust_crates/vendor/futures-util/src/stream/select.rs
index 133ac6c7ac0..58d71fe1df3 100644
--- a/third_party/rust_crates/vendor/futures-util/src/stream/select.rs
+++ b/third_party/rust_crates/vendor/futures-util/src/stream/select.rs
@@ -94,16 +94,16 @@ where
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<St1::Item>> {
let this = self.project();
- if !*this.flag {
- poll_inner(this.flag, this.stream1, this.stream2, cx)
[44/57] ACTION //build/images:verify_capability_routes(//build/toolchain/fuchsia:x64)
FAILED: gen/build/images/verify_capability_routes.verified
../../build/gn_run_binary.sh ../../prebuilt/third_party/clang/linux-x64/bin host_x64/scrutiny_verify_routes --stamp gen/build/images/verify_capability_routes.verified --depfile obj/build/images/verify_capability_routes.d --allowlist ../../src/security/policy/build/verify_routes_exceptions_allowlist.json5
error: address range table at offset 0x73190 has a premature terminator entry at offset 0x731e0
error: address range table at offset 0xdc090 has a premature terminator entry at offset 0xdc100
error: address range table at offset 0xdc090 has a premature terminator entry at offset 0xdc120
error: address range table at offset 0xdc090 has a premature terminator entry at offset 0xdc140
error: address range table at offset 0xf9440 has a premature terminator entry at offset 0xf9460
error: address range table at offset 0xf9440 has a premature terminator entry at offset 0xf9
pub(crate) trait Transport<I: Ip> {
type SocketCollection;
}
pub(crate) enum Udp {}
impl<I: Ip> Transport<I> for Udp {
type SocketCollection = UdpSocketCollection<I>;
}
third_party/golibs/vendor/github.com/census-instrumentation/opencensus-proto/AUTHORS | 1 +
third_party/golibs/vendor/github.com/census-instrumentation/opencensus-proto/LICENSE | 202 ++
third_party/golibs/vendor/github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1/resource.pb.go | 194 ++
third_party/golibs/vendor/github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1/trace.pb.go | 2240 +++++++++++++++
third_party/golibs/vendor/github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1/trace_config.pb.go | 560 ++++
third_party/golibs/vendor/github.com/cespare/xxhash/v2/LICENSE.txt | 22 +
third_party/golibs/vendor/github.com/cespare/xxhash/v2/README.md | 69