Commit graph

69430 commits

Author SHA1 Message Date
Treehugger Robot
32ceaa1299 Merge "String16 is moveable (noexcept)" am: 3551e457ca
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1749261

Change-Id: Ia50fc76500c60ead9386f950aeb2f4369c006730
2021-06-30 01:33:26 +00:00
Treehugger Robot
3551e457ca Merge "String16 is moveable (noexcept)" 2021-06-30 01:23:02 +00:00
Daniel Rosenberg
b2a84f797e Merge "Add exfat utilities for mkfs and fsck" am: 2c1aead903
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1717559

Change-Id: I1147c1c3af59ff09d32c85922eef08457d124bfb
2021-06-30 00:14:16 +00:00
Daniel Rosenberg
2c1aead903 Merge "Add exfat utilities for mkfs and fsck" 2021-06-29 23:57:57 +00:00
Treehugger Robot
ab88c70a5b Merge "[MTE] Add a HWASan-style tag dump to tombstones." am: 9e52385898
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1680005

Change-Id: I436db7c7642cef33ab5bfea53d5a30d154e93da1
2021-06-29 23:03:36 +00:00
Treehugger Robot
9e52385898 Merge "[MTE] Add a HWASan-style tag dump to tombstones." 2021-06-29 22:46:59 +00:00
Devin Moore
a5fcfcb383 Merge "Revert "Handle "hardware" bootconfig parameter as "androidboot.hardware""" am: 41d3223d3f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1741484

Change-Id: Ia662fae2f48e002cc4b0f6b98f939e91fbfb8f7f
2021-06-29 20:03:41 +00:00
Devin Moore
41d3223d3f Merge "Revert "Handle "hardware" bootconfig parameter as "androidboot.hardware""" 2021-06-29 19:47:15 +00:00
Steven Moreland
6e579571de Merge "storaged: remove unused libsysutils dep" am: f326be7cfb
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1750034

Change-Id: If7749a206d5d7c2bcc27dcbbbf428f7a694e8712
2021-06-29 19:39:47 +00:00
Steven Moreland
009d89e7cc Merge "snapshotctl: remove unused libbinder dep" am: eac62c1389
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1750037

Change-Id: I8b4880e633c052cd9a9c1a770f358c23f9647eab
2021-06-29 19:38:55 +00:00
Steven Moreland
bb8d1837ca Merge "usbd - remove unused libcutils dep" am: 435bae7acd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1750033

Change-Id: I19e19db357aa20a44563d401a795dee90c11de2b
2021-06-29 19:38:17 +00:00
Steven Moreland
f326be7cfb Merge "storaged: remove unused libsysutils dep" 2021-06-29 18:00:35 +00:00
Steven Moreland
eac62c1389 Merge "snapshotctl: remove unused libbinder dep" 2021-06-29 17:58:39 +00:00
Steven Moreland
435bae7acd Merge "usbd - remove unused libcutils dep" 2021-06-29 17:58:38 +00:00
David Anderson
c760de2173 Merge "init: fix to set sd device label correctly for FS" am: da75aa7b6b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1717435

Change-Id: I3e8ddbfc1fe1fc8e8d3f3d9aa8d0d8ce152a27ad
2021-06-29 04:23:04 +00:00
David Anderson
da75aa7b6b Merge "init: fix to set sd device label correctly for FS" 2021-06-29 04:12:13 +00:00
Jooyung Han
98b396e785 String16 is moveable (noexcept)
String16 is still in use by AIDL compiler. Because String16 is not
noexcept-move-constructible, the C++ compiler will complain when it is
used with non-copyable types (such as ParcelFileDescriptor).

For example, when vector<Foo> is resized, copy-ctor of Foo is called,
which is not available.

  parcelable Foo {
    String s;
    ParcelFileDescriptor[] pfds;
  }

By providing noexcept move-ctor for String16, vector<Foo> can be resized
with no problem.

Btw, copy from StaticString16 is specialized for efficiency and move
from StaticString16 don't need to be different from copy.

