ANDROID: af_unix: Provide ABI fixes for recently introduced 'struct scm_fp_list' attribute 'dead'
Adding new attributes to the ABI protected 'struct scm_fp_list' changes the offsets of the fields already present in the structure which could cause issues if modules already have a copy and are unaware of the changes. Let's add it to the end of the structure, under the protection of __GENKSYMS__ as is SOP. Bug: 404256079 Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: If926b8a8bbf293304bbeb7cba66cafe158381fa6
This commit is contained in:
@@ -76378,6 +76378,12 @@ member {
|
||||
type_id: 0x6d7f5ff6
|
||||
offset: 3200
|
||||
}
|
||||
member {
|
||||
id: 0x3bde3edb
|
||||
name: "dead"
|
||||
type_id: 0x6d7f5ff6
|
||||
offset: 16328
|
||||
}
|
||||
member {
|
||||
id: 0x6491a5c4
|
||||
name: "dead"
|
||||
@@ -267019,6 +267025,7 @@ struct_union {
|
||||
member_id: 0x042a2402
|
||||
member_id: 0x5449f846
|
||||
member_id: 0x799ec517
|
||||
member_id: 0x3bde3edb
|
||||
member_id: 0x7b11d1cc
|
||||
member_id: 0x76d74733
|
||||
member_id: 0x11d6bda9
|
||||
|
@@ -210,3 +210,6 @@ type 'struct scm_stat' changed
|
||||
byte size changed from 4 to 16
|
||||
member 'unsigned long nr_unix_fds' was added
|
||||
|
||||
type 'struct scm_fp_list' changed
|
||||
member 'bool dead' was added
|
||||
|
||||
|
@@ -29,14 +29,12 @@ struct unix_edge;
|
||||
struct scm_fp_list {
|
||||
short count;
|
||||
short max;
|
||||
#ifdef CONFIG_UNIX
|
||||
bool dead;
|
||||
#endif
|
||||
struct user_struct *user;
|
||||
struct file *fp[SCM_MAX_FD];
|
||||
#ifndef __GENKSYMS__
|
||||
#ifdef CONFIG_UNIX
|
||||
bool inflight;
|
||||
bool dead;
|
||||
struct list_head vertices;
|
||||
struct unix_edge *edges;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user