Use provider baseline kernel configs

This commit is contained in:
byjoey
2026-06-12 10:58:45 +08:00
parent 4d9ff9dd13
commit 2448d781b4
4 changed files with 15683 additions and 3675 deletions
+25 -3
View File
@@ -142,6 +142,11 @@ jobs:
scripts/config --disable DEFAULT_CUBIC
scripts/config --enable DEFAULT_BBR
scripts/config --set-str DEFAULT_TCP_CONG bbr
scripts/config --enable NET_SCH_FQ
scripts/config --disable DEFAULT_FQ_CODEL
scripts/config --disable DEFAULT_PFIFO_FAST
scripts/config --enable DEFAULT_FQ
scripts/config --set-str DEFAULT_NET_SCH fq
# Avoid generating kernel debug info and linux-image-*-dbg packages.
scripts/config --disable DEBUG_INFO
scripts/config --enable DEBUG_INFO_NONE
@@ -174,6 +179,11 @@ jobs:
scripts/config --disable DEFAULT_CUBIC
scripts/config --enable DEFAULT_BBR
scripts/config --set-str DEFAULT_TCP_CONG bbr
scripts/config --enable NET_SCH_FQ
scripts/config --disable DEFAULT_FQ_CODEL
scripts/config --disable DEFAULT_PFIFO_FAST
scripts/config --enable DEFAULT_FQ
scripts/config --set-str DEFAULT_NET_SCH fq
scripts/config --disable DEBUG_INFO
scripts/config --enable DEBUG_INFO_NONE
scripts/config --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
@@ -220,7 +230,19 @@ jobs:
echo "ERROR: CONFIG_DEFAULT_TCP_CONG is not bbr."
exit 1
fi
grep -E 'CONFIG_(DEBUG_INFO_NONE|TCP_CONG_BBR|DEFAULT_BBR|DEFAULT_TCP_CONG)=' .config
if ! grep -q '^CONFIG_NET_SCH_FQ=y' .config; then
echo "ERROR: CONFIG_NET_SCH_FQ is not built in."
exit 1
fi
if ! grep -q '^CONFIG_DEFAULT_FQ=y' .config; then
echo "ERROR: CONFIG_DEFAULT_FQ is not enabled."
exit 1
fi
if ! grep -q '^CONFIG_DEFAULT_NET_SCH="fq"' .config; then
echo "ERROR: CONFIG_DEFAULT_NET_SCH is not fq."
exit 1
fi
grep -E 'CONFIG_(DEBUG_INFO_NONE|TCP_CONG_BBR|DEFAULT_BBR|DEFAULT_TCP_CONG|NET_SCH_FQ|DEFAULT_FQ|DEFAULT_NET_SCH)=' .config
- name: 构建内核 Debian 包
if: env.BUILD_NEEDED == 'true'
@@ -235,9 +257,9 @@ jobs:
- name: 检查 deb 包
if: env.BUILD_NEEDED == 'true'
run: |
if find ./kernel -maxdepth 1 -name '*-dbg*.deb' | grep -q .; then
if find ./kernel -maxdepth 1 \( -name '*-dbg*.deb' -o -name '*-dbgsym*.deb' \) | grep -q .; then
echo "ERROR: debug deb package was generated."
find ./kernel -maxdepth 1 -name '*-dbg*.deb' -print
find ./kernel -maxdepth 1 \( -name '*-dbg*.deb' -o -name '*-dbgsym*.deb' \) -print
exit 1
fi
find ./kernel -maxdepth 1 -name 'linux-*.deb' -print | sort
+2 -2
View File
@@ -197,9 +197,9 @@ sudo python3 cve_2026_31431_detector.py
- 读取 kernel.org 最新 stable 版本。
- 下载 `gregkh/linux` 对应 stable 分支。
- 应用仓库内固定 BBRv3 patch。
- 强制默认启用 BBR。
- 强制默认启用 BBR 和 fq
- 关闭 debug info。
- 拒绝发布 `*-dbg*.deb`
- 拒绝发布 `*-dbg*.deb` / `*-dbgsym*.deb`
构建不会自动更新 BBR patch 本身。
+11928 -1448
View File
File diff suppressed because it is too large Load Diff
+3728 -2222
View File
File diff suppressed because it is too large Load Diff