Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 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
8e1f787
kfuzztest: add array annotation
Jul 18, 2025
c74d33a
kftf: remove int_sqrt test which is no longer really needed, added
Jul 9, 2025
6b03486
kftf: remove some prints from write_input_callback, update test case to
Jul 11, 2025
ba24eb3
kftf: introduce new buffer for payload that provides alignment
Jul 14, 2025
799cdcd
kftf: harden binary input parsing
Jul 15, 2025
51cadf2
kfuzztest: update naming from "kftf" to "kfuzztest"
Jul 25, 2025
e328953
kfuzztest: cleanup code and update documentation
Jul 25, 2025
8cb9faa
kfuzztest: remove dummy test file
Jul 25, 2025
aeeb29f
kfuzztest: update header comment in kfuzztest_main.c
Jul 25, 2025
57fddce
kfuzztest: update macros to fix naming
Jul 25, 2025
4ebed5f
kfuzztest: align targets to 32-byte boundary
Jul 25, 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 KFUZZTEST_TABLE \
. = ALIGN(PAGE_SIZE); \
__kfuzztest_targets_start = .; \
KEEP(*(.kfuzztest_target)); \
__kfuzztest_targets_end = .; \
. = ALIGN(PAGE_SIZE); \
__kfuzztest_constraints_start = .; \
KEEP(*(.kfuzztest_constraint)); \
__kfuzztest_constraints_end = .; \
. = ALIGN(PAGE_SIZE); \
__kfuzztest_annotations_start = .; \
KEEP(*(.kfuzztest_annotation)); \
__kfuzztest_annotations_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

KFUZZTEST_TABLE

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

Expand Down
Loading