Commit Graph

45 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
f3674eb0fb ANDROID: fix up abi issue with struct snd_pcm_runtime
A portion of the fix for CVE-2022-1048, commit 9cb6c40a6e ("ALSA: pcm:
Fix races among concurrent hw_params and hw_free calls") and
40f4cffbe1 ("ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and
mmap_lock"), caused an ABI break by adding a new field to struct
snd_pcm_runtime.  Because we have to keep this new addition, it is safe
to move it to the end of the structure because this is only ever created
by the sound core, and referenced as a pointer everywhere else.

This does require a .xml update also to handle the increased structure
size:

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 snd_pcm_runtime at pcm.h:367:1' changed:
  type size changed from 6144 to 6464 (in bits)
  2 data member insertions:
    'mutex buffer_mutex', at offset 6144 (in bits) at pcm.h:454:1
    'atomic_t buffer_accessing', at offset 6400 (in bits) at pcm.h:455:1
  59 impacted interfaces

Bug: 161946584
Fixes: 9cb6c40a6e ("ALSA: pcm: Fix races among concurrent hw_params and hw_free calls")
Fixes: 40f4cffbe1 ("ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I525799616e06c1d2c5513821a3361e99dcb7e553
2022-05-18 14:50:41 +02:00
Greg Kroah-Hartman
2a00428dbc ANDROID: GKI: update the abi .xml file due to hex_to_bin() changes
Commit 0f509c4428 ("hex2bin: make the function hex_to_bin
constant-time") in 4.19.242 changed the signature of the hex_to_bin()
function to fix a key leak attack vector.  This is not an abi break as
older modules that use the function will still work properly, and the
CRC is preserved, but this resolves any issues going forward as well.

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

1 function with some sub-type change:

  [C] 'function int hex_to_bin(char)' at hexdump.c:56:1 has some sub-type changes:
    parameter 1 of type 'char' changed:
      type name changed from 'char' to 'unsigned char'
      type size hasn't changed

Fixes: 0f509c4428 ("hex2bin: make the function hex_to_bin constant-time")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I26b2283300369049abc831072df9a5ace3e770d1
2022-05-13 09:30:42 +02:00
JohnnLee
90a691fca4 ANDROID: Add allowed symbols requried from Qualcomm drivers
Kernel modules of cdsprm.ko, msm_adreno.ko, and msm_npu.ko
added new requirements to exported kernel symbols. Add these symbols
into symbol list to make it able to boot with android common kernel.

Leaf changes summary: 9 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, 9 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

9 Added functions:

  [A] 'function int crypto_register_scomp(scomp_alg*)'
  [A] 'function int crypto_unregister_scomp(scomp_alg*)'
  [A] 'function int dev_pm_qos_add_request(device*, dev_pm_qos_request*, dev_pm_qos_req_type, s32)'
  [A] 'function int dev_pm_qos_update_request(dev_pm_qos_request*, s32)'
  [A] 'function dma_fence_array* dma_fence_array_create(int, dma_fence**, u64, unsigned int, bool)'
  [A] 'function void dma_fence_free(dma_fence*)'
  [A] 'function bool irq_work_queue(irq_work*)'
  [A] 'function int register_reboot_notifier(notifier_block*)'
  [A] 'function int unregister_reboot_notifier(notifier_block*)'

Bug: 215082374
Change-Id: I8e3f987a2bd172752454479339b25015dc3d807b
Signed-off-by: JohnnLee <johnnlee@google.com>
2022-01-20 18:33:07 +08:00
Greg Kroah-Hartman
3acb4b2a27 ANDROID: GKI: abi workaround for 4.19.221
There is an abi break in the 4.19.221 release with regards to struct
Qdisc'.  A new variable is added to the structure, but the size does not
change and the variable is at the end of the structure, so it is safe to
just hide the change from the CRC check and update the .xml file as
nothing has to be rebuilt.

(note, DRM change below is due to .xml file update and difference
between doing LTO=full and LTO=thin, this update was with LTO=full).

Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 2 leaf types 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 Qdisc at sch_generic.h:57:1' changed:
  type size hasn't changed
  1 data member insertion:
    'callback_head rcu', at offset 2112 (in bits) at sch_generic.h:112:1
  1995 impacted interfaces

'struct drm_crtc_helper_funcs at drm_modeset_helper_vtables.h:59:1' changed (indirectly):
  type size hasn't changed
  there are data member changes:
    type 'int (drm_crtc*, drm_framebuffer*, int, int, enum mode_set_atomic)*' of 'drm_crtc_helper_funcs::mode_set_base_atomic' changed:
      pointer type changed from: 'int (drm_crtc*, drm_framebuffer*, int, int, enum mode_set_atomic)*' to: 'int (drm_crtc*, drm_framebuffer*, int, int, enum mode_set_atomic)*'
  189 impacted interfaces

Bug: 173788806
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5b9cd74845855f6699657500ac74b8129564ccdd
2021-12-14 18:29:46 +01:00
Greg Kroah-Hartman
0ef7e4e696 ANDROID: GKI: update .xml file for struct sock change
Nothing changed that affects the running api, but libabigail has some
issues with anonymous unions so we need to update the .xml file to let
it know all is well here.

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 sock at sock.h:328:1' changed:
  type size hasn't changed
  there are data member changes:
    data member u64 android_kabi_reserved1 at offset 5888 (in bits) became anonymous data member 'union {spinlock_t sk_peer_lock; struct {u64 android_kabi_reserved1;}; union {};}'
  864 impacted interfaces

Fixes: ddf077f140 ("ANDROID: Fix up KABI breakage in 4.19.209 in struct sock")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ia79e9095e2cb88208b6bb6a83ef2579c59d9fd64
2021-10-11 08:08:01 +02:00
Steve Muckle
7ddda2f444 ANDROID: GKI: update ABI xml
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 bool pci_device_is_present(pci_dev*)'
  [A] 'function void virtio_break_device(virtio_device*)'

Bug: 201573748
Change-Id: I8e94e4ae88b8f4d5c915229112978f6d53b895dc
Signed-off-by: Steve Muckle <smuckle@google.com>
2021-10-01 18:51:46 +00:00
Steve Muckle
2b584c4393 ANDROID: GKI: Update aarch64 cuttlefish symbol list
Add symbols required by virtio_pci.

Bug: 201573748
Change-Id: Ia7251762d785fd78e015188d4055dfd6bac45991
Signed-off-by: Steve Muckle <smuckle@google.com>
2021-10-01 18:28:56 +00:00
Ricky Niu
17a6c31153 ANDROID: update ABI representation
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 cdev_device_add(cdev*, device*)'
  [A] 'function void cdev_device_del(cdev*, device*)'

Bug: 178720043
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I6a986df123c0ef0205bbed63aa965128e25f027c
2021-08-27 10:39:52 +00:00
J. Avila
7bb4da1139 ANDROID: GKI: Update the ABI XML
Leaf changes summary: 18 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 18 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

18 Added functions:

  [A] 'function void __hvc_resize(hvc_struct*, winsize)'
  [A] 'function ssize_t __splice_from_pipe(pipe_inode_info*, splice_desc*, splice_actor*)'
  [A] 'function void bt_err(const char*, ...)'
  [A] 'function int fasync_helper(int, file*, int, fasync_struct**)'
  [A] 'function hci_dev* hci_alloc_dev()'
  [A] 'function void hci_free_dev(hci_dev*)'
  [A] 'function int hci_recv_frame(hci_dev*, sk_buff*)'
  [A] 'function int hci_register_dev(hci_dev*)'
  [A] 'function void hci_unregister_dev(hci_dev*)'
  [A] 'function hvc_struct* hvc_alloc(uint32_t, int, const hv_ops*, int)'
  [A] 'function int hvc_instantiate(uint32_t, int, const hv_ops*)'
  [A] 'function void hvc_kick()'
  [A] 'function int hvc_poll(hvc_struct*)'
  [A] 'function int hvc_remove(hvc_struct*)'
  [A] 'function void kill_fasync(fasync_struct**, int, int)'
  [A] 'function void pipe_lock(pipe_inode_info*)'
  [A] 'function void pipe_unlock(pipe_inode_info*)'
  [A] 'function void security_sk_clone(const sock*, sock*)'

Bug: 191700886
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: I81844a00e8439abd72da0a0f4723f33ecee2075e
2021-06-21 22:32:04 +00:00
J. Avila
8a2d85372f ANDROID: GKI: Update the symbol list
Add the symbols needed for virtio_console and hci_vhci.

Bug: 191700886
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: I96ee5990cdfa2da5fe0d1eaaf610b193a6b7b1bb
2021-06-21 22:31:57 +00:00
Paul Lawrence
86a623814b ANDROID: GKI: update allowed list for incrementalfs.ko
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 sysfs_emit(char*, const char*, ...)'

Bug: 186855533
Test: Builds
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I1dc7fb4da564f7cc0d70e7c1ccf278ab8fc46a80
2021-05-19 09:20:31 -07:00
Lucas Wei
1c25cf621d ANDROID: Add allowed symbols requried from Qualcomm drivers
Kernel modules of qpnp-smb5-charger.ko, swr_ctrl_dlkm.ko and msm_drm.ko
added new requirements to exported kernel symbols. Add these symbols
into symbol list to make it able to boot with android common kernel.

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

4 Added functions:

  [A] 'function ktime_t alarm_expires_remaining(const alarm*)'
  [A] 'function bool drm_edid_is_valid(edid*)'
  [A] 'function unsigned long int pm_runtime_autosuspend_expiration(device*)'
  [A] 'function void tracing_off()'

Bug: 185091725
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: Iadd6de18f536a3763becf1c62e152124be9ef405
Signed-off-by: Will McVicker <willmcvicker@google.com>
2021-05-03 13:24:07 -07:00
Paul Lawrence
67f548809d ANDROID: GKI: update allowed list for incrementalfs.ko
Leaf changes summary: 17 artifacts changed (18 filtered out)
Changed leaf types summary: 0 (18 filtered out) leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 16 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

16 Added functions:

  [A] 'function void __audit_inode_child(inode*, const dentry*, const unsigned char)'
  [A] 'function int __fsnotify_parent(const path*, dentry*, __u32)'
  [A] 'function int __fsverity_verify_signature(const inode*, const u8*, u32, const u8*, unsigned int)'
  [A] 'function void d_delete(dentry*)'
  [A] 'function vm_fault_t filemap_fault(vm_fault*)'
  [A] 'function void filemap_map_pages(vm_fault*, unsigned long int, unsigned long int)'
  [A] 'function vm_fault_t filemap_page_mkwrite(vm_fault*)'
  [A] 'function int fsnotify(inode*, unsigned int, void*, int, const unsigned char*, unsigned int)'
  [A] 'function void generic_fillattr(inode*, kstat*)'
  [A] 'function void inode_set_flags(inode*, unsigned int, unsigned int)'
  [A] 'function int kobject_add(kobject*, kobject*, const char*, ...)'
  [A] 'function void kobject_init(kobject*, kobj_type*)'
  [A] 'function char* match_strdup(const __anonymous_struct__*)'
  [A] 'function void* memchr_inv(void*, int, size_t)'
  [A] 'function void touch_atime(const path*)'
  [A] 'function long int vfs_truncate(const path*, loff_t)'

1 Added variable:

  [A] 'const sysfs_ops kobj_sysfs_ops'

Bug: 186190934
Test: With rest of series and ABI update incrementalfs.ko loads
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I7b191093ce9f8f226663ec55ed3f98eaa53f83aa
2021-04-27 11:52:29 -07: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
Marco Ballesio
f2cce51e2b ANDROID: GKI: Update the ABI xml representation
Leaf changes summary: 686 artifacts changed (67 filtered out)
Changed leaf types summary: 2 (1 filtered out) leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 678 Changed (64 filtered out), 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 6 Changed (2 filtered out), 0 Added variable

'struct cgroup at cgroup-defs.h:320:1' changed:
  type size changed from 17536 to 17856 (in bits)
  4 data member insertions:
    'cgroup_freezer_state cgroup::freezer', at offset 17504 (in bits) at cgroup-defs.h:476:1
    'u64 cgroup::android_kabi_reserved1', at offset 17664 (in bits) at cgroup-defs.h:478:1
    'u64 cgroup::android_kabi_reserved2', at offset 17728 (in bits) at cgroup-defs.h:479:1
    'u64 cgroup::android_kabi_reserved3', at offset 17792 (in bits) at cgroup-defs.h:480:1
  there are data member changes:
    'int cgroup::ancestor_ids[]' offset changed from 17504 to 17856 (in bits) (by +352 bits)
  1553 impacted interfaces

'struct cgroup_root at cgroup-defs.h:465:1' changed (indirectly):
  type size changed from 51392 to 51712 (in bits)
  there are data member changes:
    type 'struct cgroup' of 'cgroup_root::cgrp' changed, as reported earlier
    'int cgroup_root::cgrp_ancestor_id_storage' offset changed from 17664 to 17984 (in bits) (by +320 bits)
    'atomic_t cgroup_root::nr_cgrps' offset changed from 17696 to 18016 (in bits) (by +320 bits)
    'list_head cgroup_root::root_list' offset changed from 17728 to 18048 (in bits) (by +320 bits)
    'unsigned int cgroup_root::flags' offset changed from 17856 to 18176 (in bits) (by +320 bits)
    'idr cgroup_root::cgroup_idr' offset changed from 17920 to 18240 (in bits) (by +320 bits)
    'char cgroup_root::release_agent_path[4096]' offset changed from 18112 to 18432 (in bits) (by +320 bits)
    'char cgroup_root::name[64]' offset changed from 50880 to 51200 (in bits) (by +320 bits)
  1553 impacted interfaces

Bug: 163547360
Signed-off-by: Marco Ballesio <balejs@google.com>
Change-Id: I88cae7b0e417f1c37eeee7f430c412d4d29b84de
2020-08-13 22:28:35 +00:00
Will McVicker
59619eb9de ANDROID: GKI: update the ABI xml
Leaf changes summary: 8 artifacts changed
Changed leaf types summary: 1 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 7 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

7 functions with some sub-type change:
'enum power_supply_property at power_supply.h:171:1' changed:
  type size hasn't changed
  1 enumerator insertion:
    'power_supply_property::POWER_SUPPLY_PROP_CC_TOGGLE_ENABLE' value '216'
  10 enumerator changes:
    ...
  7 impacted interfaces:
    ...

Signed-off-by: Will McVicker <willmcvicker@google.com>
Bug: 163013210
Bug: 162697021
Change-Id: Ic06e2fbab95ac11a23089770ab69ed6bfd03ae6b
2020-08-06 12:16:29 -07:00
J. Avila
b777af4bb9 ANDROID: GKI: 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, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void register_tick_sched_wakeup_callback(void ()*)'

Bug: 161415027
Bug: 161414381
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: Ib540dbd71f6fe78ac8b5a473b4fce7ebfaeaa5be
2020-07-20 21:42:12 +00:00
Will McVicker
725e0221d8 ANDROID: GKI: update abi based on padding fields being added
Leaf changes summary: 26 artifacts changed
Changed leaf types summary: 2 leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 24 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

24 functions with some sub-type change:
...

'struct snd_usb_endpoint at card.h:53:1' changed:
  type size changed from 44544 to 44800 (in bits)
  4 data member insertions:
    'u64 snd_usb_endpoint::android_kabi_reserved1', at offset 44544 (in bits) at card.h:112:1
    'u64 snd_usb_endpoint::android_kabi_reserved2', at offset 44608 (in bits) at card.h:113:1
    'u64 snd_usb_endpoint::android_kabi_reserved3', at offset 44672 (in bits) at card.h:114:1
    'u64 snd_usb_endpoint::android_kabi_reserved4', at offset 44736 (in bits) at card.h:115:1
  2 impacted interfaces

'struct usb_gadget at gadget.h:465:1' changed:
  type size changed from 8512 to 8768 (in bits)
  4 data member insertions:
    'u64 usb_gadget::android_kabi_reserved1', at offset 8512 (in bits) at gadget.h:503:1
    'u64 usb_gadget::android_kabi_reserved2', at offset 8576 (in bits) at gadget.h:504:1
    'u64 usb_gadget::android_kabi_reserved3', at offset 8640 (in bits) at gadget.h:505:1
    'u64 usb_gadget::android_kabi_reserved4', at offset 8704 (in bits) at gadget.h:506:1
  22 impacted interfaces

Bug: 151154716
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I8013f98b7d3719e8467e33cf56a773503d4b6a93
2020-07-14 13:15:57 -07:00
Matthias Maennich
debdc777a1 ANDROID: Update ABI representation for libabigail update
A recent update of libabigail introduces some more tracking options
(ELF variable sizes, aliased symbols, CRC values). Unfortunately this is
incompatible with the current representation. Hence update.

The update introduces new CRC values and corrects the symbol lists to
contain only symbols that are part of the ksymtab.
The symbols of the modules are now listed along with the symbols of
vmlinux. That is a benign flaw that does not harm analysis and will be
corrected later.

Bug: 155140830
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: If363c5629a94844e35a9c7de87f89f2acd091a81
2020-07-08 15:49:43 +02:00
Matthias Maennich
4e43f533ba ANDROID: Update the ABI representation
This updates the representation incorporating the latest (ABI
compatible) source code changes.
It also helps reducing the size of the update with the new libabigail
version coming up.

Bug: 155140830
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I03db0b0460062ba3106c5bea261b8a715051a923
2020-07-08 15:44:10 +02:00
Martin Liu
e2ccf53c41 ANDROID: Update the ABI xml representation
Leaf changes summary: 8 artifacts changed
Changed leaf types summary: 7 leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 1 Changed, 0 Added variable

Bug: 130198686
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I62ba25e2ca10374070a253074930a196ebc7ad3f
2020-07-08 12:05:14 +08:00
Greg Kroah-Hartman
c579764ff6 ANDROID: GKI: move abi files to android/
It's good to move the abi files out of the root kernel directory, so
move them to android/ to make it obvious these are add-on things, not
anything that is upstream.

Bug: 155573384
Cc: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9f6c2269a1c4e8e4233971adc805cb7584d455f9
2020-07-07 09:36:54 +02:00