Skip to content

Commit

Permalink
oem: Import samsung changes from S918BXXS7CXL2
Browse files Browse the repository at this point in the history
Signed-off-by: Edgars Cirulis <[email protected]>
  • Loading branch information
Edgars-Cirulis committed Feb 10, 2025
1 parent 6a5bae8 commit a9ed821
Show file tree
Hide file tree
Showing 759 changed files with 109,317 additions and 797 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ endif

ifdef CONFIG_SHADOW_CALL_STACK
CC_FLAGS_SCS := -fsanitize=shadow-call-stack
KBUILD_CFLAGS += $(CC_FLAGS_SCS)
KBUILD_CFLAGS_MODULE += $(CC_FLAGS_SCS)
export CC_FLAGS_SCS
endif

Expand Down Expand Up @@ -1024,7 +1024,7 @@ endif

# If LTO flags are filtered out, we must also filter out CFI.
CC_FLAGS_LTO += $(CC_FLAGS_CFI)
KBUILD_CFLAGS += $(CC_FLAGS_CFI)
KBUILD_CFLAGS_MODULE += $(CC_FLAGS_CFI)
export CC_FLAGS_CFI
endif

Expand Down Expand Up @@ -1298,7 +1298,7 @@ $(sort $(vmlinux-deps) $(subdir-modorder)): descend ;

filechk_kernel.release = \
echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion \
--save-tag $(srctree) $(BRANCH) $(KMI_GENERATION))"
--save-tag $(srctree) $(GOOGLE_BRANCH) $(KMI_GENERATION))"

# Store (new) KERNELRELEASE string in include/config/kernel.release
include/config/kernel.release: FORCE
Expand Down Expand Up @@ -2060,7 +2060,7 @@ checkstack:

kernelrelease:
@echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion \
$(srctree) $(BRANCH) $(KMI_GENERATION))"
$(srctree) $(GOOGLE_BRANCH) $(KMI_GENERATION))"

kernelversion:
@echo $(KERNELVERSION)
Expand Down
3 changes: 3 additions & 0 deletions android/abi_gki_aarch64_galaxy_grey
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[abi_symbol_list]
ib_notifier_register
ib_notifier_unregister
4 changes: 4 additions & 0 deletions android/abi_gki_aarch64_galaxy_presubmit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Galaxy presubmit whitelist
# This symbol should be merged to abi_gki_aarch64_galaxy
# Plase add module name, like as "# required by sound/soc/codecs/snd-soc-wm-adsp.ko"
[abi_symbol_list]
4 changes: 4 additions & 0 deletions android/abi_gki_aarch64_qcom
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,10 @@
__tracepoint_android_vh_ufs_send_uic_command
__tracepoint_android_vh_ufs_update_sdev
__tracepoint_android_vh_update_topology_flags_workfn
__tracepoint_android_vh_usb_dev_resume
__tracepoint_android_vh_usb_dev_suspend
__tracepoint_android_vh_xhci_resume
__tracepoint_android_vh_xhci_suspend
__tracepoint_binder_transaction_received
__tracepoint_block_bio_remap
__tracepoint_cpu_frequency_limits
Expand Down
1 change: 0 additions & 1 deletion arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ config HAS_LTO_CLANG
depends on ARCH_SUPPORTS_LTO_CLANG
depends on !FTRACE_MCOUNT_USE_RECORDMCOUNT
depends on !KASAN || KASAN_HW_TAGS
depends on !GCOV_KERNEL
help
The compiler and Kconfig options support building with Clang's
LTO.
Expand Down
83 changes: 83 additions & 0 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,89 @@ config SYSVIPC_COMPAT
def_bool y
depends on COMPAT && SYSVIPC

menu "Hypervisor"
config UH
bool "Enable micro hypervisor feature"
depends on !SEC_FACTORY
default y
help
It enables a micro hypervisor.
It's samsung's hypervisor.
RKP and etc can be loaded on it.
please check a memory map for it.

config RKP
bool "Enable RKP(Realtime Kernel Protection) feature"
depends on UH
default y
help
This solution provides the kernel protection
using a security monitor located within an isolated execution environment.
This isolated execution environment is either the Secure World of ARM TrustZone
or a thin hypervisor that is protected by the hardware virtualization extensions.

config RKP_FIMC_CHECK
bool "Enable fimc signing verification"
depends on RKP
default n
help
it verifies fimc signing.

config KDP
bool "Enable KDP(Kernel Data Protection) feature"
depends on !SEC_VTS_TEST
depends on UH
default y
help
Prevents unauthorized cred modification,
namespace modification, mapping for page table.

config KDP_CRED
bool "Enable KDP(Kernel Data Protection) cred feature"
depends on !SEC_VTS_TEST
depends on UH
depends on KDP
default y
help
Prevents unauthorized cred modification,
namespace modification, mapping for page table.

config KDP_NS
bool "Enable KDP(Kernel Data Protection) namespace feature"
depends on !SEC_VTS_TEST
depends on UH
depends on KDP
default y
help
Prevents unauthorized cred modification,
namespace modification, mapping for page table.

config RKP_TEST
bool "Enable RKP test"
depends on RKP
default y
help
It is a test feature for RKP debugging.
This configuration checks following lists.
USER_PXN
USER_PGTABLE_RO
KERNEL_PGTABLE_RO
KERNEL_L3PGT_RO
KERNEL_RANGE_RWX

config KDP_TEST
bool "Enable KDP test"
depends on KDP_CRED && KDP_NS
default y
help
It is a test configuration for KDP debugging.
This configuration checks following lists.
TASK_CRED_RO
TASK_SECURITY_CONTEXT_RO
CRED_MATCH_BACKPOINTERS
SEC_CONTEXT_BACKPOINTER
endmenu

menu "Power management options"

source "kernel/power/Kconfig"
Expand Down
1 change: 0 additions & 1 deletion arch/arm64/configs/consolidate.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CONFIG_GKI_HIDDEN_RCUTORTURE=y
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_LKDTM is not set
CONFIG_LOCALVERSION="-qki-consolidate"
CONFIG_LOCKUP_DETECTOR=y
CONFIG_PAGE_POISONING=y
# CONFIG_PERCPU_TEST is not set
Expand Down
3 changes: 0 additions & 3 deletions arch/arm64/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,6 @@ CONFIG_KEYBOARD_SNVS_PWRKEY=m
CONFIG_KEYBOARD_IMX_SC_KEY=m
CONFIG_KEYBOARD_CROS_EC=y
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_ATMEL_MXT=m
CONFIG_TOUCHSCREEN_GOODIX=m
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PM8941_PWRKEY=y
CONFIG_INPUT_PM8XXX_VIBRATOR=m
Expand Down
Loading

0 comments on commit a9ed821

Please sign in to comment.