From 797721617d11cfab32dbde9eea68c7a7353c8efe Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 12 Jun 2013 10:46:26 +0200 Subject: crypto: Supress some false positives from valgrind --- erts/emulator/valgrind/suppress.standard | 2 ++ 1 file changed, 2 insertions(+) (limited to 'erts/emulator/valgrind/suppress.standard') diff --git a/erts/emulator/valgrind/suppress.standard b/erts/emulator/valgrind/suppress.standard index beecf1a7b5..a4da31a61d 100644 --- a/erts/emulator/valgrind/suppress.standard +++ b/erts/emulator/valgrind/suppress.standard @@ -174,6 +174,7 @@ obj:*/crypto.valgrind.* { Crypto internal... Memcheck:Cond +... obj:*/libcrypto.* } { @@ -194,6 +195,7 @@ obj:*/crypto.valgrind.* { Crypto internal... Memcheck:Value8 +... obj:*/libcrypto.* } { -- cgit v1.2.3 From cc4031b2f139bb980a948455ec60dfaca7f49d24 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 13 Aug 2014 16:35:41 +0200 Subject: crypto: Add valgrind suppression for RC4 Invalid read of size 8 (Address 0x61f7730 is 144 bytes inside a block of size 151 alloc'd) Suspected: rc4_encrypt_with_state:2321 (-> 0x11B168F5) [crypto.c] Stackdump: RC4:??? (-> 0x11DAA060) [/lib/libcrypto.so.0.9.8] rc4_encrypt_with_state:2321 (-> 0x11B168F5) [crypto.c] process_main:3524 (-> 0x58D975) [beam_emu.c] sched_thread_func:7672 (-> 0x4C131E) [erl_process.c] thr_wrapper:106 (-> 0x656F68) [ethread.c] start_thread:300 (-> 0x57019C9) [pthread_create.c] --- erts/emulator/valgrind/suppress.standard | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'erts/emulator/valgrind/suppress.standard') diff --git a/erts/emulator/valgrind/suppress.standard b/erts/emulator/valgrind/suppress.standard index a4da31a61d..b3c77119fb 100644 --- a/erts/emulator/valgrind/suppress.standard +++ b/erts/emulator/valgrind/suppress.standard @@ -260,6 +260,11 @@ obj:*/ssleay.* fun:AES_cbc_encrypt ... } +{ + crypto RC4 can do harmless word aligned read past end of input + Memcheck:Addr8 + fun:RC4 +} { Prebuilt constant terms in os_info_init (PossiblyLost) -- cgit v1.2.3 From da14897a6363a5c39180e8e3edf0c1c8336cfeb5 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Mon, 30 Mar 2015 17:02:05 +0200 Subject: erts: Suppress valgrind for bif_SUITE:erlang_halt which does a deliberate deref of null pointer which is caught by a SEGV signal handler to resume crash dumping. --- erts/emulator/valgrind/suppress.standard | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'erts/emulator/valgrind/suppress.standard') diff --git a/erts/emulator/valgrind/suppress.standard b/erts/emulator/valgrind/suppress.standard index b3c77119fb..a1f3f82364 100644 --- a/erts/emulator/valgrind/suppress.standard +++ b/erts/emulator/valgrind/suppress.standard @@ -330,3 +330,15 @@ fun:async_main ... } +{ +Deliberate invalid read by test case bif_SUITE:erlang_halt +Memcheck:Addr4 +... +fun:erts_print_scheduler_info +... +fun:erl_exit +fun:broken_halt_test +fun:erts_debug_set_internal_state_2 +fun:process_main +} + -- cgit v1.2.3 From 56090db3ea417157a749bdd810fc61d117493f1f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 23 Feb 2016 19:45:01 +0100 Subject: erts: Change erl_exit into erts_exit This is mostly a pure refactoring. Except for the buggy cases when calling erlang:halt() with a positive integer in the range -(INT_MIN+2) to -INT_MIN that got confused with ERTS_ABORT_EXIT, ERTS_DUMP_EXIT and ERTS_INTR_EXIT. Outcome OLD erl_exit(n, ) NEW erts_exit(n, ) ------- ------------------- ------------------------------------------- exit(Status) n = -Status <= 0 n = Status >= 0 crashdump+abort n > 0, ignore n n = ERTS_ERROR_EXIT < 0 The outcome of the old ERTS_ABORT_EXIT, ERTS_INTR_EXIT and ERTS_DUMP_EXIT are the same as before (even though their values have changed). --- erts/emulator/valgrind/suppress.standard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/emulator/valgrind/suppress.standard') diff --git a/erts/emulator/valgrind/suppress.standard b/erts/emulator/valgrind/suppress.standard index a1f3f82364..bb07c92fc1 100644 --- a/erts/emulator/valgrind/suppress.standard +++ b/erts/emulator/valgrind/suppress.standard @@ -336,7 +336,7 @@ Memcheck:Addr4 ... fun:erts_print_scheduler_info ... -fun:erl_exit +fun:erts_exit fun:broken_halt_test fun:erts_debug_set_internal_state_2 fun:process_main -- cgit v1.2.3