<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/debuggerd, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>tombstoned: make missing O_TMPFILE workaround actually work around.</title>
<updated>2018-05-04T00:55:16+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-05-03T23:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=e96dc1a0611c8d08b4dedfc211d86596ba5d2416'/>
<id>e96dc1a0611c8d08b4dedfc211d86596ba5d2416</id>
<content type='text'>
We can't actually link an unlinked file back onto disk if it wasn't
opened with O_TMPFILE. Switch to using a temporary filename instead.

Bug: http://b/77729983
Test: agampe
Change-Id: I1970497114f0056065a1ba65f6358f08b51ec551
(cherry picked from commit f5974aedc40e4a61be3ed621e32af0111e4341e8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't actually link an unlinked file back onto disk if it wasn't
opened with O_TMPFILE. Switch to using a temporary filename instead.

Bug: http://b/77729983
Test: agampe
Change-Id: I1970497114f0056065a1ba65f6358f08b51ec551
(cherry picked from commit f5974aedc40e4a61be3ed621e32af0111e4341e8)
</pre>
</div>
</content>
</entry>
<entry>
<title>tombstoned: don't bail out if we fail to unlink a file that isn't there.</title>
<updated>2018-05-03T22:44:21+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-05-03T21:31:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=5a9929a39205da382f5fc9ea9da72f01754eaaf9'/>
<id>5a9929a39205da382f5fc9ea9da72f01754eaaf9</id>
<content type='text'>
Bug: http://b/77729983
Test: crasher with no tombstones
Change-Id: I20e0537a347dd1f83877150ab13f53441dd65d95
(cherry picked from commit 28f8cf0f975500d754e259e19dcf9762f0969060)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/77729983
Test: crasher with no tombstones
Change-Id: I20e0537a347dd1f83877150ab13f53441dd65d95
(cherry picked from commit 28f8cf0f975500d754e259e19dcf9762f0969060)
</pre>
</div>
</content>
</entry>
<entry>
<title>tombstoned: don't create tombstones for failed dumps.</title>
<updated>2018-05-02T21:43:50+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-19T01:11:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=598061ff6da61fe6c86abc78af9fe088a29d6fea'/>
<id>598061ff6da61fe6c86abc78af9fe088a29d6fea</id>
<content type='text'>
Instead of creating tombstone FDs in place and passing them out to
crash_dump directly, create them as O_TMPFILEs and link them into place
when crash_dump reports success, to avoid creating empty tombstones
in cases like an aborting thread racing with another thread that
manages to cleanly exit_group before the dump finishes.

Bug: http://b/77729983
Test: debuggerd_test
Test: adb shell 'for x in `seq 0 50`; do crasher; done'
Change-Id: I31ce4fd4a524abf8bde57152450209483d9d0ba9
(cherry picked from commit 48383c806af629bb755ce120ba30e8cb70eb5f23)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of creating tombstone FDs in place and passing them out to
crash_dump directly, create them as O_TMPFILEs and link them into place
when crash_dump reports success, to avoid creating empty tombstones
in cases like an aborting thread racing with another thread that
manages to cleanly exit_group before the dump finishes.

Bug: http://b/77729983
Test: debuggerd_test
Test: adb shell 'for x in `seq 0 50`; do crasher; done'
Change-Id: I31ce4fd4a524abf8bde57152450209483d9d0ba9
(cherry picked from commit 48383c806af629bb755ce120ba30e8cb70eb5f23)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge changes from topic "unwindstack_clone" into pi-dev</title>
<updated>2018-05-02T00:03:50+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-05-02T00:03:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=3bac1ffdd0e638fd9707a50ae05686545c419ced'/>
<id>3bac1ffdd0e638fd9707a50ae05686545c419ced</id>
<content type='text'>
* changes:
  libdebuggerd: clone registers before we Unwind with them.
  libunwindstack: add Regs::Clone.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* changes:
  libdebuggerd: clone registers before we Unwind with them.
  libunwindstack: add Regs::Clone.
</pre>
</div>
</content>
</entry>
<entry>
<title>crash_dump: defuse our signal handlers earlier.</title>
<updated>2018-04-30T21:52:12+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-27T20:31:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=f7023c9844b399d6b1bd6cb960d2d49187cc3607'/>
<id>f7023c9844b399d6b1bd6cb960d2d49187cc3607</id>
<content type='text'>
We have a LOG(FATAL) that can potentially happen before we turn off
SIGABRT. Move the signal handler defusing to the very start of main.

Bug: http://b/77920633
Test: treehugger
Change-Id: I7a2f2a0f2bed16e54467388044eca254102aa6a0
(cherry picked from commit 38ac45df1738496d5581b89845e48daeab7f0219)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have a LOG(FATAL) that can potentially happen before we turn off
SIGABRT. Move the signal handler defusing to the very start of main.

Bug: http://b/77920633
Test: treehugger
Change-Id: I7a2f2a0f2bed16e54467388044eca254102aa6a0
(cherry picked from commit 38ac45df1738496d5581b89845e48daeab7f0219)
</pre>
</div>
</content>
</entry>
<entry>
<title>libdebuggerd: clone registers before we Unwind with them.</title>
<updated>2018-04-23T19:11:48+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-20T19:04:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=86ea0741846cdab66d1bdfb5a46aaef094f5be3a'/>
<id>86ea0741846cdab66d1bdfb5a46aaef094f5be3a</id>
<content type='text'>
Bug: http://b/77296294
Test: manual inspection of tombstone generated by crasher
Change-Id: I4b017701d7d2041db4aefbbb90977e99b844c328
(cherry picked from commit 5d1c14f41bac357c730aa47d705c1f1da7625280)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/77296294
Test: manual inspection of tombstone generated by crasher
Change-Id: I4b017701d7d2041db4aefbbb90977e99b844c328
(cherry picked from commit 5d1c14f41bac357c730aa47d705c1f1da7625280)
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark crash_dump.policy as not supported on mips</title>
<updated>2018-02-27T23:35:11+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2018-02-27T23:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=e2b6cd28f2dac945a8d4dbe8f7b7a4d7ad671be7'/>
<id>e2b6cd28f2dac945a8d4dbe8f7b7a4d7ad671be7</id>
<content type='text'>
The recent change to detect missing source files broke reading makefiles
for mips, since this didn't specify a source file.

Bug: 73904572
Test: lunch aosp_mips-eng; m nothing
Test: lunch aosp_arm-eng; m crash_dump.policy
Test: lunch aosp_arm64-eng; m crash_dump.policy
Test: lunch aosp_x86-eng; m crash_dump.policy
Test: lunch aosp_x86_64-eng; m crash_dump.policy
Change-Id: I28864b5af59267f1ab83084128f2c59b04039374
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The recent change to detect missing source files broke reading makefiles
for mips, since this didn't specify a source file.

Bug: 73904572
Test: lunch aosp_mips-eng; m nothing
Test: lunch aosp_arm-eng; m crash_dump.policy
Test: lunch aosp_arm64-eng; m crash_dump.policy
Test: lunch aosp_x86-eng; m crash_dump.policy
Test: lunch aosp_x86_64-eng; m crash_dump.policy
Change-Id: I28864b5af59267f1ab83084128f2c59b04039374
</pre>
</div>
</content>
</entry>
<entry>
<title>debuggerd_fallback: don't recursively abort.</title>
<updated>2018-02-23T00:31:38+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-02-22T19:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=70adac6a8a8469b6a4c248417bba33fa8381b9ad'/>
<id>70adac6a8a8469b6a4c248417bba33fa8381b9ad</id>
<content type='text'>
Calls to abort() will always result in our signal handler being called,
because abort will manually unblock SIGABRT before raising it. This
can lead to deadlock when handling address space exhaustion in the
fallback handler. To fix this, switch our mutex to a recursive mutex,
and manually keep track of our lock count.

Bug: http://b/72929749
Test: debuggerd_test --gtest_filter="CrasherTest.seccomp_crash_oom"
Change-Id: I609f263ce93550350b17757189326b627129d4a7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calls to abort() will always result in our signal handler being called,
because abort will manually unblock SIGABRT before raising it. This
can lead to deadlock when handling address space exhaustion in the
fallback handler. To fix this, switch our mutex to a recursive mutex,
and manually keep track of our lock count.

Bug: http://b/72929749
Test: debuggerd_test --gtest_filter="CrasherTest.seccomp_crash_oom"
Change-Id: I609f263ce93550350b17757189326b627129d4a7
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "bpfmt."</title>
<updated>2018-02-20T02:02:59+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2018-02-20T02:02:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=0609e8d231822c6be9ab33eba3d6514525ce3ae6'/>
<id>0609e8d231822c6be9ab33eba3d6514525ce3ae6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>debuggerd seccomp: explain why we define PROT_READ/WRITE.</title>
<updated>2018-02-19T07:50:19+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-02-19T07:50:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=edd28f6edee6577b0c4b0e3d39a08108a326c203'/>
<id>edd28f6edee6577b0c4b0e3d39a08108a326c203</id>
<content type='text'>
Add a comment explaining why we define PROT_READ/PROT_WRITE, even
though a current libminijail supports both cosntants.

Bug: http://b/73273658
Test: treehugger
Change-Id: I51c1be1b1b569e94dbc9045a90bc28221b7dc9c7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a comment explaining why we define PROT_READ/PROT_WRITE, even
though a current libminijail supports both cosntants.

Bug: http://b/73273658
Test: treehugger
Change-Id: I51c1be1b1b569e94dbc9045a90bc28221b7dc9c7
</pre>
</div>
</content>
</entry>
</feed>
