Back to home page

OSCL-LXR

 
 

    


 
  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
folder Parent directory - 2025-03-06 09:18:40  
and.c 2307 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

Upper bits are unknown but AND above masks out 1 zero'ing lower bits

array_access.c 12358 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
atomic_and.c 3034 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

val = 0x110;

atomic_bounds.c 840 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

a = 0;

atomic_cmpxchg.c 6945 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

val = 3;

atomic_fetch.c 6701 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
atomic_fetch_add.c 3294 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

Write 3 to stack

atomic_invalid.c 941 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
atomic_or.c 3098 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

val = 0x110;

atomic_xchg.c 1253 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

val = 3;

atomic_xor.c 2351 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

val = 0x110;

basic.c 333 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
basic_call.c 1183 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
basic_instr.c 4615 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
basic_stack.c 1439 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25

If this gets ever changed, make sure JITs can deal with it.

basic_stx_ldx.c 786 bytes 2025-03-06 09:18:40 2025-03-06 13:40:25  
bounds.c 24553 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
bounds_deduction.c 3894 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
bounds_mix_sign_unsign.c 12978 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
bpf_get_stack.c 2997 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
bpf_loop_inline.c 8107 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26

1: int

btf_ctx_access.c 320 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26

load 2nd argument value (int pointer)

calls.c 69939 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
cfg.c 1336 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
cgroup_inv_retcode.c 1668 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
cgroup_skb.c 6357 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
cgroup_storage.c 6730 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
const_or.c 1782 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
ctx.c 5308 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
ctx_sk_lookup.c 19448 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26

1-byte read from family field

ctx_sk_msg.c 4817 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
ctx_skb.c 34252 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
d_path.c 1051 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
dead_code.c 4036 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
direct_packet_access.c 21284 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
direct_stack_access_wraparound.c 1156 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
direct_value_access.c 8390 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
div0.c 3917 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
div_overflow.c 2538 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26

Just make sure that JITs used udiv/umod as otherwise we get an exception from INT_MIN/-1 overflow similarly as with div by zero.

event_output.c 3308 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
helper_access_var_len.c 21053 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
helper_packet_access.c 14999 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
helper_restricted.c 6132 bytes 2025-03-06 09:18:40 2025-03-06 13:40:26  
helper_value_access.c 30584 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
int_ptr.c 4090 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

bpf_strtoul arg1 (buf)

jit.c 5496 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
jmp32.c 20426 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

reg, high bits shouldn't be tested

jset.c 4160 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

reg, bit 63 or bit 0 set, taken

jump.c 12184 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
junk_insn.c 709 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
ld_abs.c 7013 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
ld_dw.c 968 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
ld_imm64.c 3127 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
ld_ind.c 1590 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
leak_ptr.c 1898 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
loops1.c 5022 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
lwt.c 5383 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
map_in_map.c 3161 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
map_kptr.c 15034 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

Common tests

map_ptr.c 2994 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
map_ptr_mixing.c 2935 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

main prog

map_ret_val.c 1927 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
masking.c 8752 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
meta_access.c 7469 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
perf_event_sample_period.c 1677 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
precise.c 6677 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

map_value_ptr -= map_value_ptr

prevent_map_lookup.c 858 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
raw_stack.c 9954 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

Call to skb_load_bytes() omitted.

raw_tp_writable.c 1100 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

r6 is our tp buffer

ref_tracking.c 26699 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

leak reference

regalloc.c 9517 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
ringbuf.c 3353 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

reserve 8 byte ringbuf memory

runtime_jit.c 6296 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
scale.c 324 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
search_pruning.c 7566 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

Get an unknown value

sock.c 22245 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27  
spill_fill.c 11308 bytes 2025-03-06 09:18:40 2025-03-06 13:40:27

spill R1(ctx) into stack

spin_lock.c 10833 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
stack_ptr.c 9848 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
subreg.c 16254 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28

This file contains sub-register zero extension checks for insns defining sub-registers, meaning: All insns under BPF_ALU class.

uninit.c 761 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
unpriv.c 15248 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
value.c 3401 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
value_adj_spill.c 1344 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
value_illegal_alu.c 2872 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
value_or_null.c 5595 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
value_ptr_arith.c 36810 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
var_off.c 11491 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28

Get an unknown value

wide_access.c 2708 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28

user_ip6[0] is u64 aligned

xadd.c 3060 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
xdp.c 331 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28  
xdp_direct_packet_access.c 48882 bytes 2025-03-06 09:18:40 2025-03-06 13:40:28