These two drivers support every >1 gigabit usb ethernet dongle
I've managed to get my hands on.
In practice already enabled on GKI 5.10+ since S.
$ for i in AND510{S,T} AND515T ANDM; do cd /git/$i; echo; echo $i; git grep '^CONFIG_USB_NET_AQC111=y$' | egrep gki_defconfig; done
AND510S
arch/arm64/configs/gki_defconfig:342:CONFIG_USB_NET_AQC111=y
arch/x86/configs/gki_defconfig:314:CONFIG_USB_NET_AQC111=y
AND510T
arch/arm64/configs/gki_defconfig:354:CONFIG_USB_NET_AQC111=y
arch/x86/configs/gki_defconfig:325:CONFIG_USB_NET_AQC111=y
AND515T
arch/arm64/configs/gki_defconfig:350:CONFIG_USB_NET_AQC111=y
arch/x86/configs/gki_defconfig:320:CONFIG_USB_NET_AQC111=y
ANDM
arch/arm64/configs/gki_defconfig:342:CONFIG_USB_NET_AQC111=y
arch/x86/configs/gki_defconfig:315:CONFIG_USB_NET_AQC111=y
(while CONFIG_USB_NET_CDC_NCM defaults to 'y')
Test: TreeHugger
Bug: 183564444
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6c9f71288d46c310c96bbfadfcf18a35a30e8511
Can be used for implementing better ingress rate limiting.
In practice already enabled on GKI 5.10+ since S.
$ for i in AND510{S,T} AND515T ANDM; do cd /git/$i; echo; echo $i; git grep '^CONFIG_IFB=y$' | egrep gki_defconfig; done
AND510S
arch/arm64/configs/gki_defconfig:324:CONFIG_IFB=y
arch/x86/configs/gki_defconfig:296:CONFIG_IFB=y
AND510T
arch/arm64/configs/gki_defconfig:337:CONFIG_IFB=y
arch/x86/configs/gki_defconfig:308:CONFIG_IFB=y
AND515T
arch/arm64/configs/gki_defconfig:333:CONFIG_IFB=y
arch/x86/configs/gki_defconfig:303:CONFIG_IFB=y
ANDM
arch/arm64/configs/gki_defconfig:325:CONFIG_IFB=y
arch/x86/configs/gki_defconfig:298:CONFIG_IFB=y
Test: TreeHugger
Bug: 179454839
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I04cf0ca5dae83d73f91b75b99fd6263c7e686aef
Now with GKI, we no longer recommend configs.
Test: TH
Bug: 230144764
Change-Id: I3f3f9401482603eb41d03870b1a233d31b54a367
Merged-In: I3f3f9401482603eb41d03870b1a233d31b54a367
CONFIG_INIT_STACK_ALL_ZERO minimizes the effect of bugs caused by uninitialized locals, so we want to prevent it from being accidentally disabled.
Bug: 204439281
Bug: 205279854
Test: TreeHugger
Change-Id: I2014cd9bc2e3ebb8442ccc632c82619d62645dd4
Turns unbounded recursion in kernel code from being a potentially
exploitable bug into a crash.
This is likely a no-op. CONFIG_VMAP_STACK is already the default
on architectures that support it. CONFIG_VMAP_STACK has been
supported on x86_64 since 4.9 and on arm64 since 4.14. This change
is to prevent it from being accidentally disabled.
Test: On Pixel 5:
adb pull /proc/config.gz gunzip config.gz;
grep CONFIG_VMAP_STACK=y config
Bug: 117194687
Change-Id: I458d7a9d3a28b057b372a7456dbdeb3397423a15
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
This reverts commit dd46951e69.
Reason for revert: downstream kernel projects failed an unrelated SELinux related test when they
updated from Android Common Kernel, so they rolled back their pull dropping the patches necessary
to make this test pass.
Bug: 210043760
Bug: 214384465
Change-Id: I0f591dfa23017fec00733891dad6ec286a697585
Check that clang is used to assemble the kernel (CONFIG_AS_IS_LLVM).
This is implied by setting LLVM=1 in linux-5.15.y or LLVM_IAS=1 in
linux-5.10.y.
Bug: 209655537
Bug: 210043760
Bug: 213947595
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I131460e03a733444cc6167ecdc070db1477c854c
These are already covered by vts_kernel_toolchain. Add the additional
requirements that clang be used as the compiler (CONFIG_CC_IS_CLANG=y)
and lld as the linker (CONFIG_LD_IS_LLD).
For Android:
* CC=clang was required for aarch64 in Q.
* CC=clang was required in R.
* LD=lld was required for S.
A follow up patch with additionally check for CONFIG_AS_IS_LLVM=y once
the dependencies are backported properly.
Bug: 209655537
Bug: 210043760
Test: Treehugger
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I0e54800d92323e7a9931914a054dd713eaea03c9
To support input team's plans of using HID instead of evdev, require HIDRAW for new Android devices. This will allow us to write userspace input drivers that can be updated as part of the Android release without further dependence on the kernel.
Bug: 175075773
Bug: 111431828
Change-Id: I5209734a6b6a6f3344c131c631297013ccc3994f
This reverts commit e007af297c, since it
is incompatible with enabling CONFIG_CIFS, and unfortunately even the
latest version of the SMB protocol is still using 90s crypto algorithms.
Let's try waiting another 30 years.
Bug: 192766351
Change-Id: I2e3a172814976809c545b9b0e8a21766380962ae
Signed-off-by: Eric Biggers <ebiggers@google.com>
Metadata encryption is required on devices launching with Android 11 or
later; see
https://source.android.com/compatibility/11/android-11-cdd#9_9_3_encryption_methods.
The needed kconfig options are documented at
https://source.android.com/security/encryption/metadata#prerequisites.
Add these kconfig options to android-base.config.
CONFIG_DM_DEFAULT_KEY=y is the main option that is needed, but it
depends on CONFIG_FS_ENCRYPTION_INLINE_CRYPT=y and
CONFIG_BLK_INLINE_ENCRYPTION=y, so include those too. Don't include
CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y, since it's not necessarily
required.
Change-Id: I3407d5b46f6970d67ad78da6b7142d2931ef5098
The CTS tests in CtsHardwareTestCases are required for all Android
devices. In order to pass these tests, several kernel configs must be
enabled. Make these configs mandatory to help OEMs pass the CTS tests.
Configs added:
CONFIG_HID_PLAYSTATION
CONFIG_PLAYSTATION_FF
(covered by android.hardware.input.cts.tests.SonyDualSenseBluetoothTest#testAllKeys)
Bug: 185139160
Tests: atest android.hardware.input.cts.tests
Change-Id: If89c2126ab45651a54c44353a105dac8139747ab
CONFIG_KFENCE=y MUST be enabled in all 5.10 kernels and
is STRONGLY RECOMMENDED in 5.4 kernels.
Having CONFIG_KFENCE=y does not necessarily enable KFENCE at runtime:
it can still be disabled by setting CONFIG_KFENCE_SAMPLE_INTERVAL=0
or passing kfence.sample_interval=0 boot parameter to the kernel.
Bug: 181118352
Bug: 176230369
Test: manual (5.10), Treehugger (5.4)
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: Ie075c79b42bf4d4d19429e28afec08d7efbc980b
Ensure userfaultfd and mremap optimizations to move page tables more
efficiently are enabled as future ART GC will use it.
Test: VtsKernelConfigTest
Bug: 160737021
Bug: 169683130
Change-Id: Iea3dcb0e2f305dafc48f49d24d88937511184837
Copied from android-5.4 with some fixes to Android.bp and
android-base-conditional.xml for 5.4->5.10.
This change also removes CONFIG_CRYPTO_MD5 and CONFIG_CFI_CLANG which
are currently not enabled in the gki_defconfig.
Bug: 175707513
Change-Id: I34cf3099af6315ab513a1d39fb8214f1d1956f44