David Anderson
61b06cc84f
Merge "init: Add more diagnostics for b/223076262." into tm-dev
2022-04-05 18:13:09 +00:00
David Anderson
d7f2bfba54
init: Add more diagnostics for b/223076262.
...
This adds three more diagnostics to stuck exec services:
1. /proc/pid/fds is dumped
2. /proc/pid/status is dumped
3. HandleSignalFd is called to see if a SIGCHLD got stuck somewhere
Bug: 223076262
Test: while (1) in linkerconfig
Ignore-AOSP-First: diagnostics
Change-Id: Ida601d86e18be9d49b143fb88b418cbc171ecac6
2022-04-05 07:16:27 +00:00
Treehugger Robot
0129956bb0
Merge "Add Rust wrapper for tombstoned client using cxx." am: fad82b6c15
am: f96465ea3f
am: 78f5f5f8a0
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2041969
Change-Id: Id317dc9072230cdb65e4e57aea499e8d92950fd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-05 00:19:22 +00:00
Treehugger Robot
78f5f5f8a0
Merge "Add Rust wrapper for tombstoned client using cxx." am: fad82b6c15
am: f96465ea3f
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2041969
Change-Id: I6586c7e66b1b0423ae73ac0e50a27c850f63c7f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 23:59:38 +00:00
Treehugger Robot
f96465ea3f
Merge "Add Rust wrapper for tombstoned client using cxx." am: fad82b6c15
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2041969
Change-Id: I3981648c34cf7fc318db02ac68c8077af77ff19d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 22:59:03 +00:00
Treehugger Robot
fad82b6c15
Merge "Add Rust wrapper for tombstoned client using cxx."
2022-04-04 22:38:40 +00:00
TreeHugger Robot
3bda230049
[automerger skipped] Merge "Merge Android 12 QPR3 ab/8391262" into stage-aosp-master am: f4d5c4771c
-s ours am: ee06bc6976
-s ours
...
am skip reason: Merged-In I0cad070975c74c1a4814f0e434f93ad81f6e676e with SHA-1 9097c5ea60
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/17544509
Change-Id: I6c1a12434a016226cf7757c25c1af32b9bed058a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 02:49:05 +00:00
Xin Li
a428340760
[automerger skipped] Merge Android 12 QPR3 ab/8391262 am: f78ef769bb
-s ours am: 24ab4613d9
-s ours
...
am skip reason: Merged-In I0cad070975c74c1a4814f0e434f93ad81f6e676e with SHA-1 9097c5ea60
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/17544509
Change-Id: I0cf530205b53a61c5775f7b3b6e64d28dafd76fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 02:47:49 +00:00
TreeHugger Robot
ee06bc6976
[automerger skipped] Merge "Merge Android 12 QPR3 ab/8391262" into stage-aosp-master am: f4d5c4771c
-s ours
...
am skip reason: Merged-In I0cad070975c74c1a4814f0e434f93ad81f6e676e with SHA-1 9097c5ea60
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/17544509
Change-Id: Iab473ded7de55111e23eb61741c7ac2dd126f8e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 02:25:55 +00:00
Xin Li
24ab4613d9
[automerger skipped] Merge Android 12 QPR3 ab/8391262 am: f78ef769bb
-s ours
...
am skip reason: Merged-In I0cad070975c74c1a4814f0e434f93ad81f6e676e with SHA-1 9097c5ea60
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/17544509
Change-Id: If6e1461087f44e37d9d41fe92312e7f6f532f6f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 02:24:40 +00:00
TreeHugger Robot
f4d5c4771c
Merge "Merge Android 12 QPR3 ab/8391262" into stage-aosp-master
2022-04-03 01:59:56 +00:00
Suren Baghdasaryan
1ef6b9bb2e
Merge "init: Treat failure to create a process group as fatal" am: 11602701d4
am: a7cf313f2a
am: 7eede3893d
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052022
Change-Id: I8b05aa3f04f773790d1c88721dd5043f5a93fa33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 20:59:41 +00:00
Suren Baghdasaryan
7eede3893d
Merge "init: Treat failure to create a process group as fatal" am: 11602701d4
am: a7cf313f2a
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052022
Change-Id: I75d8b4a2ad0afa1952c9d510f2520c4a3070e382
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 20:45:22 +00:00
Suren Baghdasaryan
a7cf313f2a
Merge "init: Treat failure to create a process group as fatal" am: 11602701d4
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052022
Change-Id: Iab2ccbe29a60c0217b81cc7d26f1039a06441337
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 20:32:42 +00:00
Suren Baghdasaryan
11602701d4
Merge "init: Treat failure to create a process group as fatal"
2022-04-02 20:11:45 +00:00
Suren Baghdasaryan
1bd1746447
init: Treat failure to create a process group as fatal
...
During process startup, system creates a process group and places the
new process in it. If process group creation fails for some reason, the
new child process will stay in its parent's group. This poses danger
when the child is being frozen because the whole group is affected and
its parent is being frozen as well.
Fix this by treating group creation failure as a fatal error which would
prevent the app from starting.
Bug: 227395690
Test: fake group creation failure and confirm service failure to start
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I83261bef803751759c7fd709bf1ccd33ccad3a0b
2022-04-01 23:32:47 +00:00
Xin Li
f78ef769bb
Merge Android 12 QPR3 ab/8391262
...
Bug: 226662282
Merged-In: I0cad070975c74c1a4814f0e434f93ad81f6e676e
Change-Id: I30a58b4399c60306c3f5dd7ec621bffacdac7057
2022-04-01 20:33:08 +00:00
Florian Mayer
2b393f3664
Merge "Make callback outlive LruCache." am: 6948bbf62c
am: 9e67f9302c
am: 877cd36104
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052189
Change-Id: Ibe676c9758cb914098ea775e05d8f468c0a564e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 01:20:50 +00:00
Florian Mayer
877cd36104
Merge "Make callback outlive LruCache." am: 6948bbf62c
am: 9e67f9302c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052189
Change-Id: I7f8d7d19157528b4b8962bcf0bc9807089236b79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 01:04:16 +00:00
Florian Mayer
9e67f9302c
Merge "Make callback outlive LruCache." am: 6948bbf62c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052189
Change-Id: I19a913c34f9563f71098ff2e995c223d93b3aeb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 00:38:55 +00:00
Florian Mayer
6948bbf62c
Merge "Make callback outlive LruCache."
2022-04-01 00:19:15 +00:00
Treehugger Robot
366d2fb20b
Merge "Add a comment to explain how errno is set" am: b488db911c
am: ee7752efa1
am: 2f9831b4a8
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052049
Change-Id: If327d73b34117dfaad28e5d79e9d1054a008d46d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 22:06:57 +00:00
Treehugger Robot
2f9831b4a8
Merge "Add a comment to explain how errno is set" am: b488db911c
am: ee7752efa1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052049
Change-Id: I32d96695290cbfe6ac1d863a7075b133c53b06be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 21:52:37 +00:00
Treehugger Robot
ee7752efa1
Merge "Add a comment to explain how errno is set" am: b488db911c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052049
Change-Id: I1eaf6244fa6f77d93bfdf690f2f3ac1af17dd73a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 21:39:51 +00:00
Treehugger Robot
b488db911c
Merge "Add a comment to explain how errno is set"
2022-03-31 21:19:14 +00:00
Florian Mayer
e0240d3f61
Make callback outlive LruCache.
...
The callback can be called by the destructor of LruCache, so it needs to be destructed last.
Bug: 227635615
Change-Id: I7d965a2000c1ec32d9c9e88d25ab0c1ba3e9c739
2022-03-31 20:21:28 +00:00
Bart Van Assche
54136f8bf4
Add a comment to explain how errno is set
...
Since it is nontrivial which modifies `errno` is modified in
ExecuteForTask(), add a comment that explains this.
Bug: 213617178
Test: Compile-tested only.
Change-Id: I49ce9c8054fdc59e61b2e5f9ffe6f16743a94401
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-31 11:30:03 -07:00
David Anderson
109e31bbe0
Merge "ueventd: Allow legacy paths in API version 32." am: 48d403a511
am: 7ce7ea098b
am: 9097c5ea60
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048646
Change-Id: I36dd1537f89d66fd2513fcc852c698bd55c0ee00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 22:40:40 +00:00
David Anderson
9097c5ea60
Merge "ueventd: Allow legacy paths in API version 32." am: 48d403a511
am: 7ce7ea098b
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048646
Change-Id: I0cad070975c74c1a4814f0e434f93ad81f6e676e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 22:24:35 +00:00
David Anderson
7ce7ea098b
Merge "ueventd: Allow legacy paths in API version 32." am: 48d403a511
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048646
Change-Id: I6c269c5952652833ebcfbd7b23d9f3600c1d625c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 22:07:01 +00:00
David Anderson
48d403a511
Merge "ueventd: Allow legacy paths in API version 32."
2022-03-30 21:45:46 +00:00
Wei Wang
92f7c8251d
Merge "Revert "Migrate the blkio controller to the v2 cgroup hierarchy"" am: 921d266c81
am: a308946663
am: 0cafbb6824
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2049926
Change-Id: Ieee5ef343bcc955019dbf1ad8dbdd8804a218325
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 17:19:51 +00:00
Wei Wang
0cafbb6824
Merge "Revert "Migrate the blkio controller to the v2 cgroup hierarchy"" am: 921d266c81
am: a308946663
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2049926
Change-Id: Ie1820b71fc3488c6828f6b6fb9b03c96b266d604
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 16:47:21 +00:00
Wei Wang
a308946663
Merge "Revert "Migrate the blkio controller to the v2 cgroup hierarchy"" am: 921d266c81
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2049926
Change-Id: Iab5a3987158f0e856e9acfab76f0cee28d67f173
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 16:22:53 +00:00
Wei Wang
921d266c81
Merge "Revert "Migrate the blkio controller to the v2 cgroup hierarchy""
2022-03-30 16:02:45 +00:00
Bart Van Assche
159563561a
Revert "Migrate the blkio controller to the v2 cgroup hierarchy"
...
Revert "Migrate the blkio controller to the cgroup v2 hierarchy"
Revert "Migrate the blkio controller to the cgroup v2 hierarchy"
Revert "Migrate the blkio controller to the cgroup v2 hierarchy"
Revert submission 1962326-blkio-cgroup-v2
Reason for revert: This set of changes is suspected to have caused a redfin boot time regression for the git_tm-dev branch.
Reverted Changes:
Id18d876b6:Migrate the blkio controller to the cgroup v2 hier...
I7dfa52136:Migrate the blkio controller to the v2 cgroup hier...
I5336167be:Migrate the blkio controller to the cgroup v2 hier...
I3f0131d8f:Migrate the blkio controller to the cgroup v2 hier...
Ibb62b2d4d:Migrate the blkio controller to the cgroup v2 hier...
Bug: 227382327
Bug: 227389363
Change-Id: I6c8183ed1c3044c8947c4fca07799deff98101b3
2022-03-30 14:58:20 +00:00
Andrew Walbran
3b7591248d
Add Rust wrapper for tombstoned client using cxx.
...
Bug: 226162295
Test: atest libtombstoned_client_rust_test
Change-Id: Ibe7c41e2381f0f369a76175d6f71fc60b71cc7d5
2022-03-30 14:17:55 +00:00
Suren Baghdasaryan
c2d8708744
Merge "Revert "Fix the cgroup directory owner in createProcessGroupInternal()"" am: 7c43c6c9a0
am: 71b587a9a5
am: 20a63b9391
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048643
Change-Id: Iedf1a027d6d2d4969ba3fdfdee5060841fcc8700
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:35:45 +00:00
Suren Baghdasaryan
20a63b9391
Merge "Revert "Fix the cgroup directory owner in createProcessGroupInternal()"" am: 7c43c6c9a0
am: 71b587a9a5
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048643
Change-Id: I18994b9b9ebc6d3210973c30193e96cf2174e44a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:20:43 +00:00
Suren Baghdasaryan
71b587a9a5
Merge "Revert "Fix the cgroup directory owner in createProcessGroupInternal()"" am: 7c43c6c9a0
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2048643
Change-Id: I809ee9bd4d9991f83187948fb4d6f18651d469f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:04:28 +00:00
Suren Baghdasaryan
7c43c6c9a0
Merge "Revert "Fix the cgroup directory owner in createProcessGroupInternal()""
2022-03-30 01:48:19 +00:00
Bart Van Assche
8eb7a6edea
Revert "Fix the cgroup directory owner in createProcessGroupInternal()"
...
This reverts commit 812d7698d8
.
Reason for revert: this patch is suspected to have caused b/227337425.
Bug: 227337425
Bug: 227331047
Change-Id: I4ae26ccf61ad7c63dacc85da878ba0920736951c
2022-03-30 01:40:50 +00:00
Treehugger Robot
68876679ff
Merge "Tweak linux_glibc properties for musl builds in system/core" am: ec8519e953
am: e06b7e163e
am: cd92c351b5
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2044103
Change-Id: I2165ce47c46d4d32a34b9b56f01ff415b09fe08b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:52:07 +00:00
Daniel Norman
1644d6ddc8
Merge "Adds an init host lib for use in host_apex_verifier." am: c015f7f96d
am: 6d9c7b738d
am: 3156527be1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2019275
Change-Id: I2fa58a19e8ec009f889eb50b389083aa90fb95f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:51:47 +00:00
David Anderson
ed1bca4b52
ueventd: Allow legacy paths in API version 32.
...
Bug: 226699360
Test: manual test
Change-Id: I2602eaa217a2b6cba8a5fb8acd6d5a8a9e3d405e
2022-03-29 17:50:01 -07:00
Treehugger Robot
cd92c351b5
Merge "Tweak linux_glibc properties for musl builds in system/core" am: ec8519e953
am: e06b7e163e
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2044103
Change-Id: Ib595f7b9603da792547e18e1afc0f6ca456a53c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:37:50 +00:00
Daniel Norman
3156527be1
Merge "Adds an init host lib for use in host_apex_verifier." am: c015f7f96d
am: 6d9c7b738d
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2019275
Change-Id: Ic38ddf2f710d5dad9e1b83ca7dee2093fa69b200
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:37:39 +00:00
Treehugger Robot
e06b7e163e
Merge "Tweak linux_glibc properties for musl builds in system/core" am: ec8519e953
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2044103
Change-Id: I495181e0811a02adbd89decd306a83be31ebf74d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:14:29 +00:00
Daniel Norman
6d9c7b738d
Merge "Adds an init host lib for use in host_apex_verifier." am: c015f7f96d
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2019275
Change-Id: I83697a5dd84b1d103dd0140fcbe340031609e717
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 00:14:16 +00:00
Treehugger Robot
ec8519e953
Merge "Tweak linux_glibc properties for musl builds in system/core"
2022-03-30 00:09:01 +00:00