Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1e0587e
Add simple configuration for kftf module that is built with kernel
Jun 18, 2025
43dc893
kftf: Add init and exit functions to module
Jun 18, 2025
42d6acc
kftf: simple sysfs that accepts a struct for a single function and the
Jun 18, 2025
4a35a64
kftf: allow tests with macro definitions in .kftf section of binary.
Jun 20, 2025
e8992cb
kftf: fixx sizeof check so that it checks against the provided type.
Jun 23, 2025
d7adb90
kftf: add metadata file per fuzzed function - this contains the name of
Jun 23, 2025
ca5ba48
move int_sqrt test out of kftf_tests file and into the math source
Jun 23, 2025
96ae8d5
kftf: address PR comments and make the FUZZ_TEST interface a lot more
Jun 23, 2025
ece3042
kftf: update include block so that the relative include (kftf_tests.h)
Jun 23, 2025
07bfafa
delete unused file kftf_simple_fuzzer
Jun 23, 2025
0c5cd7e
kftf: per test-case input buffer with mutex
Jun 23, 2025
a4bb002
kftf: update kftf_fuzzable test
Jun 23, 2025
0bddc3f
kftf: add some comments to module main file and kftf header file
Jun 25, 2025
5971467
kftf: replace static test cases buffer with kmalloc'd one.
Jun 25, 2025
d799f5c
kftf: replace input buffers for callback with dynamically allocated
Jul 1, 2025
aae72ff
kftf: replace heap allocated input buffer with function-local stack
Jul 1, 2025
72e3dec
kftf: fix bug in input reading logic.
Jul 1, 2025
6673d6f
kftf: work in progress on domain constraints. Need to see about exposing
Jul 3, 2025
95a0a01
kftf: allow for range constraints by expanding constraint struct.
Jul 6, 2025
581f240
kftf: move some stuff around and enforce 64 byte alignment of KFuzzTest
Jul 6, 2025
a83dee7
kftf: add annotations macros to express field types (for example
Jul 8, 2025
4a7f93e
kftf: add test case example using annotations
Jul 8, 2025
ce561e5
kftf: remove int_sqrt test which is no longer really needed, added
Jul 9, 2025
006c357
kftf: remove some prints from write_input_callback, update test case to
Jul 11, 2025
8f89c46
kftf: introduce new buffer for payload that provides alignment
Jul 14, 2025
8d95315
kftf: harden binary input parsing
Jul 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,21 @@ ASSERT(__relocate_kernel_end - __relocate_kernel_start <= KEXEC_CONTROL_CODE_MAX
#else
#define KEXEC_RELOCATE_KERNEL
#endif

#define KFTF_TABLE \
. = ALIGN(PAGE_SIZE); \
__kftf_test_case_start = .; \
KEEP(*(.kftf_test)); \
__kftf_test_case_end = .; \
. = ALIGN(PAGE_SIZE); \
__kftf_constraint_start = .; \
KEEP(*(.kftf_constraint)); \
__kftf_constraint_end = .; \
. = ALIGN(PAGE_SIZE); \
__kftf_annotation_start = .; \
KEEP(*(.kftf_annotation)); \
__kftf_annotation_end = .; \

PHDRS {
text PT_LOAD FLAGS(5); /* R_E */
data PT_LOAD FLAGS(6); /* RW_ */
Expand Down Expand Up @@ -199,6 +214,8 @@ SECTIONS
CONSTRUCTORS
KEXEC_RELOCATE_KERNEL

KFTF_TABLE

/* rarely changed data like cpu maps */
READ_MOSTLY_DATA(INTERNODE_CACHE_BYTES)

Expand Down
Loading