OSDN Git Service

android-x86/bionic.git
11 years agoam 8e833972: am 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 01:08:21 +0000 (17:08 -0800)]
am 8e833972: am 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"

* commit '8e833972c2506267024136a0f609bdbb26dcc498':
  FORTIFY_SOURCE: optimize

11 years agoam 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 01:06:11 +0000 (17:06 -0800)]
am 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"

* commit '0a0c23216766adf76739dc38dcb45934105cd41c':
  FORTIFY_SOURCE: optimize

11 years agoam 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 01:04:33 +0000 (17:04 -0800)]
am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"

* commit '4bfaf1e5f62748b305406ff4ceebd5f4b750038c':
  FORTIFY_SOURCE: optimize

11 years agoam a4723742: am 261e9d08: am e4ca88d9: Merge "Add functionlity to the scripts to...
Elliott Hughes [Fri, 18 Jan 2013 00:53:57 +0000 (16:53 -0800)]
am a4723742: am 261e9d08: am e4ca88d9: Merge "Add functionlity to the scripts to replace tokens in kernel headers based on architecture."

* commit 'a4723742c1ee0daa2ec17a148334c548b5edf3a8':
  Add functionlity to the scripts to replace tokens in kernel headers based on architecture.

11 years agoam 261e9d08: am e4ca88d9: Merge "Add functionlity to the scripts to replace tokens...
Elliott Hughes [Fri, 18 Jan 2013 00:51:09 +0000 (16:51 -0800)]
am 261e9d08: am e4ca88d9: Merge "Add functionlity to the scripts to replace tokens in kernel headers based on architecture."

* commit '261e9d08dbf1cd7fea7e1799338238d11d18cb7c':
  Add functionlity to the scripts to replace tokens in kernel headers based on architecture.

11 years agoMerge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 00:49:35 +0000 (00:49 +0000)]
Merge "FORTIFY_SOURCE: optimize"

11 years agoam e4ca88d9: Merge "Add functionlity to the scripts to replace tokens in kernel heade...
Elliott Hughes [Fri, 18 Jan 2013 00:48:45 +0000 (16:48 -0800)]
am e4ca88d9: Merge "Add functionlity to the scripts to replace tokens in kernel headers based on architecture."

* commit 'e4ca88d9fa8757e4fb4056fcafa5bc15b406a2fd':
  Add functionlity to the scripts to replace tokens in kernel headers based on architecture.

11 years agoMerge "Add functionlity to the scripts to replace tokens in kernel headers based...
Elliott Hughes [Fri, 18 Jan 2013 00:34:13 +0000 (00:34 +0000)]
Merge "Add functionlity to the scripts to replace tokens in kernel headers based on architecture."

11 years agoFORTIFY_SOURCE: optimize
Nick Kralevich [Thu, 17 Jan 2013 23:41:33 +0000 (15:41 -0800)]
FORTIFY_SOURCE: optimize

Don't do the fortify_source checks if we can determine, at
compile time, that the provided operation is safe.

This avoids silliness like calling fortify source on things like:

  size_t len = strlen("asdf");
  printf("%d\n", len);

and allows the compiler to optimize this code to:

  printf("%d\n", 4);

Defer to gcc's builtin functions instead of pointing our code
to the libc implementation.

Change-Id: I5e1dcb61946461c4afaaaa983e39f07c7a0df0ae

11 years agoAdd functionlity to the scripts to replace tokens in kernel headers
Raghu Gandham [Thu, 17 Jan 2013 00:42:47 +0000 (16:42 -0800)]
Add functionlity to the scripts to replace tokens in kernel headers
based on architecture.

11 years agoam 36c4eb18: am 3a72fe58: am f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL...
Nick Kralevich [Thu, 17 Jan 2013 19:34:20 +0000 (11:34 -0800)]
am 36c4eb18: am 3a72fe58: am f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"

* commit '36c4eb188c6594db877bd7b9f46c55264180dc3f':
  linker: add -Wl,--exclude-libs,ALL to LDFLAGS

11 years agoam 3a72fe58: am f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"
Nick Kralevich [Thu, 17 Jan 2013 17:01:14 +0000 (09:01 -0800)]
am 3a72fe58: am f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"

* commit '3a72fe587f454a2eea79b5564e4ab1d3880b51c8':
  linker: add -Wl,--exclude-libs,ALL to LDFLAGS

11 years agoam f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"
Nick Kralevich [Thu, 17 Jan 2013 16:58:27 +0000 (08:58 -0800)]
am f3fe1945: Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"

* commit 'f3fe19459fd9263e8cc8a413a5313b1ec3cf3975':
  linker: add -Wl,--exclude-libs,ALL to LDFLAGS

11 years agoMerge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"
Nick Kralevich [Thu, 17 Jan 2013 16:41:31 +0000 (16:41 +0000)]
Merge "linker: add -Wl,--exclude-libs,ALL to LDFLAGS"

