Commit graph

9 commits

Author SHA1 Message Date
Greg Kroah-Hartman
f5794dc184 Revert "Revert "Revert "Revert "ANDROID: GKI: Add module load time protected symbol lookup""""
This reverts commit 090a1da697.

It brings it back now that we have merged around the problem area.

Bug: 200082547
Bug: 214445388
Cc: Ramji Jiyani <ramjiyani@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iaa69221f341bf2face454ec0452efff2cbba9042
2022-06-28 12:55:56 +02:00
Greg Kroah-Hartman
090a1da697 Revert "Revert "Revert "ANDROID: GKI: Add module load time protected symbol lookup"""
This reverts commit 5ffc4c2275.

It conflicts in bad ways with the module code changes in 5.19-rc1 so
revert it for now.  If it is still needed, it can be added back later.

Bug: 200082547
Bug: 214445388
Cc: Ramji Jiyani <ramjiyani@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ibf0b85c355cfc3e1a45c213a131a12c9e3061349
2022-06-28 11:52:40 +02:00
Ramji Jiyani
08ae9a7975 ANDROID: GKI: ZSMALLOC & ZRAM as modules for arm64
Enable zram and zsmalloc (dependency for zram) as
unprotected modules for aarch64. These are already
being used as modules by the vendor currently; so
needs to be unprotected.

Bug: 230519159
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I7c617c1a24f6e083301cbed67d0d323388cbd622
(cherry picked from commit 0fe423433bb3fa0b5003409bbd59a972e6c235e2)
2022-06-08 21:44:10 +00:00
Steve Muckle
ccc4bea94d Revert "ANDROID: GKI: enable test_stackinit kernel module"
Reason for revert: need alternative deployment path for test modules

Change-Id: If2d5ca5a5cd41b2b76114e2db29e6e633f6c7ec2
Bug: 181024194
Signed-off-by: Steve Muckle <smuckle@google.com>
2022-02-01 20:33:22 +00:00
Steve Muckle
bc9ec2e207 ANDROID: GKI: enable test_stackinit kernel module
Bug: 181024194
Change-Id: Ib7f9ea287fea7d27a87cdf549d0c4914317f8e56
Signed-off-by: Steve Muckle <smuckle@google.com>
2022-01-19 22:03:20 +00:00
Ramji Jiyani
9dfd1d9e59 ANDROID: GKI: Enable system_dlkm build for gki
Update GKI build configs to build system_dlkm.img.

Add an empty system_dlkm modules list file at:
android/gki_system_dlkm_modules

Bug: 200082547
Bug: 214445388
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Ia11b48d6033a39479d71c90159c74809a874893d
2022-01-14 19:55:08 +00:00
Ramji Jiyani
5ffc4c2275 Revert "Revert "ANDROID: GKI: Add module load time protected symbol lookup""
This reverts commit 5e1f58c764.

Reason for revert: Presubmit breakage has been addressed by aosp/1946327

Bug: 200082547
Bug: 214445388
Change-Id: I2be3fedba240eac3bab67a96566f4103deb7bc24
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-01-14 19:51:57 +00:00
Ramji Jiyani
5e1f58c764 Revert "ANDROID: GKI: Add module load time protected symbol lookup"
This reverts commit ce1a471629.

Reason for revert: aosp_kernel-common-android-mainline/kernel_kleaf_virt_x86_64 build is breaking.

Change-Id: Id0fa319cbe86fe7c1ac2e3cfa2171fc5dda033bb
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-01-06 05:33:35 +00:00
Ramji Jiyani
ce1a471629 ANDROID: GKI: Add module load time protected symbol lookup
Add CONFIG_MODULE_SIG_PROTECT to enable lookup for the protected
symbols and exports from the build time generated list of symbols
and exports.

Module loading behavior will change as follows:
- Allows Android GKI Modules signed using MODULE_SIG_ALL during build.
- Allows other modules to load if they don't violate the access to
  Android GKI protected symbols and do not export the symbols already
  exported by the Android GKI modules. Loading will fail and return
  -EACCES (Permission denied) if symbol access contidions are not met.

Bug: 200082547
Test: Treehugger
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Iedb99d8434db82a9c7f18ffd363d84f4b2316c5b
(cherry picked from commit 9ab6a242258a9ac17506b74c6ed7332703d536f4)
(cherry picked from commit f8bd6cf70dec3961c8b15b987866af33be2ce82b)
2022-01-05 23:51:51 +00:00