This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <sys/mman.h> | |
#include <unistd.h> | |
int main(void) { | |
int fd = memfd_create("info:/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/foo/bar/baz", 0); | |
void *p = mmap(NULL, 1, PROT_NONE, MAP_PRIVATE, fd, 0); | |
close(fd); | |
while (1) pause(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- BEGIN PROG LOAD LOG -- | |
0: R1=ctx(off=0,imm=0) R10=fp0 | |
; int syncookie_xdp(struct xdp_md *ctx) | |
0: (bf) r6 = r1 ; R1=ctx(off=0,imm=0) R6_w=ctx(off=0,imm=0) | |
1: (b4) w9 = 1 ; R9_w=1 | |
; void *data_end = (void *)(long)ctx->data_end; | |
2: (61) r1 = *(u32 *)(r6 +4) ; R1_w=pkt_end(off=0,imm=0) R6_w=ctx(off=0,imm=0) | |
; void *data = (void *)(long)ctx->data; | |
3: (61) r7 = *(u32 *)(r6 +0) ; R6_w=ctx(off=0,imm=0) R7_w=pkt(off=0,r=0,imm=0) | |
; if (hdr->eth + 1 > data_end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- BEGIN PROG LOAD LOG -- | |
reg type unsupported for arg#0 function usdt0#53 | |
0: R1=ctx(off=0,imm=0) R10=fp0 | |
; int usdt0(struct pt_regs *ctx) | |
0: (bf) r6 = r1 ; R1=ctx(off=0,imm=0) R6_w=ctx(off=0,imm=0) | |
; if (my_pid != (bpf_get_current_pid_tgid() >> 32)) | |
1: (18) r1 = 0x38000eb2000 ; R1_w=map_value(off=0,ks=4,vs=208,imm=0) | |
3: (61) r7 = *(u32 *)(r1 +0) ; R1_w=map_value(off=0,ks=4,vs=208,imm=0) R7_w=scalar(umax=4294967295,var_off=(0x0; 0xffffffff)) | |
4: (67) r7 <<= 32 ; R7_w=scalar(smax=9223372032559808512,umax=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min=0,s32_max=0,u32_max=0) | |
5: (c7) r7 s>>= 32 ; R7_w=scalar(smin=-2147483648,smax=2147483647) |