11 years agoMerge "dns cache per interface iteration 2"
Robert Greenwalt [Thu, 17 Jan 2013 16:14:51 +0000 (16:14 +0000)]
Merge "dns cache per interface iteration 2"

11 years agolinker: add -Wl,--exclude-libs,ALL to LDFLAGS
Nick Kralevich [Thu, 17 Jan 2013 00:43:15 +0000 (16:43 -0800)]
linker: add -Wl,--exclude-libs,ALL to LDFLAGS

The linker is essentially a shared library, and incorporates
it's own copy of libc. Even though it's unnecessary, currently
/system/bin/linker is exporting various libc symbols (only to
apps which explicitly dlopen /system/bin/linker)

Add --exclude-libs,ALL, which tells the static linker to mark
all of the imported libc symbols as hidden. This reduces the
size of /system/bin/linker from 92K to 67K with no obvious
loss in functionality.

  $ adb shell ls -l /system/bin/linker
  -rwxrwxrwx root     root        92260 2013-01-16 16:52 linker

  $ adb shell ls -l /system/bin/linker
  -rwxrwxrwx root     root        67660 2013-01-16 16:49 linker

Documentation on exclude-libs can be found at
http://sourceware.org/binutils/docs-2.21/ld/Options.html

Change-Id: I4508287770e4b7a845def2e6b4af969f9c866c6a

11 years agoam 91bc5865: am 8d01c055: am 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""
Nick Kralevich [Wed, 16 Jan 2013 21:58:04 +0000 (13:58 -0800)]
am 91bc5865: am 8d01c055: am 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""

* commit '91bc5865a333212e7cac934b0a2ac7c522911d58':
  Revert "stack protector: use AT_RANDOM"

11 years agoam 8d01c055: am 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""
Nick Kralevich [Wed, 16 Jan 2013 21:55:55 +0000 (13:55 -0800)]
am 8d01c055: am 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""

* commit '8d01c0557bb2b7ea30f4038b6c84b816800073a7':
  Revert "stack protector: use AT_RANDOM"

11 years agoam 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""
Nick Kralevich [Wed, 16 Jan 2013 21:53:25 +0000 (13:53 -0800)]
am 1271cdc1: Merge "Revert "stack protector: use AT_RANDOM""

* commit '1271cdc1c91c6ae688917bc8f4ae59d2a97b3e99':
  Revert "stack protector: use AT_RANDOM"

11 years agoMerge "Revert "stack protector: use AT_RANDOM""
Nick Kralevich [Wed, 16 Jan 2013 21:36:53 +0000 (21:36 +0000)]
Merge "Revert "stack protector: use AT_RANDOM""

11 years agoam 27ff1ae4: am de666485: am ba117e41: Merge "stack protector: use AT_RANDOM"
Nick Kralevich [Wed, 16 Jan 2013 21:34:46 +0000 (13:34 -0800)]
am 27ff1ae4: am de666485: am ba117e41: Merge "stack protector: use AT_RANDOM"

* commit '27ff1ae414915789b27d0a485ff6d856ae742aad':
  stack protector: use AT_RANDOM

11 years agoam 079e4356: am 30894bdf: am 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"
Nick Kralevich [Wed, 16 Jan 2013 21:34:45 +0000 (13:34 -0800)]
am 079e4356: am 30894bdf: am 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"

* commit '079e4356550030e8bacec86b8aa058ade2b7142c':
  Filter ANDROID_PROPERTY_WORKSPACE

11 years agoam b989c9ce: (-s ours) Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz...
Elliott Hughes [Wed, 16 Jan 2013 21:31:35 +0000 (13:31 -0800)]
am b989c9ce: (-s ours) Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

* commit 'b989c9ceda71f6f75112645b5c45af341275cbab':
  Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

11 years agoam de666485: am ba117e41: Merge "stack protector: use AT_RANDOM"
Nick Kralevich [Wed, 16 Jan 2013 21:31:24 +0000 (13:31 -0800)]
am de666485: am ba117e41: Merge "stack protector: use AT_RANDOM"

* commit 'de666485b8123ac35be94109336f7c56a7e9e3c2':
  stack protector: use AT_RANDOM

11 years agoam 30894bdf: am 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"
Nick Kralevich [Wed, 16 Jan 2013 21:31:23 +0000 (13:31 -0800)]
am 30894bdf: am 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"

* commit '30894bdfd6e4c74ab673d47391e62fb14fb51381':
  Filter ANDROID_PROPERTY_WORKSPACE

11 years agoRevert "stack protector: use AT_RANDOM"
Nick Kralevich [Wed, 16 Jan 2013 21:13:22 +0000 (13:13 -0800)]
Revert "stack protector: use AT_RANDOM"

