Compare commits

..

29 commits

Author SHA1 Message Date
70704265a8
added NUMA emulation 2024-12-14 20:10:00 +08:00
c7fa25b704
kernel 6.12.3
updated config based on arch kernel
fixed (??) waydroid support
2024-12-14 20:01:11 +08:00
4cd5e050d1
kernel 6.12.1 2024-11-23 09:24:31 +08:00
75b5ec17b8
kernel 6.11.1 2024-10-05 08:56:30 +08:00
dc08852ddc
fixed typo in CONFIG_DEBUG_VIRTUAL 2024-09-20 20:23:35 +08:00
2717ba252a
updated pkgsums and rel version 2024-09-20 19:03:49 +08:00
2b304cf99d
added support for EEPROM_LEGACY 2024-09-20 19:02:12 +08:00
1937effa96
kernel 6.10.10 (idk how to put this commit back to the correct order) 2024-09-17 22:05:18 +08:00
2eff4de992
kernel 6.10.10 (idk how to put this commit back to the correct order) 2024-09-17 22:02:19 +08:00
d09c21cbf3
maybe this works? 2024-09-17 20:24:14 +08:00
2b1999bbb3
kernel 6.11
requires md5 sums and sha1 sums
2024-09-17 19:00:27 +08:00
6bcaa6a3e1
kernel 6.10.8 2024-09-07 07:26:54 +08:00
86d5fd262b
kernel 6.10.7 2024-08-31 09:24:50 +08:00
3c431181f0
kernel 6.10.6 2024-08-21 14:43:04 +08:00
c4916e3dc8
kernel 6.10.5 2024-08-18 18:53:39 +08:00
63d594ab50 bump to 6.10.4 2024-08-13 08:05:47 +08:00
7ab68334f7 bump to 6.10.3 2024-08-07 15:18:08 +08:00
35be71333d
update readme 2024-07-29 17:47:00 +08:00
bb315dddc0 bump to 6.10.2 2024-07-29 17:11:46 +08:00
72defc07d3 bump to 6.10.1 2024-07-25 13:01:21 +08:00
3c84fee698
Updated pkgsums 2024-07-18 11:39:50 +08:00
3e35e8e8cd
bump to 6.10 kernel 2024-07-18 11:31:23 +08:00
f0dd7e96b9 updated pkgsums 2024-07-14 11:37:47 +08:00
bb134e3f60 use binderfs, bump to 6.9.9-2 2024-07-14 11:02:12 +08:00
e8fa5b3f62
increase security 2024-07-13 08:32:41 +08:00
2a8fea8844
fix again? 2024-07-13 08:18:56 +08:00
bc316319a4
correect pkgrel 2024-07-13 08:15:58 +08:00
5e06b0dfd0
correct pkgsums 2024-07-13 08:15:31 +08:00
396e636d1a
update to 6.9.9 2024-07-13 08:07:37 +08:00
8 changed files with 392 additions and 129 deletions

5
.gitignore vendored
View file

@ -1 +1,4 @@
!patches/ /
!patches/
!config
!README.MD

View file

