Skip to content

Instantly share code, notes, and snippets.

execve("/usr/bin/stty", ["stty", "sane"], 0x7ffca3118bc8 /* 51 vars */) = 0
brk(NULL) = 0x562578367000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffbdbfb6000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v4/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v4/", 0x7ffec7dabbe0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v3/", 0x7ffec7dabbe0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CL
[Running: strace stty sane]
execve("/usr/bin/stty", ["stty", "sane"], 0x7ffc4fd030e8 /* 52 vars */) = 0
brk(NULL) = 0x5654e1a0c000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f13ee500000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v4/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v4/", 0x7ffe06702ba0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/glibc-hwcaps/x86-64-v3/", 0x7ffe06702ba0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/google/home/jackmanb/.local/lib/gli
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.local.conf
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.conf
‣ Setting CacheDirectory should be configured in [Build], not [Output].
‣ Setting BuildDirectory should be configured in [Build], not [Output].
‣ Setting WithNetwork should be configured in [Build], not [Content].
‣ Setting BuildSources should be configured in [Build], not [Content].
‣ Setting Incremental should be configured in [Build], not [Host].
‣ Setting ToolsTree should be configured in [Build], not [Host].
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.conf.d/20-debian/mkosi.conf
‣ Setting ToolsTreePackages should be configured in [Build], not [Host].
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.local.conf
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.conf
‣ Setting CacheDirectory should be configured in [Build], not [Output].
‣ Setting BuildDirectory should be configured in [Build], not [Output].
‣ Setting WithNetwork should be configured in [Build], not [Content].
‣ Setting BuildSources should be configured in [Build], not [Content].
‣ Setting Incremental should be configured in [Build], not [Host].
‣ Setting ToolsTree should be configured in [Build], not [Host].
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-kernel/mkosi.conf.d/20-debian/mkosi.conf
‣ Setting ToolsTreePackages should be configured in [Build], not [Host].
❯❯ cat mkosi.local.conf
[Distribution]
Distribution=debian
❯❯ ~/src/mkosi/bin/mkosi -f qemu
‣ Setting CacheDirectory should be configured in [Build], not [Output].
‣ Setting BuildDirectory should be configured in [Build], not [Output].
‣ Setting WithNetwork should be configured in [Build], not [Content].
‣ Setting BuildSources should be configured in [Build], not [Content].

Everything is just something else

Have been pondering AI and after my friend's presentation about The Conscious Mind I realised that I actually do believe that todays'a AIs have experience in some sense. However, that doesn't really have any straightforward implications regarding ethics or reasoning about its likely impact. My friend once told me about how her grandpa would always tell everyone to turn around to give his dog privacy while it shat. This was presumably tongue-in-cheek but if you do consider it as a serious viewpoint it's nonsensical: dogs do not have a socialised preference against being seen shitting. When you say a language model "wants" or "believes" something you make a similar mistake but of a much higher

In my upper-middle-class British education, having opinions was not only a sacred right but also the solemn moral duty of the well-educated. You could (and must!) engage in debate when you disagreed with somebody, but the sacred-right aspect meant that only a small and well-enumerated set of opinions could truly be criticised. Lacking convictions was a sign of intellectual weakness, but it didn't really matter which convictions you held.

This file has been truncated, but you can view the full file.
Failed to load bpf_testmod.ko into the kernel: -8
WARNING! Selftests relying on bpf_testmod.ko will be skipped.
libbpf: load bpf program failed: Permission denied
libbpf: -- BEGIN DUMP LOG ---
libbpf:
R1 type=ctx expected=fp
; int BPF_PROG(exec, struct linux_binprm *bprm) {
0: (79) r1 = *(u64 *)(r1 +0)
func 'bpf_lsm_bprm_committed_creds' arg0 has btf_id 1589 type STRUCT 'linux_binprm'
1: (7b) *(u64 *)(r10 -24) = r1
@bjackman
bjackman / opcodes.md
Last active October 22, 2024 12:17
A visualisation of eBPF opcodes

This table visualises the space of eBPF opcodes. It was generated by this hack

The *s represent opcodes that are exposed but not actually used, or used internally but not exposed

Note that there are gaps, but no empty columns.

There's also a prettier version here

|  0x00           |  0x01           |  0x02           |  0x03           |  0x04           |  0x05           |  0x06           |  0x07           |
@bjackman
bjackman / qemu_host_rootfs.sh
Created September 26, 2019 09:08
QEMU command to boot with host rootfs
KERNEL_IMG=~/sources/linux/linux/arch/x86/boot/bzImage
kvm \
-kernel $KERNEL_IMG \
-smp $(nproc) \
-m 2G \
-nographic \
-fsdev local,security_model=none,id=fsdev-root,path=/,readonly \
-device virtio-9p-pci,id=fs-root,fsdev=fsdev-root,mount_tag=/dev/root \
-serial mon:stdio \