aboutsummaryrefslogtreecommitdiff
path: root/changes/bug31570
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-02 14:49:53 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-02 14:49:53 -0400
commit52342327c7e566a25bf69dc6df651de45959e6d6 (patch)
tree766d6048dc51e73966102b2f00baa273531f5e12 /changes/bug31570
parente3a458e441fe9f823d564ca66753e3b76c7c0943 (diff)
downloadtor-52342327c7e566a25bf69dc6df651de45959e6d6.tar.gz
tor-52342327c7e566a25bf69dc6df651de45959e6d6.zip
madvise: tolerate EINVAL and ENOSYS
These errors can occur if we are built on a system with support for madvise(MADV_NOFORK) but then we are run on a system whose kernel does not support that flag. If the error is something that we don't tolerate at all, we now log it before crashing. Fixes bug 31570. I am calling this a bugfix on 0.4.1.1-alpha, where we actually started using the map_anon code.
Diffstat (limited to 'changes/bug31570')
-rw-r--r--changes/bug315705
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug31570 b/changes/bug31570
new file mode 100644
index 0000000000..f70b577b4c
--- /dev/null
+++ b/changes/bug31570
@@ -0,0 +1,5 @@
+ o Major bugfixes (crash, android):
+ - Tolerate systems (including some Android installations) where madvise
+ and MADV_DONTDUMP are available at build-time, but not at run time.
+ Previously, these systems would notice a failed syscall and abort.
+ Fixes bug 31570; bugfix on 0.4.1.1-alpha.