The AT_RANDOM changes broke setuid / setgid executables
such as "ping". When the linker executes a setuid program,
it cleans the environment, removing any invalid environment
entries, and adding "NULL"s to the end of the environment
array for each removed variable. Later on, we try to determine
the location of the aux environment variable, and get tripped
up by these extra NULLs.

Reverting this patch will get setuid executables working again,
but getauxval() is still broken for setuid programs because of
this bug.

This reverts commit e3a49a8661125f24aec8a1453e54b3b78005e21e.

Change-Id: I05c58a896b1fe32cfb5d95d43b096045cda0aa4a

11 years agoam ba117e41: Merge "stack protector: use AT_RANDOM"
Nick Kralevich [Wed, 16 Jan 2013 19:31:00 +0000 (11:31 -0800)]
am ba117e41: Merge "stack protector: use AT_RANDOM"

* commit 'ba117e4172fe6f160bf5f4d58b37e12c08c34245':
  stack protector: use AT_RANDOM

11 years agoMerge "stack protector: use AT_RANDOM"
Nick Kralevich [Wed, 16 Jan 2013 19:23:25 +0000 (11:23 -0800)]
Merge "stack protector: use AT_RANDOM"

11 years agoam 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"
Nick Kralevich [Wed, 16 Jan 2013 19:14:01 +0000 (11:14 -0800)]
am 1b34228b: Merge "Filter ANDROID_PROPERTY_WORKSPACE"

* commit '1b34228bb289723c4ba0534eae57d0d085a3d0fa':
  Filter ANDROID_PROPERTY_WORKSPACE

11 years agoMerge "Filter ANDROID_PROPERTY_WORKSPACE"
Nick Kralevich [Wed, 16 Jan 2013 19:11:17 +0000 (11:11 -0800)]
Merge "Filter ANDROID_PROPERTY_WORKSPACE"

11 years agoRevert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions...
Elliott Hughes [Wed, 16 Jan 2013 18:34:33 +0000 (10:34 -0800)]
Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

This reverts commit f4b34b6c3942be273ad7298a40be0d312b183aab.

11 years agostack protector: use AT_RANDOM
Nick Kralevich [Mon, 14 Jan 2013 22:46:26 +0000 (14:46 -0800)]
stack protector: use AT_RANDOM

Populate the stack canaries from the kernel supplied
AT_RANDOM value, which doesn't involve any system calls.
This is slightly faster (6 fewer syscalls) and avoids
unnecessarily reading /dev/urandom, which depletes entropy.

Bug: 7959813

Change-Id: If2b43100a2a9929666df3de56b6139fed969e0f1

11 years agoam e05709b1: am e611fad0: am 14e1975e: Merge "Fix signalfd for MIPS."
Elliott Hughes [Wed, 16 Jan 2013 17:50:42 +0000 (09:50 -0800)]
am e05709b1: am e611fad0: am 14e1975e: Merge "Fix signalfd for MIPS."

* commit 'e05709b1df7dba98c37e83f84dcbd2ad8429bcfc':
  Fix signalfd for MIPS.

11 years agoam e611fad0: am 14e1975e: Merge "Fix signalfd for MIPS."
Elliott Hughes [Wed, 16 Jan 2013 17:48:04 +0000 (09:48 -0800)]
am e611fad0: am 14e1975e: Merge "Fix signalfd for MIPS."

* commit 'e611fad0d055f2d869981136e5e51b7a01d525fc':
  Fix signalfd for MIPS.

11 years agoam 14e1975e: Merge "Fix signalfd for MIPS."
Elliott Hughes [Wed, 16 Jan 2013 17:45:57 +0000 (09:45 -0800)]
am 14e1975e: Merge "Fix signalfd for MIPS."

* commit '14e1975e13c197180ed0481f305f83a362b16a24':
  Fix signalfd for MIPS.

11 years agoMerge "Fix signalfd for MIPS."
Elliott Hughes [Wed, 16 Jan 2013 17:42:51 +0000 (09:42 -0800)]
Merge "Fix signalfd for MIPS."

11 years agoFix signalfd for MIPS.
Elliott Hughes [Wed, 16 Jan 2013 17:34:16 +0000 (09:34 -0800)]
Fix signalfd for MIPS.

Also mark signalfd's sigset_t* argument as non-nullable.

Change-Id: I466e09cdf3fb92480744c496da92274a97f99dd1

11 years agoFilter ANDROID_PROPERTY_WORKSPACE
Nick Kralevich [Wed, 16 Jan 2013 00:02:03 +0000 (16:02 -0800)]
Filter ANDROID_PROPERTY_WORKSPACE

When executing a setuid executable, filter out ANDROID_PROPERTY_WORKSPACE
from the environment. Some applications implicitly trust the property
space and don't realize that it's passed by an environment variable
which can be modified by the caller.

