You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
|
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
|
9
|
10
|
11
|
12
(1) |
13
|
14
|
15
(1) |
|
16
(1) |
17
|
18
(6) |
19
(7) |
20
(3) |
21
|
22
(4) |
|
23
(3) |
24
(3) |
25
(1) |
26
|
27
|
28
(3) |
29
|
|
30
|
31
(1) |
|
|
|
|
|
|
From: Paul F. <pa...@so...> - 2022-10-16 17:42:33
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=b31ff3321e57b774b48c6b547045cb8b089d152a commit b31ff3321e57b774b48c6b547045cb8b089d152a Author: Paul Floyd <pj...@wa...> Date: Sun Oct 16 18:58:52 2022 +0200 Improve FreeBSD handling of W^X setting. FreeBSD has a sysctl that prevents mmapping regions that are both Write and Exec. This setting prevents Valgrind from workig correctly. This change uses ELF tags to turn off W^X control, and also removes a sysctl check for the same flag. Patch contributor: https://github.com/semihalf-Duleba-Kornel/valgrind/commit/0a3a794143f7c451a5a00e598854ae8d813f8f17 Diff: --- coregrind/m_debuginfo/readelf.c | 2 +- coregrind/m_main.c | 85 ++++++++++++++++++++--------------------- include/vki/vki-freebsd.h | 10 ++--- 3 files changed, 47 insertions(+), 50 deletions(-) diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 25d237b7de..6cf08f666f 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -1171,7 +1171,7 @@ void read_and_set_osrel(DiImage* img) DiOffT name_ioff = note_ioff + sizeof(ElfXX_Nhdr); //DiOffT desc_ioff = name_ioff + ((note[0].n_namesz + 3) & ~3); if (ML_(img_strcmp_c)(img, name_ioff, "FreeBSD") == 0 - && note[0].n_type == NT_FREEBSD_ABI_TAG) { + && note[0].n_type == VKI_NT_FREEBSD_ABI_TAG) { u_int32_t osrel = note[1].n_type; int name[4]; diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 25882e7cea..200da407fb 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1373,50 +1373,6 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) VG_(exit)(1); } - - //-------------------------------------------------------------- - // FreeBSD also check for sysctl kern.elf64.allow_wx=0 - // This is a sysctl that prevents applications from mmap'ing - // segments that are writeable and executable - //-------------------------------------------------------------- -#if defined(VGP_amd64_freebsd) - error = VG_(sysctlbyname)("kern.elf64.allow_wx", &val, &len, 0, 0); - if (error != -1 && val != 1) { - VG_(debugLog)(0, "main", "Valgrind: FATAL:\n"); - VG_(debugLog)(0, "main", "sysctl kern.elf64.allow_wx sysctl is 0.\n"); - VG_(debugLog)(0, "main", " Set this sysctl with\n"); - VG_(debugLog)(0, "main", " 'sysctl kern.elf64.allow_wx sysctl=1'.\n"); - // the below code doesn't work as I expected - // the proccontrol command doesn't cause sysctlbyname to get a modified value - // which means that valgrind will still detect allow_wx == 0 and exit here -//#if (FREEBSD_VERS >= FREEBSD_13_1) -// VG_(debugLog)(0, "main", " Or, alternatively, run valgrind with\n"); -// VG_(debugLog)(0, "main", " 'proccontrol -m wxmap -s enable valgrind [options] prog-and-args'\n"); -//#endif - VG_(debugLog)(0, "main", " Cannot continue.\n"); - - VG_(exit)(1); - } - -#endif - - /* also 323bit version */ -#if defined(VGP_x86_freebsd) - error = VG_(sysctlbyname)("kern.elf32.allow_wx", &val, &len, 0, 0); - if (error != -1 && val != 1) { - VG_(debugLog)(0, "main", "Valgrind: FATAL:\n"); - VG_(debugLog)(0, "main", "sysctl kern.elf32.allow_wx sysctl is 0.\n"); - VG_(debugLog)(0, "main", " Set this sysctl with\n"); - VG_(debugLog)(0, "main", " 'sysctl kern.elf32.allow_wx sysctl=1'.\n"); -//#if (FREEBSD_VERS >= FREEBSD_13_1) -// VG_(debugLog)(0, "main", " Or, alternatively, run valgrind with\n"); -// VG_(debugLog)(0, "main", " 'proccontrol -m wxmap -s enable valgrind [options] prog-and-args'\n"); -//#endif - VG_(debugLog)(0, "main", " Cannot continue.\n"); - - VG_(exit)(1); - } -#endif #endif @@ -3351,6 +3307,47 @@ void _start_in_C_solaris ( UWord* pArgc ) /*====================================================================*/ #elif defined(VGO_freebsd) +/* + * Could probably extract __FreeBSD_version at configure time + */ +/* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ +#include <sys/param.h> /* __FreeBSD_version */ +/* --- !!! --- EXTERNAL HEADERS end --- !!! --- */ + +/* + * We need to add two elf notes in order for image activator to parse + * additional binary properites. + * First note declares the ABI, second is the feature note. + * This is primarly used to turn off W^X policy for all valgrind tools, + * as they don't work with it enabled. + */ + +/* Based on FreeBSD sources: lib/csu/common/crtbrand.S */ +asm("\n" + ".section .note.tag,\"aG\",%note,.freebsd.noteG,comdat\n" + ".p2align 2\n" + ".4byte 2f-1f\n" + ".4byte 4f-3f\n" + ".4byte "VG_STRINGIFY(VKI_NT_FREEBSD_ABI_TAG)"\n" +"1: .asciz \"FreeBSD\"\n" +"2: .p2align 2\n" +"3: .4byte "VG_STRINGIFY(__FreeBSD_version)"\n" +"4: .previous\n" +); + +/* Based on FreeBSD sources: lib/csu/common/feature_note.S */ +asm("\n" + ".section .note.tag,\"a\",%note\n" + ".p2align 2\n" + ".4byte 2f-1f\n" + ".4byte 4f-3f\n" + ".4byte "VG_STRINGIFY(VKI_NT_FREEBSD_FEATURE_CTL)"\n" +"1: .asciz \"FreeBSD\"\n" +"2: .p2align 2\n" +"3: .4byte "VG_STRINGIFY(VKI_NT_FREEBSD_FCTL_WXNEEDED)"\n" +"4: .previous\n" +); + #if defined(VGP_x86_freebsd) asm("\n" ".text\n" diff --git a/include/vki/vki-freebsd.h b/include/vki/vki-freebsd.h index c2234664d6..c7481f31c7 100644 --- a/include/vki/vki-freebsd.h +++ b/include/vki/vki-freebsd.h @@ -200,7 +200,7 @@ typedef __vki_fd_set vki_fd_set; #endif //---------------------------------------------------------------------- -// linux and freebsd version hacks +// freebsd version hacks //---------------------------------------------------------------------- #ifndef ELFMAG #define ELFMAG "\177ELF" /* magic string */ @@ -214,10 +214,6 @@ typedef __vki_fd_set vki_fd_set; #define ELF_NOTE_GNU "GNU" #endif -// This is not defined on FreeBSD 10.4 -#if !defined(NT_FREEBSD_ABI_TAG) -#define NT_FREEBSD_ABI_TAG 1 -#endif #define VKI_ELF_NOTE_ROUNDSIZE 4 @@ -2485,6 +2481,10 @@ struct vki_ps_strings { #define VKI_AT_NULL 0 #define VKI_AT_PS_STRINGS 32 +#define VKI_NT_FREEBSD_ABI_TAG 1 +#define VKI_NT_FREEBSD_FEATURE_CTL 4 +#define VKI_NT_FREEBSD_FCTL_WXNEEDED 0x00000008 + // See syswrap-freebsd.c PRE/POST(sys_ioctl) #if 0 |