Bug: 192136980
Test: libutils_test
Change-Id: I13744a2ceebf5781c3ef7f3a04237a6750b0db0a
2021-06-29 10:18:23 +09:00
Nikita Ioffe
25f5714a57 Merge "Add CreateEmptyDevice and WaitForDevice APIs" am: c037bdbc5a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1748047

Change-Id: Ibca06cb59f1c6bb65f5a8714f2863da35367f2a4
2021-06-29 00:29:31 +00:00
Steven Moreland
5864a6211c snapshotctl: remove unused libbinder dep
not needed (may be needed by deps, but still).

Bug: N/A
Test: N/A
Change-Id: I3bc128717df50120c803d1d8bb5f9537f27cefd8
2021-06-29 00:24:02 +00:00
Steven Moreland
13e8fa6664 storaged: remove unused libsysutils dep
Unused.

Bug: N/A
Test: build only
Change-Id: I47e5e2c2c19e2e06b920bf36695f28af4db6095f
2021-06-29 00:10:39 +00:00
Nikita Ioffe
c037bdbc5a Merge "Add CreateEmptyDevice and WaitForDevice APIs" 2021-06-29 00:08:33 +00:00
Steven Moreland
9000a133cc usbd - remove unused libcutils dep
Well, the dependency of my dependency is still my dependency, so it'll
still be loaded, but there is no need for the declaration here.

Bug: N/A
Test: N/A
Change-Id: I27495eee1a76401dba316f425c2e43a692357543
2021-06-28 23:56:29 +00:00
Mitch Phillips
5ddcea2924 [MTE] Add a HWASan-style tag dump to tombstones.
We already dump the tags in the regigster dump section by appending the
tag to the memory address. You only get 2 granules before each register
and 13 after.

The HWASan-style tag dump is extremely useful for debugging, as it gives
a pretty comprehensive overview of the memory subsystem. It also
provides enough context bytes (256) to give you a reasonable intuition
about a particular bug.

The tag dump shows up only if PTRACE_PEEKTAGS returns at least one value
in the 256 requested. If the start of end of the region is untagged,
it's omitted. The tag dump looks like this:

Change-Id: Icc33fb97542d9b1fa3ae9e58aba34d524c6ba7b5

---
Memory tags around the fault address (0x60000704414d340), one tag per 16 bytes:
      0x704414d000: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d100: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d200: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
    =>0x704414d300: 0  0  0  0 [2] 2  0  0  0  0  0  0  0  0  0  0
      0x704414d400: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d500: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d600: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d700: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d800: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414d900: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
      0x704414da00: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
---

Bug: 183992164
Test: atest debuggerd_test on MTE+QEMU and sunfish.

Change-Id: I8d5842e4803ca30b407e866c99eef56f2cb36600
2021-06-28 15:53:10 -07:00
Nikita Ioffe
15e0f5a98a Add CreateEmptyDevice and WaitForDevice APIs
These APIs support a flow in which dm devices can be created before they
are actually needed, hence minimizing the time a process will wait for
ueventd to create user space paths.

Bug: 190618831
Test: atest libdm_test
Change-Id: I4dfa14e5271a6a13de6da73ec3c7efb1ebc0f8b8
2021-06-28 18:54:12 +01:00
Treehugger Robot
2b01569a19 Merge "License boilerplate." am: 5e2363e14d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1747995

Change-Id: I6e76e523c174e01c7411b5bdbf86b30acace8ac8
2021-06-26 00:46:34 +00:00
Treehugger Robot
c317f349cf Merge "Correctly implement a stub for AddSequenceData" am: 8704d21c79
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1748940

Change-Id: Ia64b3e9b41a9e3ab56838ee776c12380d348cee7
2021-06-26 00:46:16 +00:00
Treehugger Robot
5e2363e14d Merge "License boilerplate." 2021-06-26 00:33:20 +00:00
Treehugger Robot
8704d21c79 Merge "Correctly implement a stub for AddSequenceData" 2021-06-26 00:33:01 +00:00
Elliott Hughes
813fd6d1fd License boilerplate.
Bug: http://b/191499510
Test: treehugger
Change-Id: Ie0c34ec4713e04511a31ec033a097cb1c033fe79
2021-06-25 14:42:51 -07:00
Kelvin Zhang
a1e1727b61 Correctly implement a stub for AddSequenceData
AddSequenceData isn't supposed to be a "free function".
It belongs to ICowWriter class

