Commit graph

69382 commits

Author SHA1 Message Date
Yiming Pan
7bd12ad1a9 Add OWNERS for VTS module vts_core_liblp_test
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I685d6fda211c9bce445d9fea351442b29541e639
2021-08-11 16:36:21 -07:00
Christopher Ferris
bd5d08c135 Merge "Avoid using thread cache in unwinder." 2021-06-24 20:21:12 +00:00
Shawn Willden
9a62860e8b Merge "Add TrustyKeyMintDevice" 2021-06-24 18:35:42 +00:00
Suren Baghdasaryan
e6c77a0578 Merge "Replace writepid with task_profiles command for cgroup migration" 2021-06-24 17:26:51 +00:00
Suren Baghdasaryan
2079c5f0c9 Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I945c634dfa7621437d8ea3981bce370d680b7371
2021-06-24 17:24:20 +00:00
yidong zhang
cbf7c466e6 Avoid using thread cache in unwinder.
Using  thread cache will cause SIGSEGV for 32bit+kernel4.9 device.

Bug: 190579082
Bug: 189803009

Test: run cts -m CtsSeccompHostTestCases
Change-Id: I47b13d02674aadbacd8dac36d8382eed0885413c
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2021-06-24 19:04:55 +08:00
Treehugger Robot
56a05e1fd8 Merge "fs_mgr: fix space instead of tab in code" 2021-06-24 06:07:00 +00:00
JeongHyeon Lee
c159edcdb7 fs_mgr: fix space instead of tab in code
Test: build and boot
Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>
Change-Id: I99fde3fe5c1c08954f152fb76daedf272f12cdee
2021-06-24 13:41:08 +09:00
David Anderson
be68d866f1 Merge "Perform a consistency check before deleting snapshots." 2021-06-23 23:51:53 +00:00
Treehugger Robot
a08d328864 Merge "debuggerd: unify licenses." 2021-06-23 01:27:44 +00:00
Elliott Hughes
d151a7c75c Merge "libkeyutils: add the missing NOTICE file." 2021-06-23 00:22:19 +00:00
Devin Moore
86cfa5802c Merge "reboot_utils: Check bootconfig for reboot parameters" 2021-06-22 22:17:27 +00:00
Elliott Hughes
4e36324751 Merge "crash_dump: avoid misleading error messages." 2021-06-21 23:10:47 +00:00
Elliott Hughes
a029d98ad0 crash_dump: avoid misleading error messages.
I'm guessing that the original

  F crash_dump64: crash_dump.cpp:460] failed to attach to thread 1671, already traced by 0 ()

was probably a race, where there _was_ a tracer but they disappeared?
Whatever, it doesn't seem helpful to show "already traced by nobody",
and we also don't want to clobber errno in the fallthrough case
(previously just where get_tracer() failed, but now also where
get_tracer() returns "nobody").

Bug: http://b/188668580
Test: treehugger
Change-Id: I3fa3b4f7e32531d48dfbb0ef946ff351ed5d9171
2021-06-21 12:39:40 -07:00
Devin Moore
2652fdb8aa reboot_utils: Check bootconfig for reboot parameters
Androidboot parameters have moved from /proc/cmdline to /proc/bootconfig
so we need to check both places in reboot_utils.
"ro.boot.*" properties can not be used because this is initialized
before the properties are set.

Test: boot Cuttlefish with init_fatal_panic and
init_fatal_reboot_target in bootconfig and in cmdline
Bug: 191494101

Change-Id: I6c230496ec1c3632470d20ff4a31f28db96ea71b
2021-06-21 09:43:27 -07:00
Elliott Hughes
b6f3da66f9 libkeyutils: add the missing NOTICE file.
Bug: http://b/191499510
Test: treehugger
Change-Id: Ia546ad44f15e4afe7321e9ab6267a0e1f35d0490
2021-06-18 15:55:40 -07:00
Elliott Hughes
b20a3aaa1c debuggerd: unify licenses.
All but three files are Apache-2.0 already.

