ANDROID: GKI: add fips140 symbol list

63 function symbol(s) added
  'int __traceiter_android_vh_aes_decrypt(void*, const struct crypto_aes_ctx*, u8*, const u8*, int*)'
  'int __traceiter_android_vh_aes_encrypt(void*, const struct crypto_aes_ctx*, u8*, const u8*, int*)'
  'int __traceiter_android_vh_aes_expandkey(void*, struct crypto_aes_ctx*, const u8*, unsigned int, int*)'
  'int __traceiter_android_vh_sha256(void*, const u8*, unsigned int, u8*, int*)'
  'int aead_register_instance(struct crypto_template*, struct aead_instance*)'
  'int ahash_register_instance(struct crypto_template*, struct ahash_instance*)'
  'bool cpu_have_feature(unsigned int)'
  'int crypto_ahash_finup(struct ahash_request*)'
  'int crypto_ahash_init(struct ahash_request*)'
  'int crypto_ahash_update(struct ahash_request*)'
  'struct crypto_rng* crypto_alloc_rng(const char*, u32, u32)'
  'const char* crypto_attr_alg_name(struct rtattr*)'
  'int crypto_check_attr_type(struct rtattr**, u32, u32*)'
  'void crypto_cipher_encrypt_one(struct crypto_cipher*, u8*, const u8*)'
  'int crypto_cipher_setkey(struct crypto_cipher*, const u8*, unsigned int)'
  'struct crypto_cipher* crypto_clone_cipher(struct crypto_cipher*)'
  'struct crypto_shash* crypto_clone_shash(struct crypto_shash*)'
  'void crypto_drop_spawn(struct crypto_spawn*)'
  'struct crypto_sync_skcipher* crypto_get_default_null_skcipher()'
  'int crypto_grab_aead(struct crypto_aead_spawn*, struct crypto_instance*, const char*, u32, u32)'
  'int crypto_grab_ahash(struct crypto_ahash_spawn*, struct crypto_instance*, const char*, u32, u32)'
  'int crypto_grab_shash(struct crypto_shash_spawn*, struct crypto_instance*, const char*, u32, u32)'
  'int crypto_grab_skcipher(struct crypto_skcipher_spawn*, struct crypto_instance*, const char*, u32, u32)'
  'int crypto_grab_spawn(struct crypto_spawn*, struct crypto_instance*, const char*, u32, u32)'
  'int crypto_inst_setname(struct crypto_instance*, const char*, struct crypto_alg*)'
  'int crypto_lskcipher_decrypt(struct crypto_lskcipher*, const u8*, u8*, unsigned int, u8*)'
  'int crypto_lskcipher_encrypt(struct crypto_lskcipher*, const u8*, u8*, unsigned int, u8*)'
  'void crypto_put_default_null_skcipher()'
  'int crypto_register_aeads(struct aead_alg*, int)'
  'int crypto_register_ahashes(struct ahash_alg*, int)'
  'int crypto_register_alg(struct crypto_alg*)'
  'int crypto_register_algs(struct crypto_alg*, int)'
  'int crypto_register_shashes(struct shash_alg*, int)'
  'int crypto_register_skciphers(struct skcipher_alg*, int)'
  'int crypto_register_template(struct crypto_template*)'
  'int crypto_register_templates(struct crypto_template*, int)'
  'void crypto_remove_spawns(struct crypto_alg*, struct list_head*, struct crypto_alg*)'
  'int crypto_rng_reset(struct crypto_rng*, const u8*, unsigned int)'
  'int crypto_shash_export(struct shash_desc*, void*)'
  'int crypto_shash_import(struct shash_desc*, const void*)'
  'struct crypto_tfm* crypto_spawn_tfm(struct crypto_spawn*, u32, u32)'
  'void* crypto_spawn_tfm2(struct crypto_spawn*)'
  'void crypto_unregister_aeads(struct aead_alg*, int)'
  'void crypto_unregister_alg(struct crypto_alg*)'
  'void crypto_unregister_shashes(struct shash_alg*, int)'
  'void crypto_unregister_skciphers(struct skcipher_alg*, int)'
  'void crypto_unregister_template(struct crypto_template*)'
  'void crypto_unregister_templates(struct crypto_template*, int)'
  'void kernel_neon_begin()'
  'void kernel_neon_end()'
  'void kvfree_sensitive(const void*, size_t)'
  'struct lskcipher_instance* lskcipher_alloc_instance_simple(struct crypto_template*, struct rtattr**)'
  'int lskcipher_register_instance(struct crypto_template*, struct lskcipher_instance*)'
  'bool rng_is_initialized()'
  'void shash_free_singlespawn_instance(struct shash_instance*)'
  'int shash_no_setkey(struct crypto_shash*, const u8*, unsigned int)'
  'int shash_register_instance(struct crypto_template*, struct shash_instance*)'
  'struct skcipher_instance* skcipher_alloc_instance_simple(struct crypto_template*, struct rtattr**)'
  'int skcipher_register_instance(struct crypto_template*, struct skcipher_instance*)'
  'int skcipher_walk_aead_decrypt(struct skcipher_walk*, struct aead_request*, bool)'
  'int skcipher_walk_aead_encrypt(struct skcipher_walk*, struct aead_request*, bool)'
  'int skcipher_walk_done(struct skcipher_walk*, int)'
  'int skcipher_walk_virt(struct skcipher_walk*, struct skcipher_request*, bool)'

6 variable symbol(s) added
  'struct tracepoint __tracepoint_android_vh_aes_decrypt'
  'struct tracepoint __tracepoint_android_vh_aes_encrypt'
  'struct tracepoint __tracepoint_android_vh_aes_expandkey'
  'struct tracepoint __tracepoint_android_vh_sha256'
  'struct list_head crypto_alg_list'
  'struct rw_semaphore crypto_alg_sem'

