From c75c8311c8e70e23e95217c344093062a76bda24 Mon Sep 17 00:00:00 2001 From: "tianming.wang" Date: Mon, 10 Jul 2023 10:41:52 +0800 Subject: [PATCH] ANDROID: GKI: ABI: update whitelist for the kmsg_dump and native_hang symbols used by unisoc for kernel6.1 Add the symbols needed by kmsg_dump to abi_gki_aarch64_unisoc, and node_states needs to be updated to google symbols list: kmsg_dump_get_buffer, kmsg_dump_rewind, kmsg_dump_register, kmsg_dump_unregister. filp_open_block, get_zeroed_page, mem_section, node_states Add the symbols needed by native_hang_monitor to abi_gki_aarch64_unisoc access_process_vm, down, find_get_pid, find_task_by_vpid, mas_find, put_pid, send_sig_info, up 1 variable symbol(s) added 'nodemask_t node_states[6]' Bug: 290548918 Change-Id: I18f2c399ca0b6ad01ad9f1a976064d1c14af6577 Signed-off-by: tianming.wang --- android/abi_gki_aarch64.stg | 15 +++++++++++++++ android/abi_gki_aarch64_unisoc | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/android/abi_gki_aarch64.stg b/android/abi_gki_aarch64.stg index 8f48aca768e2..11e4abb27388 100644 --- a/android/abi_gki_aarch64.stg +++ b/android/abi_gki_aarch64.stg @@ -35195,6 +35195,11 @@ array { number_of_elements: 31 element_type_id: 0x3fcbf304 } +array { + id: 0x8483d98a + number_of_elements: 6 + element_type_id: 0x948a2888 +} array { id: 0x84f80ecf number_of_elements: 6 @@ -352741,6 +352746,15 @@ elf_symbol { type_id: 0x15334a4f full_name: "nla_strscpy" } +elf_symbol { + id: 0x39787440 + name: "node_states" + is_defined: true + symbol_type: OBJECT + crc: 0xe7b7da04 + type_id: 0x8483d98a + full_name: "node_states" +} elf_symbol { id: 0x7f258c4e name: "nonseekable_open" @@ -380608,6 +380622,7 @@ interface { symbol_id: 0x49027247 symbol_id: 0x85e07b67 symbol_id: 0x6359420c + symbol_id: 0x39787440 symbol_id: 0x7f258c4e symbol_id: 0x64e6aa0b symbol_id: 0x1560f116 diff --git a/android/abi_gki_aarch64_unisoc b/android/abi_gki_aarch64_unisoc index af5313d11711..bb8ad74d357d 100644 --- a/android/abi_gki_aarch64_unisoc +++ b/android/abi_gki_aarch64_unisoc @@ -1,5 +1,6 @@ [abi_symbol_list] # commonly used symbols + access_process_vm add_cpu add_wait_queue add_wait_queue_exclusive @@ -173,6 +174,7 @@ dma_unmap_page_attrs do_trace_netlink_extack double_rq_lock + down down_read down_write driver_unregister @@ -194,7 +196,10 @@ eth_type_trans eth_validate_addr extcon_get_state + filp_open_block + find_get_pid _find_next_bit + find_task_by_vpid finish_wait flush_delayed_work flush_work @@ -220,6 +225,7 @@ get_device __get_free_pages get_random_bytes + get_zeroed_page gic_nonsecure_priorities gpiochip_disable_irq gpiochip_enable_irq @@ -289,6 +295,10 @@ kmem_cache_destroy kmem_cache_free kmemdup + kmsg_dump_get_buffer + kmsg_dump_register + kmsg_dump_rewind + kmsg_dump_unregister kobject_uevent kobject_uevent_env ksoftirqd @@ -313,11 +323,13 @@ log_post_write_mmio log_read_mmio log_write_mmio + mas_find mbox_chan_received_data mbox_chan_txdone memcpy memmove memset + mem_section memstart_addr migrate_swap misc_deregister @@ -365,6 +377,7 @@ nla_put_64bit nla_strscpy __nlmsg_put + node_states noop_llseek nr_cpu_ids ns_capable @@ -446,6 +459,7 @@ put_cmsg put_device __put_net + put_pid __put_task_struct queue_delayed_work_on queue_work_on @@ -520,6 +534,7 @@ scnprintf security_sk_clone security_sock_graft + send_sig_info seq_buf_printf seq_lseek seq_printf @@ -828,6 +843,7 @@ unregister_pernet_device unregister_pernet_subsys unregister_pm_notifier + up up_read up_write update_rq_clock