Bug: http://b/191499510
Test: /google/src/files/head/depot/google3/wireless/android/busytown/ayeaye/analyzers/copyright/tools/scan_android_project.sh ~/aosp/system/core/debuggerd/ | grep -v APACHE
Change-Id: I430c3382dd160e398f02470d7053ecea39c98f41
2021-06-18 15:49:30 -07:00
Inseob Kim
65156052cc Merge "Completely migrate init first stage to Soong" 2021-06-18 17:12:23 +00:00
Shawn Willden
fed81d8e41 Add TrustyKeyMintDevice
Bug: 177729159
Test: Not testable until more CLs land
Merged-In: Iea4e70bb5b4ce051492f2e42d2e0d219d088388e
Change-Id: Iea4e70bb5b4ce051492f2e42d2e0d219d088388e
2021-06-18 07:11:36 -06:00
Xin Li
4824600c22 DO NOT MERGE - Mark RQ3A.210410.001 as merged
Bug: 190855093
Merged-In: I854c79820824b9911014cb068c256310e13fd251
Change-Id: Icca3e1c66dd9044f2e3add8add9b86207051ea66
2021-06-17 22:43:30 -07:00
Inseob Kim
2e20058069 Completely migrate init first stage to Soong
adb_debug.prop is migrated too. And ramdisk_available is added to all
dependencies.

Bug: 187196593
Test: boot
Change-Id: I59cd149e0021211b8fd59c44b93bbf18dc8637bf
2021-06-18 14:26:55 +09:00
Treehugger Robot
5f3ca77970 Merge "Add libbinder_rpc_unstable.so to linker.config.json" am: 1c998ded12
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1733852

Change-Id: I854c79820824b9911014cb068c256310e13fd251
2021-06-17 22:00:58 +00:00
Treehugger Robot
1c998ded12 Merge "Add libbinder_rpc_unstable.so to linker.config.json" 2021-06-17 21:43:55 +00:00
Treehugger Robot
ccd4826d4b Merge "inspect_cow: Dump more header data." am: bc95e98119
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737080

Change-Id: I61c0e4e858e1661cf376a9e2b4cf1882cf2d66a6
2021-06-17 18:28:12 +00:00
Treehugger Robot
bc95e98119 Merge "inspect_cow: Dump more header data." 2021-06-17 18:06:12 +00:00
Treehugger Robot
aee01f2057 Merge "Remove --wipe-and-use-fbe option from fastboot" am: db14785382
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736580

Change-Id: Ifd587698f361c62a30d0dc20026d342cc234f0f7
2021-06-16 18:14:39 +00:00
Treehugger Robot
db14785382 Merge "Remove --wipe-and-use-fbe option from fastboot" 2021-06-16 17:55:36 +00:00
Wei Wang
d1e6aaad43 Merge "task_profiles.json: add taskprofile for SurfaceFlinger" am: 97e1cb1edd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737718

Change-Id: I3e945388da9bfa2d05864173b26947dd9ffb6cff
2021-06-16 04:22:25 +00:00
Wei Wang
97e1cb1edd Merge "task_profiles.json: add taskprofile for SurfaceFlinger" 2021-06-16 04:09:42 +00:00
David Anderson
216f9bbc43 Perform a consistency check before deleting snapshots.
If for some reason the COW state is not fully synced to disk, but
dm-snapshot has flushed its pending merges, we do not want to delete
snapshots. Doing so could potentially leave blocks unmerged.

This situation is quite unexpected so we label it as a merge failure.
The device can recover by completely syncing the COW state, and then
rebooting, which will attempt to make forward progress on the merge.

Bug: 190582627
Test: vts_libsnapshot_test
      full OTA on bramble
      incremental OTA on bramble
Change-Id: Ib887f1d9e4397a712ed2f800cc1222cf9305a039
2021-06-15 17:16:52 -07:00
Paul Crowley
47770a1040 Remove --wipe-and-use-fbe option from fastboot
As per the bug, this option has been obsolete for years
and only causes confusion.

Bug: 167694738
Test: fastboot can still wipe
Change-Id: I24a21cb6110d61dec4af800a1fab0bcedc0a3d5c
2021-06-15 16:07:57 -07:00
Wei Wang
6c54679758 task_profiles.json: add taskprofile for SurfaceFlinger
In some platforms, setting a different cpuset (or remove it) and/or
uclamp setting is beneficial to both performance and power. Adding 2
separate profiles for vendor to override surfaceflinger scheduling
policies.

Bug: 170507315
Test: build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ib313fd67c6ccd701109c5683d8dbab9ecd1580d8
(cherry picked from commit 6d6b71e582)
2021-06-15 15:18:23 -07:00
Treehugger Robot
283798235e Merge "Add some README.md text for init triggers." am: 04d0f7d303
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1724076