Change-Id: I3e3a98941f0a1f249a2ff983ecbcfe1278aa9159

11 years agoam 04aa0fdd: (-s ours) am 42c5847d: (-s ours) am 791e26d9: (-s ours) Merge "Revert...
Elliott Hughes [Tue, 15 Jan 2013 21:40:39 +0000 (13:40 -0800)]
am 04aa0fdd: (-s ours) am 42c5847d: (-s ours) am 791e26d9: (-s ours) Merge "Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic."""

* commit '04aa0fdda60b6a492e572c2a79f21c732e8c33c8':
  Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

11 years agoam 42c5847d: (-s ours) am 791e26d9: (-s ours) Merge "Revert "DO NOT MERGE Revert...
Elliott Hughes [Tue, 15 Jan 2013 21:37:56 +0000 (13:37 -0800)]
am 42c5847d: (-s ours) am 791e26d9: (-s ours) Merge "Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic."""

* commit '42c5847d65d3e50a3efc4e32bb913dc66c9d0e4d':
  Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

11 years agoam 791e26d9: (-s ours) Merge "Revert "DO NOT MERGE Revert "Add the libcutils localtim...
Elliott Hughes [Tue, 15 Jan 2013 21:35:58 +0000 (13:35 -0800)]
am 791e26d9: (-s ours) Merge "Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic."""

* commit '791e26d9598a72376b8a16a5ccfb5d1ae0010965':
  Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

11 years agoMerge "Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t exten...
Elliott Hughes [Tue, 15 Jan 2013 21:21:51 +0000 (13:21 -0800)]
Merge "Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic."""

11 years agoam d29c9fc1: am b59e358b: Merge "fix strerror_r test"
Nick Kralevich [Tue, 15 Jan 2013 19:20:23 +0000 (11:20 -0800)]
am d29c9fc1: am b59e358b: Merge "fix strerror_r test"

* commit 'd29c9fc18860a41f59d390b4aab937b61dd63ea1':
  fix strerror_r test

11 years agoam b59e358b: Merge "fix strerror_r test"
Nick Kralevich [Tue, 15 Jan 2013 19:15:21 +0000 (11:15 -0800)]
am b59e358b: Merge "fix strerror_r test"

* commit 'b59e358bb902124cc7d648266a97f96beefc8142':
  fix strerror_r test

11 years agoRevert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions...
Elliott Hughes [Tue, 15 Jan 2013 19:12:18 +0000 (11:12 -0800)]
Revert "DO NOT MERGE Revert "Add the libcutils localtime_tz and mktime_t extensions to bionic.""

This reverts commit f4b34b6c3942be273ad7298a40be0d312b183aab.

The revert was only meant to apply to the jb-mr1 branch, but accidentally
leaked out into AOSP. This revert-revert gets AOSP master and internal
master back in sync.

11 years agoMerge "fix strerror_r test"
Nick Kralevich [Tue, 15 Jan 2013 18:56:06 +0000 (10:56 -0800)]
Merge "fix strerror_r test"

11 years agofix strerror_r test
Nick Kralevich [Tue, 15 Jan 2013 18:35:09 +0000 (10:35 -0800)]
fix strerror_r test

e6e60065ff093ff8c859ab146cf543531cb1967c modified strerror_r to
treat errno as signed. However, the change to the test code
modified the "strerror" test, not the "strerror_r" test.

Make the same change for the strerror_r code.

Change-Id: Ia236a53df5745935e229a4446a74da8bed0cfd7b

11 years agoam 4130af46: am b09d7d86: Merge "Add __aeabi_idiv to the dummy reference list."
Ben Cheng [Tue, 15 Jan 2013 02:01:35 +0000 (18:01 -0800)]
am 4130af46: am b09d7d86: Merge "Add __aeabi_idiv to the dummy reference list."

* commit '4130af46bf120ac82ed61453215c7a692d84c1dd':
  Add __aeabi_idiv to the dummy reference list.

11 years agoam b09d7d86: Merge "Add __aeabi_idiv to the dummy reference list."
Ben Cheng [Mon, 14 Jan 2013 23:44:01 +0000 (15:44 -0800)]
am b09d7d86: Merge "Add __aeabi_idiv to the dummy reference list."

* commit 'b09d7d86004ab75b774358454d8ee261987af96b':
  Add __aeabi_idiv to the dummy reference list.

11 years agoMerge "Add __aeabi_idiv to the dummy reference list."
Ben Cheng [Mon, 14 Jan 2013 23:35:03 +0000 (15:35 -0800)]
Merge "Add __aeabi_idiv to the dummy reference list."

11 years agoAdd __aeabi_idiv to the dummy reference list.
Ben Cheng [Mon, 14 Jan 2013 19:26:51 +0000 (11:26 -0800)]
Add __aeabi_idiv to the dummy reference list.

