aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/action/kernel
Commit message (Collapse)AuthorAgeFilesLines
* syz-agent: systematically show verbose error messagesDmitry Vyukov34 hours1-2/+2
| | | | | | | | | | | | | Currently we added custom code to kernel build action, and few others to expose verbose errors from executed binaries (notably make). But lots of other binary executions missing this logic, e.g. for git failure we currently see unuseful: failed to run ["git" "fetch" "--force" "--tags" exit status 128 Instead of adding more and more custom code to do the same, remove the custom code and always add verbose output in syz-agent and tools/syz-aflow.
* pkg/aflow/action/kernel: fix up config disablingDmitry Vyukov2026-01-271-1/+2
| | | | | | | We run the script in the source dir, so it created .config file there and made the source tree non-clean, which breaks out-of-tree builds (and does not achieve the original goal). Run it in the build dir.
* pkg/aflow/action/kernel: disable X86_X32_ABI configDmitry Vyukov2026-01-271-0/+7
| | | | | | | We don't fuzz x32 arch, and it's not very interesting, but building with this config and ld.lld fails with the following error: ld.lld: error: arch/x86/entry/vdso/vgetrandom-x32.o:(.note.gnu.property+0x0): data is too short ld.lld: error: arch/x86/entry/vdso/vgetcpu-x32.o:(.note.gnu.property+0x0): data is too short
* pkg/aflow/action/crash/test: implement patch testingFlorent Revest2026-01-261-32/+39
|
* pkg/aflow/action/kernel: add CheckoutScratch actionDmitry Vyukov2026-01-231-11/+40
| | | | The action checks out a temp dir for code edits and patch testing.
* pkg/aflow/action/kernel/build: fix a typoFlorent Revest2026-01-231-3/+3
| | | | | While we are at it, let's also make it a constant to make the intent clearer.
* pkg/aflow/action/kernel/build: log build errorsFlorent Revest2026-01-231-3/+3
| | | | | | | | | | | | | | | | | | Currently, when the kernel build fails, syz-aflow prints something along the line of: failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "36" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=workdir/cache/build/1c6c481ef478edbb8bf3afb9d73e9ff157b1a204" "bzImage" "compile_commands.json"]: exit status 2 Which is not particularly helpful, especially because the build directory gets immediately wiped out and the source directory does not contain the extracted .config which makes reproduction especially annoying. The -s flag makes make "silent", meaning that it only prints errors and not all successfully built compilation units, which keeps the logs more concise.
* pkg/aflow/action/kernel: keep build files that codesearch will needDmitry Vyukov2026-01-201-6/+13
| | | | | We currently duplicate list of source extensions in the build action and codesearch tool. Unify the lists.
* pkg/aflow: add notion of flow errorsDmitry Vyukov2026-01-161-1/+1
| | | | | | | | | | Flow errors denote failure of the flow itself, rather than an infrastructure error. A flow errors mean an expected condition in the flow when it cannot continue, and cannot produce expected outputs. For example, if we are doing something with the kernel, but the kernel build fails. Flow errors shouldn't be flagged in Fixes #6610
* pkg/aflow/action/kernel: fix removal on unneeded build filesDmitry Vyukov2026-01-091-4/+4
| | | | | Paths passed to filepath.WalkDir are absolute (include the dir prefix), account for that. Strings returned by filepath.Ext include the dot, account for that as well.
* pkg/aflow/action/kernel: keep few more files in build outputsDmitry Vyukov2026-01-091-2/+7
| | | | | Keep vmlinux for debug info/addr2line. Keep compile_commands.json, we need it for codesearch.
* pkg/aflow/action/kernel: add build actionDmitry Vyukov2026-01-091-0/+63
|
* pkg/aflow/action/kernel: add checkout actionDmitry Vyukov2026-01-091-0/+90