Change-Id: I2d32af4b7fe3d249c0d53f87dbb7efac7a610447
2021-06-15 19:57:18 +00:00
Treehugger Robot
04d0f7d303 Merge "Add some README.md text for init triggers." 2021-06-15 19:27:53 +00:00
Pierre-Clément Tosi
a71f5dc67e Merge "fastboot: document second parameter of 'fetch'" am: d75f29fb88
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736753

Change-Id: Ifd423bb8a05923458ba9590439fae9b26af98657
2021-06-15 16:11:52 +00:00
Pierre-Clément Tosi
d75f29fb88 Merge "fastboot: document second parameter of 'fetch'" 2021-06-15 15:43:20 +00:00
Treehugger Robot
9545539454 Merge "Isolate app profile ref data" am: bbf4835c7e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1729395

Change-Id: I07e352506bc12a246b70b8ece78a6f98c33b7031
2021-06-15 11:37:02 +00:00
Treehugger Robot
bbf4835c7e Merge "Isolate app profile ref data" 2021-06-15 11:03:40 +00:00
Treehugger Robot
e8c61e9917 Merge "fs_mgr: support 'check_at_most_once' for dm-verity" am: 79e0890f6d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1717670

Change-Id: Ida32a10c5e49b07df92a8252412678af1d260741
2021-06-15 05:39:08 +00:00
Treehugger Robot
79e0890f6d Merge "fs_mgr: support 'check_at_most_once' for dm-verity" 2021-06-15 05:27:34 +00:00
David Anderson
2583fe2fda inspect_cow: Dump more header data.
Bug: N/A
Test: inspect_cow on COW image
Change-Id: I84c126a608b229b0d58102f620d3be65a1f31796
2021-06-14 17:28:57 -07:00
Christopher Ferris
52cbc2a3bf Merge "Avoid thread cache in unwinder." am: 4c68e77b45
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737076

Change-Id: Iaf9b2732f22e6929093493202681ee9f7a8d5bf8
2021-06-15 00:13:51 +00:00
Christopher Ferris
4c68e77b45 Merge "Avoid thread cache in unwinder." 2021-06-14 23:58:01 +00:00
David Anderson
06dce5e6e8 Merge "libsnapshot: Add stubs for Xor Ops and Sequence Data" am: 4b15582828
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1733152

Change-Id: I586bb08c740d934e3022de93b6f0cf70b74fac48
2021-06-14 21:35:01 +00:00
David Anderson
4b15582828 Merge "libsnapshot: Add stubs for Xor Ops and Sequence Data" 2021-06-14 21:20:24 +00:00
Christopher Ferris
0c787f0d6b Avoid thread cache in unwinder.
The code in the fallback path calls pthread_key_create when using the
normal thread cache. However, this code is executed out of the linker,
which means that the call doesn't see keys created by the libc version
of pthread_key_create. As of now, simply avoid using the thread cache
to avoid this problem.

Bug: 189803009

Test: debuggerd -b on a media process on a 32 bit Android Go device
Test: and observe no crash.
Test: debuggerd unit tests pass.
Change-Id: I9ca1a55e44d3bb69d49450826d7d64d7a64145c3
(cherry picked from commit 49e5a76544)
2021-06-14 19:57:33 +00:00
Pierre-Clément Tosi
96941a0962 fastboot: document second parameter of 'fetch'
Add the OUT_FILE parameter to the documentation of fetch which fails if
used as currently (erroneously) documented:

    $ fastboot fetch boot
    fastboot: usage: expected argument

Test: fastboot help
Change-Id: Ia06d40c2f754e1a55a2052cb84e81f96e71b4573
2021-06-14 12:46:32 +00:00
Treehugger Robot
14833d39d4 Merge "DO NOT MERGE - Merge ab/7272582" am: 1fc3a2d932
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: I9a9b40e2347c7f15b8cb068b3090aaadbda2b006
2021-06-13 22:06:12 +00:00
Xin Li
bd265d5ecc DO NOT MERGE - Merge ab/7272582 am: 95150cc25a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: I99d6c20902be38a34fef9ff0303a9f8aab73ef51
2021-06-13 22:06:00 +00:00
Treehugger Robot
1fc3a2d932 Merge "DO NOT MERGE - Merge ab/7272582" 2021-06-13 21:36:18 +00:00