If the platform code is compiled with -mcpu=cortex-a15, then without this
change prebuilt libraries built against -march=armv7 cannot resolve the
dependency on __aeabi_idiv (provided by libgcc.a).

Bug: 7961327

cherry-picked from internal master.

Change-Id: I8fe59a98eb53d641518b882523c1d6a724fb7e55

11 years agoam 1519690c: am 29fe857e: Merge "headers: update auxvec.h from Linux kernel"
Nick Kralevich [Mon, 14 Jan 2013 22:38:36 +0000 (14:38 -0800)]
am 1519690c: am 29fe857e: Merge "headers: update auxvec.h from Linux kernel"

* commit '1519690cfb27af79627a8d39bf158a1feca953e3':
  headers: update auxvec.h from Linux kernel

11 years agoam 29fe857e: Merge "headers: update auxvec.h from Linux kernel"
Nick Kralevich [Mon, 14 Jan 2013 22:31:28 +0000 (14:31 -0800)]
am 29fe857e: Merge "headers: update auxvec.h from Linux kernel"

* commit '29fe857ec80e59347e28458a5396eb68d1cba0e4':
  headers: update auxvec.h from Linux kernel

11 years agoMerge "headers: update auxvec.h from Linux kernel"
Nick Kralevich [Mon, 14 Jan 2013 22:14:49 +0000 (14:14 -0800)]
Merge "headers: update auxvec.h from Linux kernel"

11 years agoMerge "Add __aeabi_idiv to the dummy reference list."
Ben Cheng [Mon, 14 Jan 2013 21:36:33 +0000 (13:36 -0800)]
Merge "Add __aeabi_idiv to the dummy reference list."

11 years agoheaders: update auxvec.h from Linux kernel
Nick Kralevich [Mon, 14 Jan 2013 19:28:26 +0000 (11:28 -0800)]
headers: update auxvec.h from Linux kernel

Pull a new version of auxvec.h from the upstream Linux
kernel at commit b719f43059903820c31edb30f4663a2818836e7f

These files were generated using the following commands:

cd bionic/libc/kernel
./tools/clean_header.py -u ../../../external/kernel-headers/original/uapi/linux/auxvec.h
./tools/clean_header.py -u ../../../external/kernel-headers/original/linux/auxvec.h
./tools/clean_header.py -u ../../../external/kernel-headers/original/asm-x86/auxvec.h

This change is needed to get AT_RANDOM defined.

Change-Id: Ib064649684b17af6ff4b1a31d501a05f78bb81d0

11 years agoAdd __aeabi_idiv to the dummy reference list.
Ben Cheng [Mon, 14 Jan 2013 19:26:51 +0000 (11:26 -0800)]
Add __aeabi_idiv to the dummy reference list.

If the platform code is compiled with -mcpu=cortex-a15, then without this
change prebuilt libraries built against -march=armv7 cannot resolve the
dependency on __aeabi_idiv (provided by libgcc.a).

Bug: 7961327

Change-Id: I0a05ce9c44e44d39b8ce1f0e319e2d37a010f3c7

11 years agoam 763d4bb3: am 68fa57f0: Merge "Name anonymous mmap mallocs."
Ian Rogers [Mon, 14 Jan 2013 19:22:56 +0000 (11:22 -0800)]
am 763d4bb3: am 68fa57f0: Merge "Name anonymous mmap mallocs."

* commit '763d4bb345b2e8882dd39d0656ee9f23ca1d0512':
  Name anonymous mmap mallocs.

11 years agoam 68fa57f0: Merge "Name anonymous mmap mallocs."
Ian Rogers [Mon, 14 Jan 2013 19:19:00 +0000 (11:19 -0800)]
am 68fa57f0: Merge "Name anonymous mmap mallocs."

* commit '68fa57f000285af20100c00db3d2bc143ad32294':
  Name anonymous mmap mallocs.

11 years agoMerge "Name anonymous mmap mallocs."
Ian Rogers [Mon, 14 Jan 2013 18:54:44 +0000 (10:54 -0800)]
Merge "Name anonymous mmap mallocs."

11 years agoam 13bd3716: am bb897fa9: Merge "libc_init_static: apply relro earlier."
Nick Kralevich [Mon, 14 Jan 2013 18:34:45 +0000 (10:34 -0800)]
am 13bd3716: am bb897fa9: Merge "libc_init_static: apply relro earlier."

* commit '13bd37160ee340ddcf7e1fb57251b124e0ec69c1':
  libc_init_static: apply relro earlier.

11 years agoam 375db86a: am 09d13c39: Merge "Fix my git mistake."
Elliott Hughes [Mon, 14 Jan 2013 18:34:44 +0000 (10:34 -0800)]
am 375db86a: am 09d13c39: Merge "Fix my git mistake."