@ -1,7 +1,7 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=linux-custom-ultimate pkgbase=linux-custom-ultimate
pkgver=6.9.8.arch1 pkgver=6.12.3.arch1
pkgrel=2 pkgrel=1
pkgdesc='Linux' pkgdesc='Linux'
arch=(x86_64) arch=(x86_64)
license=(GPL-2.0-only) license=(GPL-2.0-only)
@ -32,13 +32,21 @@ _srctag=v${pkgver%.*}-${pkgver##*.}
source=( source=(
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz
config # the main kernel config file config # the main kernel config file
defaultmaxASLR.patch
) )
# https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
sha256sums=('f048267b7b88316c9ca708c68d15a9ae802dcfc943c3188c1273eb958c433281' md5sums=('59a4adb192e8a88cc6bdea7912c409c0'
'254c531c49080ffb399a6246537a9c7b65718acdf1515b72f3570d23aa0a4fe6') '25a41237ef1f48123ac5657bdb77eb1f'
b2sums=('3c3874b053d7076564936f2053ef666733d329c402999aac736cf64418cb74e471cf9d7ae62e8fab49e4e916f196c5b8317aa243691b1d18119a25196108dd06' '7c0ac5bcdae16821cc24be558f18d144')
'ea46d444dcbec8d6edc761b84ee047b72d9d9d65802902c8fc01f0cef55adf4f16c35834c2c8c01ccb20b249efa8054f20ce851c7eb6cfd2eb2ee90ee8bf6ad5') sha1sums=('614c7d549be86d3eec547b069055d44c2ab955e1'
'cb11d29ef75d4dc8867902acfe03e20d1aa3787c'
'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62')
sha256sums=('c89809cc777d50f1ea484a118630281a26383707a0e752c96fd834f6e765deae'
'684f2140b501590203c7146baf5977e433cd3acd6401e61a6ad4640a44166b37'
'9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0')
b2sums=('1caaf9aed83a69a0c8b17ca923a97848cbb3b042d023aaaa7462c24f66f0d1b8a4fa42e2f3b9248ab8c57000a0e68d185072b0c88be7bcd93175f3e88ac76955'
'222a85e27f9a353a40bd5169bda82d01402228f04a75a277742265f39526effacef6c5dbd7b5729a2c350e822b5c345130f4a34e50942bcd5d12ca00bba53f29'
'30f9ecc8011b67e89166a01cf15c6994ba72cb7277cf8cce3461db66c3f0dfa77f396976dc82b6b78c723845282ea721a07a8fb1f3baff43dbf46bee10940b1a')
export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
@ -61,10 +69,10 @@ prepare() {
done done
echo "Setting config..." echo "Setting config..."
make oldconfig
cp ../config .config cp ../config .config
make oldconfig
#diff -u ../config .config || : diff -u ../config .config || :
make -s kernelrelease > version make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)" echo "Prepared $pkgbase version $(<version)"
@ -72,7 +80,6 @@ prepare() {
build() { build() {
cd $_srcname cd $_srcname
make olddefconfig
make all make all
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
} }

View file

@ -1,11 +1,18 @@
patches folder contains all the patches. files shipped are already prepatched My personal custom kernel
patch order: I provide releases for and only for Arch Linux. See wiki on how to install.
defaultmaxASLR.patch - increase security
patches folder contains all the config patches. config shipped are already prepatched
config patch order:
1. waydroid.patch 1. waydroid.patch
2. security.patch 2. security.patch
sources: config sources:
- waydroid.patch: https://wiki.archlinux.org/title/Waydroid - waydroid.patch: https://wiki.archlinux.org/title/Waydroid
- security.patch: selected from https://www.kicksecure.com/wiki/Hardened-kernel - security.patch: selected from https://www.kicksecure.com/wiki/Hardened-kernel

415
config

File diff suppressed because it is too large Load diff

33
defaultmaxASLR.patch Normal file
View file

@ -0,0 +1,33 @@
From db70c38e74c8850174dcc09b302c41543583c980 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Sat, 13 Jan 2024 15:29:25 +0100
Subject: [PATCH] arch/Kconfig: Default to maximum amount of ASLR bits
To mitigate https://zolutal.github.io/aslrnt/; do this with a patch to
avoid having to enable `CONFIG_EXPERT`.
---
arch/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index 30f7930275d838..318a4e75058b3b 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -1033,7 +1033,7 @@ config ARCH_MMAP_RND_BITS
int "Number of bits to use for ASLR of mmap base address" if EXPERT
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
- default ARCH_MMAP_RND_BITS_MIN
+ default ARCH_MMAP_RND_BITS_MAX
depends on HAVE_ARCH_MMAP_RND_BITS
help
This value can be used to select the number of bits to use to
@@ -1067,7 +1067,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
- default ARCH_MMAP_RND_COMPAT_BITS_MIN
+ default ARCH_MMAP_RND_COMPAT_BITS_MAX
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
help
This value can be used to select the number of bits to use to

22
patches/NUMA.patch Executable file
View file

@ -0,0 +1,22 @@
diff --git a/home/lihaowang/Downloads/confign b/home/lihaowang/Downloads/config
index 85500aa..adc7bca 100644
--- a/home/lihaowang/Downloads/confign
+++ b/home/lihaowang/Downloads/config
@@ -1258,7 +1258,7 @@ CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
-# CONFIG_NUMA_EMU is not set
+CONFIG_NUMA_EMU=y
#
# Data Access Monitoring
@@ -11536,7 +11536,7 @@ CONFIG_SWIOTLB=y
CONFIG_DMA_NEED_SYNC=y
CONFIG_DMA_COHERENT_POOL=y
CONFIG_DMA_CMA=y
-# CONFIG_DMA_NUMA_CMA is not set
+CONFIG_DMA_NUMA_CMA=y
#
# Default contiguous memory area size:

View file

@ -34,7 +34,7 @@
# CONFIG_DEBUG_VM_PGTABLE is not set # CONFIG_DEBUG_VM_PGTABLE is not set
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
-# CONFIG_DEBUG_VIRTUAL is not set -# CONFIG_DEBUG_VIRTUAL is not set
+CONFIG_DEBUG_VIRTUA=y +CONFIG_DEBUG_VIRTUAL=y
CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_PER_CPU_MAPS is not set # CONFIG_DEBUG_PER_CPU_MAPS is not set
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y

View file

@ -5,8 +5,8 @@
# Android # Android
# #
+CONFIG_ANDROID=y +CONFIG_ANDROID=y
+CONFIG_ANDROID_BINDER_IPC=y +CONFIG_ANDROID_BINDER_IPC=m
+CONFIG_ANDROID_BINDERFS=n +CONFIG_ANDROID_BINDERFS=n
+CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder" +CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# end of Android # end of Android