Bug: 393044622
Bug: 400647961
Change-Id: I92f2f3a7f8465c7a9980dd47182f0c10d9ab904f
Signed-off-by: Giuliano Procida <gprocida@google.com>
This commit is contained in:
Giuliano Procida
2025-03-04 12:20:54 +00:00
parent 83ec70a077
commit a5a52162b4
3 changed files with 1860 additions and 0 deletions
+8
View File
@@ -175,6 +175,7 @@ filegroup(
# keep sorted
"gki/aarch64/symbols/db845c",
"gki/aarch64/symbols/exynosauto",
"gki/aarch64/symbols/fips140",
"gki/aarch64/symbols/galaxy",
"gki/aarch64/symbols/oplus",
"gki/aarch64/symbols/pixel",
@@ -1339,12 +1340,19 @@ kernel_build(
base_kernel = ":kernel_aarch64",
build_config = "build.config.common",
defconfig = "arch/arm64/configs/gki_defconfig",
kmi_symbol_list = "gki/aarch64/symbols/fips140",
make_goals = ["modules"],
makefile = ":Makefile",
module_outs = ["crypto/fips140.ko"],
post_defconfig_fragments = ["arch/arm64/configs/fips140_gki.fragment"],
)
kernel_abi(
name = "fips140_abi",
kernel_build = ":fips140",
kmi_symbol_list_add_only = True,
)
pkg_files(
name = "fips140_dist_files",
srcs = [":fips140"],
+1697
View File
File diff suppressed because it is too large Load Diff
+155
View File
@@ -0,0 +1,155 @@
[abi_symbol_list]
# commonly used symbols
module_layout
__put_task_struct
utf8_data_table
# required by fips140.ko
aead_register_instance
ahash_register_instance
arch_timer_read_counter
bcmp
complete_all
completion_done
cpu_have_feature
crypto_aead_decrypt
crypto_aead_encrypt
crypto_aead_setauthsize
crypto_aead_setkey
crypto_ahash_finup
crypto_ahash_init
crypto_ahash_setkey
crypto_ahash_update
crypto_alg_list
crypto_alg_sem
crypto_alloc_aead
crypto_alloc_rng
crypto_alloc_shash
crypto_alloc_skcipher
crypto_attr_alg_name
crypto_check_attr_type
crypto_cipher_encrypt_one
crypto_cipher_setkey
crypto_clone_cipher
crypto_clone_shash
crypto_destroy_tfm
crypto_drop_spawn
crypto_get_default_null_skcipher
crypto_grab_aead
crypto_grab_ahash
crypto_grab_shash
crypto_grab_skcipher
crypto_grab_spawn
crypto_inst_setname
crypto_lskcipher_decrypt
crypto_lskcipher_encrypt
crypto_put_default_null_skcipher
crypto_register_aead
crypto_register_aeads
crypto_register_ahash
crypto_register_ahashes
crypto_register_alg
crypto_register_algs
crypto_register_rng
crypto_register_rngs
crypto_register_shash
crypto_register_shashes
crypto_register_skcipher
crypto_register_skciphers
crypto_register_template
crypto_register_templates
crypto_remove_spawns
crypto_req_done
crypto_rng_reset
crypto_shash_digest
crypto_shash_export
crypto_shash_final
crypto_shash_finup
crypto_shash_import
crypto_shash_setkey
crypto_shash_tfm_digest
crypto_shash_update
crypto_skcipher_decrypt
crypto_skcipher_encrypt
crypto_skcipher_setkey
crypto_spawn_tfm
crypto_spawn_tfm2
crypto_unregister_aeads
crypto_unregister_alg
crypto_unregister_rng
crypto_unregister_rngs
crypto_unregister_shash
crypto_unregister_shashes
crypto_unregister_skciphers
crypto_unregister_template
crypto_unregister_templates
down_read
down_write
__fortify_panic
get_random_bytes
__init_swait_queue_head
jiffies
kasan_flag_enabled
kernel_neon_begin
kernel_neon_end
kfree
kfree_sensitive
__kmalloc_cache_noprof
kmalloc_caches
__kmalloc_noprof
kmemdup_noprof
ktime_get
kvfree_sensitive
__kvmalloc_node_noprof
__list_add_valid_or_report
__list_del_entry_valid_or_report
lskcipher_alloc_instance_simple
lskcipher_register_instance
mem_alloc_profiling_key
memcpy
memset
__mutex_init
mutex_lock
mutex_unlock
panic
_printk
___ratelimit
_raw_spin_lock
_raw_spin_unlock
refcount_warn_saturate
rng_is_initialized
scatterwalk_ffwd
scatterwalk_map_and_copy
sg_init_one
sg_init_table
sg_next
shash_free_singlespawn_instance
shash_no_setkey
shash_register_instance
sized_strscpy
skcipher_alloc_instance_simple
skcipher_register_instance
skcipher_walk_aead_decrypt
skcipher_walk_aead_encrypt
skcipher_walk_done
skcipher_walk_virt
snprintf
__stack_chk_fail
strcmp
strlen
strncmp
strnlen
__traceiter_android_vh_aes_decrypt
__traceiter_android_vh_aes_encrypt
__traceiter_android_vh_aes_expandkey
__traceiter_android_vh_sha256
__tracepoint_android_vh_aes_decrypt
__tracepoint_android_vh_aes_encrypt
__tracepoint_android_vh_aes_expandkey
__tracepoint_android_vh_sha256
tracepoint_probe_register
up_read
up_write
wait_for_completion
xa_load
xa_store