* commit '375db86aeaedfe716b69a62f81a2484ee446d5e5':
  Fix my git mistake.

11 years agoam bb897fa9: Merge "libc_init_static: apply relro earlier."
Nick Kralevich [Mon, 14 Jan 2013 18:25:16 +0000 (10:25 -0800)]
am bb897fa9: Merge "libc_init_static: apply relro earlier."

* commit 'bb897fa9f79d25e4445fe3ab46b86657d6660c10':
  libc_init_static: apply relro earlier.

11 years agoMerge "libc_init_static: apply relro earlier."
Nick Kralevich [Mon, 14 Jan 2013 18:21:23 +0000 (10:21 -0800)]
Merge "libc_init_static: apply relro earlier."

11 years agoam 09d13c39: Merge "Fix my git mistake."
Elliott Hughes [Mon, 14 Jan 2013 18:08:56 +0000 (10:08 -0800)]
am 09d13c39: Merge "Fix my git mistake."

* commit '09d13c393e7b6a77cc33e5ef87e5c92ccd13fe63':
  Fix my git mistake.

11 years agoMerge "Fix my git mistake."
Elliott Hughes [Mon, 14 Jan 2013 17:57:45 +0000 (09:57 -0800)]
Merge "Fix my git mistake."

11 years agoFix my git mistake.
Elliott Hughes [Mon, 14 Jan 2013 17:56:21 +0000 (09:56 -0800)]
Fix my git mistake.

This was the formatting change that was supposed to be in
cf23905a4bcc7bfdd109be5b6d69ad06877aa217.

Change-Id: Ib79fa031b68f6f541f532507eb589afeaedb831f

11 years agoam bc3c7183: am 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"
Elliott Hughes [Mon, 14 Jan 2013 17:50:50 +0000 (09:50 -0800)]
am bc3c7183: am 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"

* commit 'bc3c718346d81c04451c35c2d8fb00c68b0a815d':
  [MIPS] Set DT_DEBUG dyntab entry if it is writable

11 years agoam 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"
Elliott Hughes [Mon, 14 Jan 2013 17:46:19 +0000 (09:46 -0800)]
am 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"

* commit '48c632a381b10996ec72a53cc95b009b06785d09':
  [MIPS] Set DT_DEBUG dyntab entry if it is writable

11 years agoMerge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"
Elliott Hughes [Mon, 14 Jan 2013 17:31:04 +0000 (09:31 -0800)]
Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"

11 years ago[MIPS] Set DT_DEBUG dyntab entry if it is writable
Chris Dearman [Fri, 11 Jan 2013 23:32:20 +0000 (15:32 -0800)]
[MIPS] Set DT_DEBUG dyntab entry if it is writable

This is primarily for MIPS exutables that do not have a
DT_MIPS_RLD_MAP entry.

Change-Id: I4c221d92debcfed961eeee2515123f3fb21ec8e6
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agolibc_init_static: apply relro earlier.
Nick Kralevich [Sat, 12 Jan 2013 02:38:26 +0000 (18:38 -0800)]
libc_init_static: apply relro earlier.

The dynamic linker applies relro before the preinit and init
arrays are executed, so we should be consistent for statically
linked executables.

Change-Id: Ia0a49d0e981a6e8791f74eed00280edf576ba139

11 years agoName anonymous mmap mallocs.
Ian Rogers [Fri, 11 Jan 2013 23:25:44 +0000 (15:25 -0800)]
Name anonymous mmap mallocs.

Change-Id: Icc53ba1eecb8445210623826d8e99a611d686f7f

11 years agoam fdd6dfa8: am 2c5153b0: libc: add getauxval()
Nick Kralevich [Sat, 12 Jan 2013 01:04:04 +0000 (17:04 -0800)]
am fdd6dfa8: am 2c5153b0: libc: add getauxval()

* commit 'fdd6dfa863ea73251b5d59990e239854c31ecee3':
  libc: add getauxval()

11 years agoam 2c5153b0: libc: add getauxval()
Nick Kralevich [Sat, 12 Jan 2013 00:59:57 +0000 (16:59 -0800)]
am 2c5153b0: libc: add getauxval()

* commit '2c5153b043b44e9935a334ae9b2d5a4bc5258b40':
  libc: add getauxval()

11 years agolibc: add getauxval()
Nick Kralevich [Fri, 11 Jan 2013 22:43:05 +0000 (14:43 -0800)]
libc: add getauxval()

Add support for getauxval().  This method allows a program an easy way
to retrieve information from the kernel auxiliary vector, and will
hopefully replace other clumsy ways of accessing this same information.

This particular function was also added to glibc in glibc 2.16.
See the following URLs for more details.

  * http://lwn.net/Articles/519085/
  * http://www.gnu.org/software/libc/manual/html_node/Auxiliary-Vector.html

