aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract/linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/syz-extract/linux.go')
-rw-r--r--sys/syz-extract/linux.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go
index 6cfc18419..45f8144ce 100644
--- a/sys/syz-extract/linux.go
+++ b/sys/syz-extract/linux.go
@@ -83,10 +83,16 @@ func (*linux) prepareArch(arch *Arch) error {
return fmt.Errorf("make defconfig failed: %v\n%s", err, out)
}
// Without CONFIG_NETFILTER kernel does not build.
- out, err = osutil.RunCmd(time.Minute, buildDir, "sed", "-i",
+ _, err = osutil.RunCmd(time.Minute, buildDir, "sed", "-i",
"s@# CONFIG_NETFILTER is not set@CONFIG_NETFILTER=y@g", ".config")
if err != nil {
- return fmt.Errorf("sed .config failed: %v\n%s", err, out)
+ return fmt.Errorf("sed .config failed: %v", err)
+ }
+ // include/net/mptcp.h is the only header in kernel that guards some of the consts with own config
+ _, err = osutil.RunCmd(time.Minute, buildDir, "sed", "-i",
+ "s@# CONFIG_MPTCP is not set@CONFIG_MPTCP=y@g", ".config")
+ if err != nil {
+ return fmt.Errorf("sed .config failed: %v", err)
}
out, err = osutil.RunCmd(time.Hour, kernelDir, "make", append(makeArgs, "olddefconfig")...)
if err != nil {