Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/bpf/progs/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 795 B image not shown  

Quelle  verifier_or_jmp32_k.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0

#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include "bpf_misc.h"

SEC("socket")
__description("or_jmp32_k: bit ops + branch on unknown value")
__failure
__msg("R0 invalid mem access 'scalar'")
__naked void or_jmp32_k(void)
{
 asm volatile ("     \
 r0 = 0xffffffff;    \
 r0 /= 1;     \
 r1 = 0;      \
 w1 = -1;     \
 w1 >>= 1;     \
 w0 &= w1;     \
 w0 |= 2;     \
 if w0 != 0x7ffffffd goto l1;   \
 r0 = 1;      \
 exit;      \
l3:       \
 r0 = 5;      \
 *(u64*)(r0 - 8) = r0;    \
 exit;      \
l2:       \
 w0 -= 0xe;     \
 if w0 == 1 goto l3;    \
 r0 = 4;      \
 exit;      \
l1:       \
 w0 -= 0x7ffffff0;    \
 if w0 s>= 0xe goto l2;    \
 r0 = 3;      \
 exit;      \
" ::: __clobber_all);
}

char _license[] SEC("license") = "GPL";

Messung V0.5 in Prozent
C=96 H=94 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.