This change is a prerequisite for bug 7959813.

Bug: http://code.google.com/p/android/issues/detail?id=38441
Change-Id: Iba19d899df334bddc6f4899077ece2fc87564ea8

11 years agodns cache per interface iteration 2
Mattias Falk [Tue, 23 Aug 2011 12:34:14 +0000 (14:34 +0200)]
dns cache per interface iteration 2

name server addresses are read from the dns
cache associated wih the interface on which
the request shall be done.

processes which has requested to issue dns request
using specific interface are now proxied to netd.

added methods to attach/detach a process to a specific
dns cache/interface.

added getaddrinfoforinface method which takes an
interface as an argument.

Change-Id: I851ec8ab8ce3112626ad2a729078b91d013f32fd
bug:4815099
bug:5465296

11 years agoam d0f81466: am 69c89942: Merge "Add stack canaries / strcpy tests."
Nick Kralevich [Fri, 11 Jan 2013 19:31:07 +0000 (11:31 -0800)]
am d0f81466: am 69c89942: Merge "Add stack canaries / strcpy tests."

* commit 'd0f81466e4e8e4179054a484cf6145efedfd7cb5':
  Add stack canaries / strcpy tests.

11 years agoam 69c89942: Merge "Add stack canaries / strcpy tests."
Nick Kralevich [Fri, 11 Jan 2013 19:26:54 +0000 (11:26 -0800)]
am 69c89942: Merge "Add stack canaries / strcpy tests."

* commit '69c89942db2ed472c71aa84903d0259cc84aa074':
  Add stack canaries / strcpy tests.

11 years agoMerge "Add stack canaries / strcpy tests."
Nick Kralevich [Fri, 11 Jan 2013 19:03:40 +0000 (11:03 -0800)]
Merge "Add stack canaries / strcpy tests."

11 years agoam 801aeefe: am a12c5445: Fix unused warnings in pthread.c
Wink Saville [Fri, 11 Jan 2013 18:54:50 +0000 (10:54 -0800)]
am 801aeefe: am a12c5445: Fix unused warnings in pthread.c

* commit '801aeefe2d77a957172c3994f1c20cd0ac8d9bd8':
  Fix unused warnings in pthread.c

11 years agoam 0f9be1ea: am bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."
Elliott Hughes [Fri, 11 Jan 2013 18:54:43 +0000 (10:54 -0800)]
am 0f9be1ea: am bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."

* commit '0f9be1eaee5a9367fb2f8c6ed86ed2fc1faa70b9':
  glibc 2.15 treats errno as signed in strerror(3).

11 years agoam 34c7a3c2: am 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack,...
Elliott Hughes [Fri, 11 Jan 2013 18:54:25 +0000 (10:54 -0800)]
am 34c7a3c2: am 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack, and add more tests."

* commit '34c7a3c2b0ec50a749e25bd786e670025a6f1c5b':
  Only have one copy of the kernel_sigset_t hack, and add more tests.

11 years agoam 4ff6fa97: am 2bbb8fac: Merge "Add signalfd call to bionic"
Elliott Hughes [Fri, 11 Jan 2013 18:54:02 +0000 (10:54 -0800)]
am 4ff6fa97: am 2bbb8fac: Merge "Add signalfd call to bionic"

* commit '4ff6fa97e7cf247e17600cf0d64911c1579df841':
  Add signalfd call to bionic

11 years agoAdd stack canaries / strcpy tests.
Nick Kralevich [Fri, 11 Jan 2013 01:12:29 +0000 (17:12 -0800)]
Add stack canaries / strcpy tests.

Add a test to ensure that stack canaries are working
correctly. Since stack canaries aren't normally generated
on non-string functions, we have to enable stack-protector-all.

Add a test to ensure that an out of bounds strcpy generates
a runtime failure.

Change-Id: Id0d3e59fc4b9602da019e4d35c5c653e1a57fae4

11 years agoam a12c5445: Fix unused warnings in pthread.c
Wink Saville [Fri, 11 Jan 2013 18:12:12 +0000 (10:12 -0800)]
am a12c5445: Fix unused warnings in pthread.c

* commit 'a12c54454f3a6132988b68873903f6e9eed7f384':
  Fix unused warnings in pthread.c

11 years agoFix unused warnings in pthread.c
Wink Saville [Tue, 8 Jan 2013 23:15:45 +0000 (15:15 -0800)]
Fix unused warnings in pthread.c

Change-Id: I0287aadb825fd8cda29dc976bce55d75a1279fc5

11 years agoam bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."
Elliott Hughes [Fri, 11 Jan 2013 00:27:26 +0000 (16:27 -0800)]
am bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."

* commit 'bfde0b6fd9e5de545746ab963d3a05ed2a8014f6':
  glibc 2.15 treats errno as signed in strerror(3).

