33 Commits

Author SHA1 Message Date
Bo Ye
425c4a3572 [ALPS06486924] ACK: Merge android-4.19-stable into alps-mp-s0.mp1
Target:
   android-4.19-stable "011b73c995f35959b39ccde045addbc1862fa3e6
   Merge 4.19.191 into android-4.19-stable"

Version change from 4.19.188 to 4.19.191

MTK-Commit-Id: c8384f99d5a155550b3c0707800ea3d1d83f9ee3

Feature: Kernel SI Operation
CR-Id: ALPS06486924
Signed-off-by: Bo Ye <bo.ye@mediatek.com>
Change-Id: Ic51822fa66c2d94e5f60b2e65a65153ade20c228
2022-01-20 11:18:48 +08:00
Giuliano Procida
c1cb488921 ANDROID: refresh ABI XML to new version
This is an incompatible ABI XML version change.

Bitfield offsets are now correct.

Bug: 183612421
Change-Id: I483c591294ccdf776a89f6839be4d76f86d7dd39
Signed-off-by: Giuliano Procida <gprocida@google.com>
2021-03-25 09:15:29 +00:00
Giuliano Procida
7863d393d8 ANDROID: refresh ABI XML
No ABI changes.

Refresh before an incompatible ABI XML version change.

Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

Bug: 183612421
Change-Id: I1a906411acdcc1fea7a170a0f8143d8c215c2bac
Signed-off-by: Giuliano Procida <gprocida@google.com>
2021-03-25 09:02:09 +00:00
Lucas Wei
bda7587ce5 ANDROID: Add symbol of _proc_mkdir
Pixel LTS work patch, commit 6ccab11c56 ("proc: fix
lookup in /proc/net subdirectories after setns(2)"),
export new symbol of `_proc_mkdir` in sctp.ko.
Update symbol list and update ABI XML file.

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function proc_dir_entry* _proc_mkdir(const char*, umode_t, proc_dir_entry*, void*, bool)'

Bug: 180663378
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: Id13e9816d4196fb43167b0e73dadf74d90c1967e
2021-02-24 14:31:11 +08:00
Yabin Cui
bcfb2bf23f ANDROID: GKI: Update ABI for coresight-clk-amba-dummy.ko.
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

2 Added functions:

  [A] 'function int amba_driver_register(amba_driver*)'
  [A] 'function void amba_driver_unregister(amba_driver*)'

Bug: 170753932
Test: Build
Signed-off-by: Yabin Cui <yabinc@google.com>
Change-Id: I7dfb84a6439eb194e9dc1a7d36d41d5c299e9a1d
2021-02-08 10:52:05 -08:00
Yiwei Zhang
a3eba2009a ANDROID: GKI: Update ABI
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

1 Added function:

  [A] 'function bool ns_capable_noaudit(user_namespace*, int)'

1 Added variable:

  [A] 'user_namespace init_user_ns'

Bug: 154525079
Signed-off-by: Yiwei Zhang <zzyiwei@google.com>
Change-Id: I6f2a12664f85f580163849a48b400b67bac57d32
2021-02-02 20:12:40 +00:00
Yiwei Zhang
34cf65e60d ANDROID: GKI: Update cuttlefish symbol list
For GPU tracepoint.

Bug: 154525079
Signed-off-by: Yiwei Zhang <zzyiwei@google.com>
Change-Id: If288a224bace2f9d81e08bf84aa17c836e9cdc37
2021-02-02 19:57:05 +00:00
Greg Kroah-Hartman
c9b5531f57 ANDROID: GKI: fix up abi issues with 4.19.172
The futex changes in 4.19.172 required some additions to struct
task_struct, which of course, is a structure used by just about
everyone.

To preserve the abi, do some gyrations with the reserved fields in order
to handle the growth of the structure.  Given that we are adding a
larger structure than a pointer, carve out a chunk of reserved fields
from the block we were reserving.

These changes fix the genksyms issues, but libabigail is smarter than
that, so we also need to update the .xml file to make it happy with this
change.

The results of libabigail is:

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 1 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

'struct task_struct at sched.h:647:1' changed:
  type size hasn't changed
  3 data member deletions:
    'u64 task_struct::android_kabi_reserved4', at offset 22592 (in bits) at sched.h:1300:1
    'u64 task_struct::android_kabi_reserved5', at offset 22656 (in bits) at sched.h:1301:1
    'u64 task_struct::android_kabi_reserved6', at offset 22720 (in bits) at sched.h:1302:1
  there are data member changes:
    data member u64 task_struct::android_kabi_reserved2 at offset 22464 (in bits) became anonymous data member 'union {unsigned int futex_state; struct {u64 android_kabi_reserved2;} __UNIQUE_ID_android_kabi_hide48; union {};}'
    type 'typedef u64' of 'task_struct::android_kabi_reserved3' changed:
      entity changed from 'typedef u64' to 'struct mutex' at mutex.h:53:1
      type size changed from 64 to 256 (in bits)
    and name of 'task_struct::android_kabi_reserved3' changed to 'task_struct::futex_exit_mutex' at sched.h:1313:1
  1955 impacted interfaces

Bug: 161946584
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iab623aa5441c1d11e2dc4eb77c7153e4e9517429
2021-02-01 13:56:51 +01:00
linjoey
7a274b68c2 ANDROID: GKI: Added the get_task_pid function
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function pid* get_task_pid(task_struct*, pid_type)'

Bug: 175037520
Signed-off-by: linjoey <linjoey@google.com>
Change-Id: Ibe049a10ec588b4b7b0c601f22499b40c16c0bda
2021-01-27 17:39:19 +00:00
Alistair Delva
36fa4039e2 ANDROID: GKI: Update ABI for clang bump
Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable
Function symbols changes summary: 0 Removed, 0 Added function symbol not referenced by debug info
Variable symbols changes summary: 0 Removed, 1 Added variable symbol not referenced by debug info

1 Added variable symbol not referenced by debug info:

  [A] jiffies

Bug: 176824850
Change-Id: Ie40321c0b38be2ca41c9bcaf56fa19a3c50fc363
Signed-off-by: Alistair Delva <adelva@google.com>
2021-01-26 04:20:20 +00:00
Will McVicker
1fd210f0a5 ANDROID: GKI: Update the ABI xml and symbol list
Leaf changes summary: 14 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 10 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 4 Added variables

10 Added functions:

  [A] 'function void __irq_set_handler(unsigned int, irq_flow_handler_t, int, const char*)'
  [A] 'function int __srcu_read_lock(srcu_struct*)'
  [A] 'function void __srcu_read_unlock(srcu_struct*, int)'
  [A] 'function int init_srcu_struct(srcu_struct*)'
  [A] 'function int irq_set_handler_data(unsigned int, void*)'
  [A] 'function unsigned int kstat_irqs_usr(unsigned int)'
  [A] 'function page* shmem_read_mapping_page_gfp(address_space*, unsigned long int, unsigned int)'
  [A] 'function snd_soc_component* soc_find_component_locked(const device_node*, const char*)'
  [A] 'function void synchronize_srcu(srcu_struct*)'
  [A] 'function void* vmemdup_user(void*, size_t)'

4 Added variables:

  [A] 'unsigned long int* irq_stack_ptr'
  [A] 'irq_cpustat_t irq_stat'
  [A] 'kernel_stat kstat'
  [A] 'int nr_irqs'

Bug: 172988823
Bug: 176525217
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I66c9168f9f0325877454d2e5da628ab0674230ce
2021-01-20 06:01:27 +00:00
Paul Lawrence
d7a3e709e6 ANDROID: GKI: Update the ABI xml representation
Leaf changes summary: 2 artifacts changed (1 filtered out)
Changed leaf types summary: 0 (1 filtered out) leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

2 Added functions:

  [A] 'function const cred* override_creds(const cred*)'
  [A] 'function void revert_creds(const cred*)'

Bug: 174692664
Test: From ABI update
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ia0b15253ea3dc8f08e9d78c6f0c5aa75aa5c1ff2
2020-12-14 10:02:37 -08:00
Lucas Wei
87758b9267 ANDROID: Add symbol of get_next_event_cpu back
Recover symbol of `get_next_event_cpu` which was removed
from a3bf0efb17 ("ANDROID: Add allowed symbols from sctp.ko
and qrtr.ko") frozen ABI.

Bug: 173765853
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: Ib61e8f977047e2e61a1a0e8014af942e7d1d1b67
2020-12-11 16:53:16 +08:00
lucaswei
a3bf0efb17 ANDROID: Add allowed symbols from sctp.ko and qrtr.ko
Leaf changes summary: 3 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 2 Added variables

1 Added function:

  [A] 'function int idr_alloc_u32(idr*, void*, unsigned int*, unsigned long int, unsigned int)'

2 Added variables:

  [A] 'static_key_false memcg_sockets_enabled_key'
  [A] 'static_key_true memory_cgrp_subsys_on_dfl_key'

Bug: 173765853
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: I8815f9e7bf27fc44ff74108ae9b375f21559d62e
2020-12-09 19:59:48 +08:00
Paul Lawrence
fbe7247e2f ANDROID: GKI: Update ABI for incfs and dm-user
Leaf changes summary: 16 artifacts changed (378 filtered out)
Changed leaf types summary: 0 (281 filtered out) leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed (92 filtered out), 16 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed (5 filtered out), 0 Added variable

16 Added functions:

  [A] 'function size_t ZSTD_DStreamWorkspaceBound(size_t)'
  [A] 'function size_t ZSTD_decompressStream(ZSTD_DStream*, ZSTD_outBuffer*, ZSTD_inBuffer*)'
  [A] 'function ZSTD_DStream* ZSTD_initDStream(size_t, void*, size_t)'
  [A] 'function unsigned long int _copy_from_iter(void*, unsigned long int, iov_iter*)'
  [A] 'function void bio_advance(bio*, unsigned int)'
  [A] 'function void bio_endio(bio*)'
  [A] 'function void bio_put(bio*)'
  [A] 'function unsigned long int copy_page_from_iter(page*, unsigned long int, unsigned long int, iov_iter*)'
  [A] 'function unsigned long int copy_page_to_iter(page*, unsigned long int, unsigned long int, iov_iter*)'
  [A] 'function int dm_register_target(target_type*)'
  [A] 'function void dm_unregister_target(target_type*)'
  [A] 'function int down_read_killable(rw_semaphore*)'
  [A] 'function int down_write_killable(rw_semaphore*)'
  [A] 'function void mempool_exit(mempool_s*)'
  [A] 'function int mempool_init(mempool_s*, int, void* (unsigned int, void*)*, void (void*, void*)*, void*)'
  [A] 'function int vfs_fsync(file*, int)'

Bug: 169084168
Fixes: 4a1753307d ("ANDROID: Add dependencies of dm-user.ko")
Test: Builds
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I4813f5400003882d08556f00542413058782457e
Signed-off-by: Will McVicker <willmcvicker@google.com>
2020-11-20 10:33:53 -08:00
Paul Lawrence
1c5ad1eb2d Revert "ANDROID: Add dependencies of dm-user.ko"
This reverts commit 4a1753307d.

Bug: 169084168
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ie72f9b8d295b9ba5f72d0befd7687cd4607e18d6
Signed-off-by: Will McVicker <willmcvicker@google.com>
2020-11-20 10:33:43 -08:00
Palmer Dabbelt
4a1753307d ANDROID: Add dependencies of dm-user.ko
Leaf changes summary: 11 artifacts changed (377 filtered out)
Changed leaf types summary: 1 (280 filtered out) leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed (92 filtered out), 10 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed (5 filtered out), 0 Added variable

10 Added functions:

  [A] 'function unsigned long int _copy_from_iter(void*, unsigned long int, iov_iter*)'
  [A] 'function void bio_advance(bio*, unsigned int)'
  [A] 'function void bio_endio(bio*)'
  [A] 'function void bio_put(bio*)'
  [A] 'function unsigned long int copy_page_from_iter(page*, unsigned long int, unsigned long int, iov_iter*)'
  [A] 'function unsigned long int copy_page_to_iter(page*, unsigned long int, unsigned long int, iov_iter*)'
  [A] 'function int dm_register_target(target_type*)'
  [A] 'function void dm_unregister_target(target_type*)'
  [A] 'function void mempool_exit(mempool_s*)'
  [A] 'function int mempool_init(mempool_s*, int, void* (unsigned int, void*)*, void (void*, void*)*, void*)'

'struct cfg80211_bitrate_mask at cfg80211.h:893:1' changed:
  type size hasn't changed
  there are data member changes:
    '__anonymous_struct__1 cfg80211_bitrate_mask::control[3]' has *some* difference - please report as a bug
  one impacted interface

Bug: 171749628
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Change-Id: I5ab039467ea5c57ac1ded16bd76f27c0fbcbc05b
2020-11-16 10:04:27 -08:00
lucaswei
ca12e94136 ANDROID: GKI: update the ABI xml
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function int timer_reduce(timer_list*, unsigned long int)'

Bug: 162298027
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: Iaffffb1010076841c308b810f36e7eb5588fff01
2020-10-30 12:21:53 +08:00
Matthias Maennich
aed8814289 ANDROID: Refresh ABI.xmls with libabigail 1.8.0-98bbf30d
This adds missing anonymous to union types, creating some one-time
churn.

Bug: 167563393
Change-Id: I08f55d48793870c6a82ff2c76d3460733ffdbe41
Signed-off-by: Matthias Maennich <maennich@google.com>
2020-09-28 14:42:26 +01:00
Matthias Maennich
17670c1a71 ANDROID: Refresh ABI.xmls with libabigail 1.8.0-1dca710a
This upgrades some types from declaration-only tracking to full type
tracking, but creates this one-time churn.

Bug: 158736583
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I39f778d7660fb4065eec2ecb6dd1ed47816e25b6
2020-09-22 17:33:09 +01:00
Matthias Maennich
9e7399f6fa ANDROID: KMI symbol lists: migrate section name
Libabigail learned to accept 'symbol_list' as a valid suffix for symbol
list sections. Hence make use of it consistently.

Bug: 162536543
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I1454b0068769c9e57a533dafb6267e63adb7ceb0
2020-09-18 08:46:44 +00:00
Giuliano Procida
ea1951959b ANDROID: ABI: refresh with latest libabigail 94f5d4ae
This is a one-off change that updates the type ids of anonymous
structs and unions to a more stable id.

Bug: 163532421
Change-Id: Ie23e7891f05b5521b1da8e0af9089e0fa1afe617
Signed-off-by: Giuliano Procida <gprocida@google.com>
2020-09-14 11:45:05 +01:00
Will McVicker
6410fbaaaf ANDROID: GKI: update the ABI xml
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added
function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added
variable

1 Added function:

  [A] 'function void usb_hcd_platform_shutdown(platform_device*)'

Bug: 162298027
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: I7302460d3558eef262e9c77cc2766c6aeee896e9
Signed-off-by: Will McVicker <willmcvicker@google.com>
2020-08-28 10:51:09 -07:00
Yiwei Zhang
76ed157305 ANDROID: ABI: update the ABI xml representation
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

1 Added variable:

  [A] 'tracepoint __tracepoint_gpu_mem_total'

Bug: 155967942
Change-Id: Ibd9a55dff5e32926399d6b7b655dde0d3ee38407
Signed-off-by: Yiwei Zhang <zzyiwei@google.com>
2020-08-20 13:38:08 -07:00
Will McVicker
d5d6acdf8e ANDROID: Update the ABI xml based on the new driver core padding
Leaf changes summary: 1811 artifacts changed (5 filtered out)
Changed leaf types summary: 58 leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 1735 Changed (5 filtered out), 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 18 Changed, 0 Added variable

Bug: 163662096
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I167955cce0d661406fe8ebb047b4fd277fcd823e
2020-08-13 21:54:57 -07:00