- 28 May, 2015 3 commits
-
-
Adam Lesinski authored
* commit '4e830641': Prevent integer overflow when allocating native_handle_t
-
Adam Lesinski authored
* commit '1def25a2': Prevent integer overflow when allocating native_handle_t
-
Adam Lesinski authored
Change-Id: I671a57d906ca6826722fb892627d235b14b822eb
-
- 27 May, 2015 4 commits
-
-
Adam Lesinski authored
* commit '058ad0b6': Prevent integer overflow when allocating native_handle_t
-
Adam Lesinski authored
* commit 'e8582d65': Prevent integer overflow when allocating native_handle_t
-
Adam Lesinski authored
* commit '9bd7afc0': Prevent integer overflow when allocating native_handle_t
-
Adam Lesinski authored
User specified values of numInts and numFds can overflow and cause malloc to allocate less than we expect, causing heap corruption in subsequent operations on the allocation. Bug: 19334482 Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
-
- 12 May, 2015 3 commits
-
-
Iliyan Malchev authored
am 8b448629: am 16092b7a: Merge "fs_mgr: allow for zramsize to be specified as percentage of total memory" into lmp-mr1-dev * commit '8b448629': fs_mgr: allow for zramsize to be specified as percentage of total memory
-
Iliyan Malchev authored
am 16092b7a: Merge "fs_mgr: allow for zramsize to be specified as percentage of total memory" into lmp-mr1-dev * commit '16092b7a': fs_mgr: allow for zramsize to be specified as percentage of total memory
-
Iliyan Malchev authored
-
- 07 May, 2015 2 commits
-
-
Christopher Ferris authored
Change-Id: I6aa2ee2c4bf1802e5aa814374f9842a34179ffea
-
Christopher Ferris authored
Modifies the code so that if the unwind fails, the code still prints as much data as possible. Also, for sibling threads, skip printing the maps and memory/code since it's not likely to be very relevant. Fix a few cases where extra space is at the end of lines. Fix an inverted if statement that was checking the wrong condition. Bug: 18816322 Bug: 20829534 (cherry picked from ab9e7dce) Change-Id: If2d3a734724c23df4192f4dfc6bd69d6729fbc8d
-
- 02 May, 2015 1 commit
-
-
Iliyan Malchev authored
If the zramsize entry has a % size at the end, as in the following example: /dev/block/zram0 none swap defaults zramsize=25% then we will set the value as that percentage of total RAM, as read by scanning /proc/meminfo. b/20760266 Seed common build allocated too much for zRAM-backed swap Change-Id: I17c91d311ba99ae7adae112bfe1b38542ea69b80 Signed-off-by:
Iliyan Malchev <malchev@google.com>
-
- 26 Apr, 2015 7 commits
-
-
Nick Kralevich authored
* commit 'ecf184c9': init: get rid of the remaining double mounts
-
Nick Kralevich authored
* commit '9c9280d8': init: get rid of the remaining double mounts
-
Nick Kralevich authored
-
Nick Kralevich authored
* commit '45a49d0e': init: use SELinux /dev/null if available
-
Nick Kralevich authored
* commit 'ccac2be8': init: use SELinux /dev/null if available
-
Nick Kralevich authored
Don't double mount /dev and its subdirectories anymore. Instead, the first stage init is solely responsible for mounting it. Don't have init prepare the property space. This is the responsibility of the second stage init. Don't have SELinux use the property space to determine how we should be running. Instead, create a new function and extract the data we need directly from /proc/cmdline. SELinux needs this information in the first stage init process where the property service isn't available. Change-Id: I5b4f3bec79463a7381a68f30bdda78b5cc122a96
-
Nick Kralevich authored
-
- 25 Apr, 2015 20 commits
-
-
Nick Kralevich authored
SELinux provides it's own /dev/null character device at /sys/fs/selinux/null. This character device is exactly the same as /dev/null, including the same major/minor numbers, and can be used wherever /dev/null is used. Use /sys/fs/selinux/null instead of trying to create our own /dev/__null__ device. This moves us one step closer to eliminating all uses of mknod() by init. /sys/fs/selinux/null is only available once the /sys/fs/selinux filesystem is mounted. It's not available to the first stage init, so we still have to fall back to mknod then. Change-Id: Ic733767ea6220a130537de33cc478ae79578ce20
-
Nick Kralevich authored
* commit 'b31c3a5a': init: don't double mount /proc and /sys
-
Nick Kralevich authored
* commit '6b6df173': init: fix write_file checkreqprot logic error
-
Elliott Hughes authored
* commit 'ecd6e36d': Improve logging of USBDEVFS_CLAIMINTERFACE failures.
-
Nick Kralevich authored
* commit '178299fd': init: don't double mount /proc and /sys
-
Nick Kralevich authored
* commit 'f8b0743e': init: fix write_file checkreqprot logic error
-
Elliott Hughes authored
* commit '47a9ef2f': Improve logging of USBDEVFS_CLAIMINTERFACE failures.
-
Nick Kralevich authored
-
Nick Kralevich authored
-
Elliott Hughes authored
-
Nick Kralevich authored
The first stage init mounts /proc and /sys, and then the second stage init also mounts /proc and /sys on top of the existing mount. Only mount these two directories once, in the first stage init. Not yet fixed: the double mounting of /dev. Removing the double mounting doesn't work right now because both init stages are trying to create a property space, and if the double mount of /dev goes away, the property service in the second stage init fails to work. Change-Id: I13719027a47526d074390c2b1a605ad99fb43a8f
-
Nick Kralevich authored
write_file() returned -errno on error, not -1. Callers who check for -1 would falsely believe that the write was successful when it wasn't. Fixup write_file so that it return -1 on error consistent with other functions. Change-Id: Ic51aaf8678d8d97b2606bd171f11b3b11f642e39
-
Elliott Hughes authored
Bug: https://code.google.com/p/android/issues/detail?id=170054 Change-Id: I9b11eb019093e3322da0a8e70d6e17de4c25ab75
-
Nick Kralevich authored
* commit 'ecfb3664': init: remove mkdir /dev /proc /sys
-
Nick Kralevich authored
* commit '8929c77a': init: remove mkdir /dev /proc /sys
-
Nick Kralevich authored
-
Nick Kralevich authored
These directories are already present in the initial ramdisk, and these mkdir calls are no-ops. Change-Id: I528f9e96a3471de904845a2f9e09c1b6ff83a708
-
Elliott Hughes authored
* commit 'cd58f488': Improve toolbox SIGPIPE behavior.
-
Elliott Hughes authored
* commit '6ce5625d': Improve toolbox SIGPIPE behavior.
-
Elliott Hughes authored
-