11 years agoMerge "glibc 2.15 treats errno as signed in strerror(3)."
Elliott Hughes [Fri, 11 Jan 2013 00:24:36 +0000 (16:24 -0800)]
Merge "glibc 2.15 treats errno as signed in strerror(3)."

11 years agoglibc 2.15 treats errno as signed in strerror(3).
Elliott Hughes [Fri, 11 Jan 2013 00:01:59 +0000 (16:01 -0800)]
glibc 2.15 treats errno as signed in strerror(3).

And the only reason I hadn't done that in bionic is because I wanted to behave
the same as glibc.

Change-Id: I2cf1bf0aac82a748cd6305a2cabbac0790058570

11 years agoam 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack, and add more...
Elliott Hughes [Thu, 10 Jan 2013 23:28:46 +0000 (15:28 -0800)]
am 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack, and add more tests."

* commit '0d3700d957debe841c385f66a8026ca8b3755815':
  Only have one copy of the kernel_sigset_t hack, and add more tests.

11 years agoMerge "Only have one copy of the kernel_sigset_t hack, and add more tests."
Elliott Hughes [Thu, 10 Jan 2013 23:12:46 +0000 (15:12 -0800)]
Merge "Only have one copy of the kernel_sigset_t hack, and add more tests."

11 years agoOnly have one copy of the kernel_sigset_t hack, and add more tests.
Elliott Hughes [Thu, 10 Jan 2013 22:42:14 +0000 (14:42 -0800)]
Only have one copy of the kernel_sigset_t hack, and add more tests.

Change-Id: I377522fcba6fb4b5fd2754ab15b091014bd7c16f

11 years agoMerge "Cache negative DNS results."
Robert Greenwalt [Thu, 10 Jan 2013 22:30:36 +0000 (14:30 -0800)]
Merge "Cache negative DNS results."

11 years agoam 2bbb8fac: Merge "Add signalfd call to bionic"
Elliott Hughes [Thu, 10 Jan 2013 21:30:16 +0000 (13:30 -0800)]
am 2bbb8fac: Merge "Add signalfd call to bionic"

* commit '2bbb8fac61e482dd96386620cc6f7f193e9c6840':
  Add signalfd call to bionic

11 years agoMerge "Add signalfd call to bionic"
Elliott Hughes [Thu, 10 Jan 2013 21:17:26 +0000 (13:17 -0800)]
Merge "Add signalfd call to bionic"

11 years agoAdd signalfd call to bionic
Rom Lemarchand [Wed, 9 Jan 2013 23:46:06 +0000 (15:46 -0800)]
Add signalfd call to bionic

Add signalfd() call to bionic.

Adding the signalfd call was done in 3 steps:
- add signalfd4 system call (function name and syscall
  number) to libc/SYSCALLS.TXT
- generate all necessary headers by calling
  libc/tools/gensyscalls.py. This patch is adding
  the generated files since the build system
  does not call gensyscalls.py.
- create the signalfd wrapper in signalfd.cpp and add
  the function prototype to sys/signalfd.h

(cherry-pick of 0c11611c11f4dc1b6d43587b72c3ccbe8c51a51c, modified to
work with older versions of GCC still in use on some branches.)

Change-Id: I4c6c3f12199559af8be63f93a5336851b7e63355

11 years agoRevert "Add signalfd call to bionic"
Elliott Hughes [Thu, 10 Jan 2013 18:47:58 +0000 (10:47 -0800)]
Revert "Add signalfd call to bionic"

This reverts commit 0c11611c11f4dc1b6d43587b72c3ccbe8c51a51c

Change-Id: I1a2beae7ed66ec995fdf6c96c53c35598ac6cde0

11 years agoAdd signalfd call to bionic
Rom Lemarchand [Wed, 9 Jan 2013 23:46:06 +0000 (15:46 -0800)]
Add signalfd call to bionic

Add signalfd() call to bionic.

Adding the signalfd call was done in 3 steps:
- add signalfd4 system call (function name and syscall
  number) to libc/SYSCALLS.TXT
- generate all necessary headers by calling
  libc/tools/gensyscalls.py. This patch is adding
  the generated files since the build system
  does not call gensyscalls.py.
- create the signalfd wrapper in signalfd.cpp and add
  the function prototype to sys/signalfd.h

Change-Id: I7ee1d3e60d5d3e1c73d9820e07d23b9ce6e1a5ab

11 years agoCache negative DNS results.
Robert Greenwalt [Mon, 7 Jan 2013 20:10:06 +0000 (12:10 -0800)]
Cache negative DNS results.

Find the TTL for the negative results using the minimum of
the SOA records TTL or the MINIMUM-TTL field (RFC-2308).

bug:5926539
Change-Id: I6d39c9fb558afcb7a4a5bc014d97dab4a85c0d4f