Test: m update_engine
Change-Id: I2828651f26eefe5f9c76526608b9abdb6225dea0
2021-06-25 20:38:09 +00:00
Treehugger Robot
a06497620d Merge "trusty: Increase maximum number of coverage counters" am: d669e6291c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1747939

Change-Id: Ib96a882900aabd84295423d857c0ef30190bf8a1
2021-06-25 19:03:10 +00:00
Treehugger Robot
d669e6291c Merge "trusty: Increase maximum number of coverage counters" 2021-06-25 18:50:30 +00:00
Wei Wang
6b4f8c426b Merge "init.rc: remove system cgroup migraion" am: d6f64171fe
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1747774

Change-Id: I86cbbadd2a6394f74c4c0b89d66ca17dfe88fa46
2021-06-25 17:25:36 +00:00
Wei Wang
d6f64171fe Merge "init.rc: remove system cgroup migraion" 2021-06-25 17:06:11 +00:00
Guo Weichao
bcefbb1dfb init: fix to set sd device label correctly for FS
The sysfs node of sd blk_device is /sys/fs/f2fs/sd-<num>, we shouldn't
skip partition number at this time.

Bug: 189257443
Test: access sd-<num> sysfs correctly
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Change-Id: Ibcd7bb265f8fca9cd26f8770403f1bafad433acb
2021-06-25 21:42:17 +08:00
Tri Vo
8ad386576f trusty: Increase maximum number of coverage counters
Confirmation UI TA has 52585 counters.

Bug: 171750250
Test: trusty_confirmationui_tipc_fuzzer
Change-Id: Iecb7c88c41c67ce4ab22c56b9e34ad5370b4018d
2021-06-24 22:23:21 -07:00
Wei Wang
7703d074cc init.rc: remove system cgroup migraion
We never use CONFIG_RT_GROUP_SCHED in GKI kernel, but that could be set
on legacy devices. Remove system cgroup migration and also RT settings
as we should not have any task under those groups.

Bug: 191925901
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Merged-In: I492833975e28e9888e412711e80670ca0901010d
Change-Id: I492833975e28e9888e412711e80670ca0901010d
(cherry picked from commit b4e79853cd)
2021-06-24 18:00:08 -07:00
Christopher Ferris
dfb2f4d94a Merge "Avoid using thread cache in unwinder." am: bd5d08c135
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1745387

Change-Id: I7762af4b3156672ce3ef304cb674e4eb2fcb3409
2021-06-24 20:42:24 +00:00
Christopher Ferris
bd5d08c135 Merge "Avoid using thread cache in unwinder." 2021-06-24 20:21:12 +00:00
Shawn Willden
4807c18d8a Merge "Add TrustyKeyMintDevice" am: 9a62860e8b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1740457

Change-Id: Ic9e338b32c10a93ef5fc194a89f348434cdfcb2c
2021-06-24 18:48:36 +00:00
Shawn Willden
9a62860e8b Merge "Add TrustyKeyMintDevice" 2021-06-24 18:35:42 +00:00
Suren Baghdasaryan
4602b1a714 Merge "Replace writepid with task_profiles command for cgroup migration" am: e6c77a0578
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1740135

Change-Id: Ib7f789669a1127bdad429ead1fd5187ccd6c51e5
2021-06-24 17:42:16 +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
efe24603ea Merge "fs_mgr: fix space instead of tab in code" am: 56a05e1fd8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1744557

Change-Id: Ib23124f76f1e2ad3467670598190cf2d61aa677b
2021-06-24 06:27:34 +00: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
0a9a829044 Merge "Perform a consistency check before deleting snapshots." am: be68d866f1
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737719

Change-Id: I856db00520c59a8047eab96d4c146351ddbcb118
2021-06-24 00:09:17 +00:00
David Anderson
be68d866f1 Merge "Perform a consistency check before deleting snapshots." 2021-06-23 23:51:53 +00:00