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
(1) |
2
(3) |
|
3
(6) |
4
(2) |
5
(2) |
6
(5) |
7
(4) |
8
(3) |
9
(3) |
|
10
(4) |
11
(7) |
12
(3) |
13
(4) |
14
|
15
|
16
|
|
17
|
18
|
19
(6) |
20
|
21
|
22
|
23
|
|
24
|
25
|
26
|
27
(2) |
28
|
29
|
30
|
|
From: Paul F. <pa...@so...> - 2022-04-03 20:29:41
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=4dd849e4eca28467c92eb523a8d001a8d06ee74e commit 4dd849e4eca28467c92eb523a8d001a8d06ee74e Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 22:28:26 2022 +0200 Second go at memcheck/tests/freebsd/relapathat Missed adding the argument to the C file Needs more filtering Diff: --- memcheck/tests/freebsd/filter_realpathat | 4 +++- memcheck/tests/freebsd/realpathat.c | 2 +- memcheck/tests/freebsd/realpathat.stderr.exp | 16 ++++++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/memcheck/tests/freebsd/filter_realpathat b/memcheck/tests/freebsd/filter_realpathat index 82b21841dd..599a35cb38 100755 --- a/memcheck/tests/freebsd/filter_realpathat +++ b/memcheck/tests/freebsd/filter_realpathat @@ -1,6 +1,8 @@ #! /bin/sh -gsed 's/Invalid write of size 8/Invalid write of size .../' | +gsed 's/Invalid write of size 8/Invalid write of size 4/' | +gsed 's/is [4-9][0-9] bytes inside a block of size 100 free/is ... bytes inside a block of size 100 free/' | + ../filter_stderr "$@" diff --git a/memcheck/tests/freebsd/realpathat.c b/memcheck/tests/freebsd/realpathat.c index d7a84240b0..05a20cb924 100644 --- a/memcheck/tests/freebsd/realpathat.c +++ b/memcheck/tests/freebsd/realpathat.c @@ -19,7 +19,7 @@ int main(void) *bad_int1 = AT_FDCWD; *bad_int2 = 0; *bad_sz = PATH_MAX; - syscall(SYS___realpathat, *bad_int1, self_path, buf, *bad_int2); + syscall(SYS___realpathat, *bad_int1, self_path, buf, *bad_sz, *bad_int2); free(bad_int1); free(bad_int2); diff --git a/memcheck/tests/freebsd/realpathat.stderr.exp b/memcheck/tests/freebsd/realpathat.stderr.exp index 3d6647e3ae..e299abcba8 100644 --- a/memcheck/tests/freebsd/realpathat.stderr.exp +++ b/memcheck/tests/freebsd/realpathat.stderr.exp @@ -10,7 +10,7 @@ Invalid write of size 4 at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:17) -Invalid write of size ... +Invalid write of size 4 at 0x........: main (realpathat.c:21) Address 0x........ is 0 bytes inside a block of size 1 alloc'd at 0x........: malloc (vg_replace_malloc.c:...) @@ -24,6 +24,10 @@ Syscall param __realpathat(size) contains uninitialised byte(s) ... by 0x........: main (realpathat.c:22) +Syscall param __realpathat(flags) contains uninitialised byte(s) + ... + by 0x........: main (realpathat.c:22) + Invalid read of size 1 ... by 0x........: main (realpathat.c:32) @@ -116,7 +120,7 @@ Invalid read of size 1 Invalid write of size 2 ... by 0x........: main (realpathat.c:32) - Address 0x........ is 55 bytes inside a block of size 100 free'd + Address 0x........ is ... bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:29) Block was alloc'd at @@ -127,7 +131,7 @@ Invalid read of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... by 0x........: main (realpathat.c:32) - Address 0x........ is 56 bytes inside a block of size 100 free'd + Address 0x........ is ... bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:29) Block was alloc'd at @@ -138,7 +142,7 @@ Invalid write of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... by 0x........: main (realpathat.c:32) - Address 0x........ is 56 bytes inside a block of size 100 free'd + Address 0x........ is ... bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:29) Block was alloc'd at @@ -149,7 +153,7 @@ Invalid write of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... by 0x........: main (realpathat.c:32) - Address 0x........ is 66 bytes inside a block of size 100 free'd + Address 0x........ is ... bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:29) Block was alloc'd at @@ -159,7 +163,7 @@ Invalid write of size 1 Syscall param fstatat(path) points to unaddressable byte(s) ... by 0x........: main (realpathat.c:32) - Address 0x........ is 56 bytes inside a block of size 100 free'd + Address 0x........ is ... bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:29) Block was alloc'd at |
|
From: Paul F. <pa...@so...> - 2022-04-03 20:02:43
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=e816f4c44f8556a8e3a64ce972e46acf62d5f89d commit e816f4c44f8556a8e3a64ce972e46acf62d5f89d Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 22:00:09 2022 +0200 Fixes for memcheck/tests/freebsd/realpathat The syscall to realpathat was missing the buffer size argument. By luck, no problem on amd64 but this failed on x86. This adds the argument and a filter for the errors (size_t can be 4 or 8 bytes) Diff: --- memcheck/tests/freebsd/Makefile.am | 2 +- memcheck/tests/freebsd/filter_realpathat | 7 +++ memcheck/tests/freebsd/realpathat.c | 2 + memcheck/tests/freebsd/realpathat.stderr.exp | 92 +++++++++++++++------------- memcheck/tests/freebsd/realpathat.vgtest | 1 + 5 files changed, 60 insertions(+), 44 deletions(-) diff --git a/memcheck/tests/freebsd/Makefile.am b/memcheck/tests/freebsd/Makefile.am index 66d1022753..f70e822a41 100644 --- a/memcheck/tests/freebsd/Makefile.am +++ b/memcheck/tests/freebsd/Makefile.am @@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.tool-tests.am dist_noinst_SCRIPTS = filter_stderr filter_pts dump_stdout filter_sigwait \ - filter_scalar + filter_scalar filter_realpathat EXTRA_DIST = \ scalar.h \ diff --git a/memcheck/tests/freebsd/filter_realpathat b/memcheck/tests/freebsd/filter_realpathat new file mode 100755 index 0000000000..82b21841dd --- /dev/null +++ b/memcheck/tests/freebsd/filter_realpathat @@ -0,0 +1,7 @@ +#! /bin/sh + +gsed 's/Invalid write of size 8/Invalid write of size .../' | + +../filter_stderr "$@" + +exit 0 diff --git a/memcheck/tests/freebsd/realpathat.c b/memcheck/tests/freebsd/realpathat.c index 218fd75cb2..d7a84240b0 100644 --- a/memcheck/tests/freebsd/realpathat.c +++ b/memcheck/tests/freebsd/realpathat.c @@ -15,8 +15,10 @@ int main(void) // bad int * bad_int1 = malloc(sizeof(char)); int * bad_int2 = malloc(sizeof(char)); + size_t * bad_sz = malloc(sizeof(char)); *bad_int1 = AT_FDCWD; *bad_int2 = 0; + *bad_sz = PATH_MAX; syscall(SYS___realpathat, *bad_int1, self_path, buf, *bad_int2); free(bad_int1); free(bad_int2); diff --git a/memcheck/tests/freebsd/realpathat.stderr.exp b/memcheck/tests/freebsd/realpathat.stderr.exp index 575f1e6a98..3d6647e3ae 100644 --- a/memcheck/tests/freebsd/realpathat.stderr.exp +++ b/memcheck/tests/freebsd/realpathat.stderr.exp @@ -1,162 +1,168 @@ Invalid write of size 4 - at 0x........: main (realpathat.c:18) + at 0x........: main (realpathat.c:19) Address 0x........ is 0 bytes inside a block of size 1 alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:16) Invalid write of size 4 - at 0x........: main (realpathat.c:19) + at 0x........: main (realpathat.c:20) Address 0x........ is 0 bytes inside a block of size 1 alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (realpathat.c:17) +Invalid write of size ... + at 0x........: main (realpathat.c:21) + Address 0x........ is 0 bytes inside a block of size 1 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (realpathat.c:18) + Syscall param __realpathat(fd) contains uninitialised byte(s) ... - by 0x........: main (realpathat.c:20) + by 0x........: main (realpathat.c:22) Syscall param __realpathat(size) contains uninitialised byte(s) ... - by 0x........: main (realpathat.c:20) + by 0x........: main (realpathat.c:22) Invalid read of size 1 ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Syscall param __realpathat(path) points to unaddressable byte(s) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Syscall param __realpathat(buf) points to unaddressable byte(s) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Invalid read of size 1 ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Syscall param __getcwd(buf) points to unaddressable byte(s) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Invalid read of size 1 at 0x........: strlcpy (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 0 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Invalid read of size 1 at 0x........: strlcpy (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 1 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Invalid read of size 1 at 0x........: strlcpy (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 30 bytes inside a block of size 31 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:28) + by 0x........: main (realpathat.c:30) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) ... - by 0x........: main (realpathat.c:26) + by 0x........: main (realpathat.c:28) Invalid write of size 2 ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 55 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Invalid read of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 56 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Invalid write of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 56 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Invalid write of size 1 at 0x........: strlcat (vg_replace_strmem.c:...) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 66 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) Syscall param fstatat(path) points to unaddressable byte(s) ... - by 0x........: main (realpathat.c:30) + by 0x........: main (realpathat.c:32) Address 0x........ is 56 bytes inside a block of size 100 free'd at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:27) + by 0x........: main (realpathat.c:29) Block was alloc'd at at 0x........: malloc (vg_replace_malloc.c:...) - by 0x........: main (realpathat.c:25) + by 0x........: main (realpathat.c:27) diff --git a/memcheck/tests/freebsd/realpathat.vgtest b/memcheck/tests/freebsd/realpathat.vgtest index 9efbcbdfcf..c34ca564aa 100644 --- a/memcheck/tests/freebsd/realpathat.vgtest +++ b/memcheck/tests/freebsd/realpathat.vgtest @@ -1,3 +1,4 @@ prog: realpathat prereq: test -e ./realpathat vgopts: -q +stderr_filter: filter_realpathat |
|
From: Paul F. <pa...@so...> - 2022-04-03 19:29:47
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=d6cdc6e523227bf483036aa004b4b369fd17713f commit d6cdc6e523227bf483036aa004b4b369fd17713f Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 21:28:24 2022 +0200 Add filter to memcheck/tests/freebsd/fexecve for the size Different size on x86 was causing a failure Diff: --- memcheck/tests/freebsd/fexecve.stderr.exp | 4 ++-- memcheck/tests/freebsd/fexecve.vgtest | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/memcheck/tests/freebsd/fexecve.stderr.exp b/memcheck/tests/freebsd/fexecve.stderr.exp index 1b4da10d00..5e49552511 100644 --- a/memcheck/tests/freebsd/fexecve.stderr.exp +++ b/memcheck/tests/freebsd/fexecve.stderr.exp @@ -5,14 +5,14 @@ Syscall param fexecve(fd) contains uninitialised byte(s) Syscall param fexecve(argv) points to uninitialised byte(s) at 0x........: fexecve (in /...libc...) by 0x........: main (fexecve.c:29) - Address 0x........ is 0 bytes inside a block of size 16 alloc'd + Address 0x........ is 0 bytes inside a block of size ... alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (fexecve.c:17) Syscall param fexecve(envp) points to uninitialised byte(s) at 0x........: fexecve (in /...libc...) by 0x........: main (fexecve.c:29) - Address 0x........ is 0 bytes inside a block of size 16 alloc'd + Address 0x........ is 0 bytes inside a block of size ... alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (fexecve.c:18) diff --git a/memcheck/tests/freebsd/fexecve.vgtest b/memcheck/tests/freebsd/fexecve.vgtest index 2ba2b646ca..78eec35d78 100644 --- a/memcheck/tests/freebsd/fexecve.vgtest +++ b/memcheck/tests/freebsd/fexecve.vgtest @@ -1,2 +1,3 @@ prog: fexecve vgopts: -q +stderr_filter: ../filter_dw4 |
|
From: Paul F. <pa...@so...> - 2022-04-03 16:28:29
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=6c91d2d4eebb8a0096ce3b45d9bb23777074e3d4 commit 6c91d2d4eebb8a0096ce3b45d9bb23777074e3d4 Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 18:27:17 2022 +0200 Extend FreeBSD procctl 4 new types added in FreeBSD 13.1 Diff: --- coregrind/m_syswrap/syswrap-amd64-freebsd.c | 50 ++++++++++++++++------------- coregrind/m_syswrap/syswrap-x86-freebsd.c | 48 ++++++++++++++------------- include/vki/vki-freebsd.h | 37 +++++++++++---------- 3 files changed, 74 insertions(+), 61 deletions(-) diff --git a/coregrind/m_syswrap/syswrap-amd64-freebsd.c b/coregrind/m_syswrap/syswrap-amd64-freebsd.c index 7302ffc429..9ddd34c77a 100644 --- a/coregrind/m_syswrap/syswrap-amd64-freebsd.c +++ b/coregrind/m_syswrap/syswrap-amd64-freebsd.c @@ -958,21 +958,23 @@ PRE(sys_procctl) SARG1, SARG2, SARG3, ARG4); PRE_REG_READ4(int, "procctl", vki_idtype_t, idtype, vki_id_t, id, int, cmd, void *, arg); switch (ARG3) { - case PROC_ASLR_CTL: - case PROC_SPROTECT: - case PROC_TRACE_CTL: - case PROC_TRAPCAP_CTL: - case PROC_PDEATHSIG_CTL: - case PROC_STACKGAP_CTL: + case VKI_PROC_ASLR_CTL: + case VKI_PROC_SPROTECT: + case VKI_PROC_TRACE_CTL: + case VKI_PROC_TRAPCAP_CTL: + case VKI_PROC_PDEATHSIG_CTL: + case VKI_PROC_STACKGAP_CTL: + case VKI_PROC_NO_NEW_PRIVS_CTL: + case VKI_PROC_WXMAP_CTL: PRE_MEM_READ("procctl(arg)", ARG4, sizeof(int)); break; - case PROC_REAP_STATUS: + case VKI_PROC_REAP_STATUS: PRE_MEM_READ("procctl(arg)", ARG4, sizeof(struct vki_procctl_reaper_status)); break; - case PROC_REAP_GETPIDS: + case VKI_PROC_REAP_GETPIDS: PRE_MEM_READ("procctl(arg)", ARG4, sizeof(struct vki_procctl_reaper_pids)); break; - case PROC_REAP_KILL: + case VKI_PROC_REAP_KILL: /* The first three fields are reads * int rk_sig; * u_int rk_flags; @@ -987,14 +989,16 @@ PRE(sys_procctl) PRE_MEM_READ("procctl(arg)", ARG4, sizeof(int) + sizeof(u_int) + sizeof(vki_pid_t)); PRE_MEM_WRITE("procctl(arg)", ARG4+offsetof(struct vki_procctl_reaper_kill, rk_killed), sizeof(u_int) + sizeof(vki_pid_t)); break; - case PROC_ASLR_STATUS: - case PROC_PDEATHSIG_STATUS: - case PROC_STACKGAP_STATUS: - case PROC_TRAPCAP_STATUS: - case PROC_TRACE_STATUS: + case VKI_PROC_ASLR_STATUS: + case VKI_PROC_PDEATHSIG_STATUS: + case VKI_PROC_STACKGAP_STATUS: + case VKI_PROC_TRAPCAP_STATUS: + case VKI_PROC_TRACE_STATUS: + case VKI_PROC_NO_NEW_PRIVS_STATUS: + case VKI_PROC_WXMAP_STATUS: PRE_MEM_WRITE("procctl(arg)", ARG4, sizeof(int)); - case PROC_REAP_ACQUIRE: - case PROC_REAP_RELEASE: + case VKI_PROC_REAP_ACQUIRE: + case VKI_PROC_REAP_RELEASE: default: break; } @@ -1003,14 +1007,16 @@ PRE(sys_procctl) POST(sys_procctl) { switch (ARG3) { - case PROC_REAP_KILL: + case VKI_PROC_REAP_KILL: POST_MEM_WRITE(ARG4+offsetof(struct vki_procctl_reaper_kill, rk_killed), sizeof(u_int) + sizeof(vki_pid_t)); break; - case PROC_ASLR_STATUS: - case PROC_PDEATHSIG_STATUS: - case PROC_STACKGAP_STATUS: - case PROC_TRAPCAP_STATUS: - case PROC_TRACE_STATUS: + case VKI_PROC_ASLR_STATUS: + case VKI_PROC_PDEATHSIG_STATUS: + case VKI_PROC_STACKGAP_STATUS: + case VKI_PROC_TRAPCAP_STATUS: + case VKI_PROC_TRACE_STATUS: + case VKI_PROC_NO_NEW_PRIVS_STATUS: + case VKI_PROC_WXMAP_STATUS: POST_MEM_WRITE(ARG4, sizeof(int)); default: break; diff --git a/coregrind/m_syswrap/syswrap-x86-freebsd.c b/coregrind/m_syswrap/syswrap-x86-freebsd.c index 5c82f7db65..0ba304952f 100644 --- a/coregrind/m_syswrap/syswrap-x86-freebsd.c +++ b/coregrind/m_syswrap/syswrap-x86-freebsd.c @@ -1357,21 +1357,23 @@ PRE(sys_procctl) vki_uint32_t, MERGE64_SECOND(id), int, cmd, void *, arg); switch (ARG4) { - case PROC_ASLR_CTL: - case PROC_SPROTECT: - case PROC_TRACE_CTL: - case PROC_TRAPCAP_CTL: - case PROC_PDEATHSIG_CTL: - case PROC_STACKGAP_CTL: + case VKI_PROC_ASLR_CTL: + case VKI_PROC_SPROTECT: + case VKI_PROC_TRACE_CTL: + case VKI_PROC_TRAPCAP_CTL: + case VKI_PROC_PDEATHSIG_CTL: + case VKI_PROC_STACKGAP_CTL: + case VKI_PROC_NO_NEW_PRIVS_CTL: + case VKI_PROC_WXMAP_CTL: PRE_MEM_READ("procctl(arg)", ARG5, sizeof(int)); break; - case PROC_REAP_STATUS: + case VKI_PROC_REAP_STATUS: PRE_MEM_READ("procctl(arg)", ARG5, sizeof(struct vki_procctl_reaper_status)); break; - case PROC_REAP_GETPIDS: + case VKI_PROC_REAP_GETPIDS: PRE_MEM_READ("procctl(arg)", ARG5, sizeof(struct vki_procctl_reaper_pids)); break; - case PROC_REAP_KILL: + case VKI_PROC_REAP_KILL: /* The first three fields are reads * int rk_sig; * u_int rk_flags; @@ -1386,14 +1388,14 @@ PRE(sys_procctl) PRE_MEM_READ("procctl(arg)", ARG5, sizeof(int) + sizeof(u_int) + sizeof(vki_pid_t)); PRE_MEM_WRITE("procctl(arg)", ARG5+offsetof(struct vki_procctl_reaper_kill, rk_killed), sizeof(u_int) + sizeof(vki_pid_t)); break; - case PROC_ASLR_STATUS: - case PROC_PDEATHSIG_STATUS: - case PROC_STACKGAP_STATUS: - case PROC_TRAPCAP_STATUS: - case PROC_TRACE_STATUS: + case VKI_PROC_ASLR_STATUS: + case VKI_PROC_PDEATHSIG_STATUS: + case VKI_PROC_STACKGAP_STATUS: + case VKI_PROC_TRAPCAP_STATUS: + case VKI_PROC_TRACE_STATUS: PRE_MEM_WRITE("procctl(arg)", ARG5, sizeof(int)); - case PROC_REAP_ACQUIRE: - case PROC_REAP_RELEASE: + case VKI_PROC_REAP_ACQUIRE: + case VKI_PROC_REAP_RELEASE: default: break; } @@ -1402,14 +1404,16 @@ PRE(sys_procctl) POST(sys_procctl) { switch (ARG4) { - case PROC_REAP_KILL: + case VKI_PROC_REAP_KILL: POST_MEM_WRITE(ARG5+offsetof(struct vki_procctl_reaper_kill, rk_killed), sizeof(u_int) + sizeof(vki_pid_t)); break; - case PROC_ASLR_STATUS: - case PROC_PDEATHSIG_STATUS: - case PROC_STACKGAP_STATUS: - case PROC_TRAPCAP_STATUS: - case PROC_TRACE_STATUS: + case VKI_PROC_ASLR_STATUS: + case VKI_PROC_PDEATHSIG_STATUS: + case VKI_PROC_STACKGAP_STATUS: + case VKI_PROC_TRAPCAP_STATUS: + case VKI_PROC_TRACE_STATUS: + case VKI_PROC_NO_NEW_PRIVS_STATUS: + case VKI_PROC_WXMAP_STATUS: POST_MEM_WRITE(ARG5, sizeof(int)); default: break; diff --git a/include/vki/vki-freebsd.h b/include/vki/vki-freebsd.h index b0036679ed..d467f017e5 100644 --- a/include/vki/vki-freebsd.h +++ b/include/vki/vki-freebsd.h @@ -2285,23 +2285,26 @@ typedef struct vki_domainset vki_domainset_t; // From sys/procctl.h //---------------------------------------------------------------------- -#define PROC_SPROTECT 1 -#define PROC_REAP_ACQUIRE 2 -#define PROC_REAP_RELEASE 3 -#define PROC_REAP_STATUS 4 -#define PROC_REAP_GETPIDS 5 -#define PROC_REAP_KILL 6 -#define PROC_TRACE_CTL 7 -#define PROC_TRACE_STATUS 8 -#define PROC_TRAPCAP_CTL 9 -#define PROC_TRAPCAP_STATUS 10 -#define PROC_PDEATHSIG_CTL 11 -#define PROC_PDEATHSIG_STATUS 12 -#define PROC_ASLR_CTL 13 -#define PROC_ASLR_STATUS 14 -#define PROC_STACKGAP_CTL 17 -#define PROC_STACKGAP_STATUS 18 - +#define VKI_PROC_SPROTECT 1 +#define VKI_PROC_REAP_ACQUIRE 2 +#define VKI_PROC_REAP_RELEASE 3 +#define VKI_PROC_REAP_STATUS 4 +#define VKI_PROC_REAP_GETPIDS 5 +#define VKI_PROC_REAP_KILL 6 +#define VKI_PROC_TRACE_CTL 7 +#define VKI_PROC_TRACE_STATUS 8 +#define VKI_PROC_TRAPCAP_CTL 9 +#define VKI_PROC_TRAPCAP_STATUS 10 +#define VKI_PROC_PDEATHSIG_CTL 11 +#define VKI_PROC_PDEATHSIG_STATUS 12 +#define VKI_PROC_ASLR_CTL 13 +#define VKI_PROC_ASLR_STATUS 14 +#define VKI_PROC_STACKGAP_CTL 17 +#define VKI_PROC_STACKGAP_STATUS 18 +#define VKI_PROC_NO_NEW_PRIVS_CTL 19 +#define VKI_PROC_NO_NEW_PRIVS_STATUS 20 +#define VKI_PROC_WXMAP_CTL 21 +#define VKI_PROC_WXMAP_STATUS 22 struct vki_procctl_reaper_status { u_int rs_flags; |
|
From: Paul F. <pa...@so...> - 2022-04-03 13:51:34
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=bbc3bcab0ae7aa01a116c05c52c66a6714a7df12 commit bbc3bcab0ae7aa01a116c05c52c66a6714a7df12 Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 15:50:38 2022 +0200 Bug 451843 - valgrind fails to start on a FreeBSD system which enforces W^X Also add FreeBSD 13.1 to configure.ac Diff: --- NEWS | 1 + configure.ac | 23 ++++++++++---- coregrind/m_initimg/initimg-freebsd.c | 6 ++-- coregrind/m_main.c | 50 ++++++++++++++++++++++++++++-- coregrind/m_stacktrace.c | 2 +- coregrind/m_syswrap/priv_syswrap-freebsd.h | 4 +-- coregrind/m_syswrap/syswrap-freebsd.c | 6 ++-- include/vki/vki-scnums-freebsd.h | 2 +- memcheck/tests/freebsd/scalar.c | 4 +-- none/tests/freebsd/auxv.c | 2 +- 10 files changed, 78 insertions(+), 22 deletions(-) diff --git a/NEWS b/NEWS index 2b74b58644..23caf25025 100644 --- a/NEWS +++ b/NEWS @@ -85,6 +85,7 @@ are not entered into bugzilla tend to get forgotten about or ignored. 450536 Powerpc: valgrind throws 'facility scv unavailable exception' 451626 Syscall param bpf(attr->raw_tracepoint.name) points to unaddressable byte(s) 451827 [ppc64le] VEX temporary storage exhausted with several vbpermq instructions +451843 valgrind fails to start on a FreeBSD system which enforces W^X To see details of a given bug, visit https://bugs.kde.org/show_bug.cgi?id=XXXXXX diff --git a/configure.ac b/configure.ac index 4559028f92..04c306efbb 100755 --- a/configure.ac +++ b/configure.ac @@ -394,8 +394,10 @@ case "${host_os}" in freebsd_12=1200 AC_DEFINE([FREEBSD_12_2], 1220, [FREEBSD_VERS value for FreeBSD 12.2]) freebsd_12_2=1220 - AC_DEFINE([FREEBSD_13], 1300, [FREEBSD_VERS value for FreeBSD 13.x]) - freebsd_13=1300 + AC_DEFINE([FREEBSD_13_0], 1300, [FREEBSD_VERS value for FreeBSD 13.0]) + freebsd_13_0=1300 + AC_DEFINE([FREEBSD_13_1], 1310, [FREEBSD_VERS value for FreeBSD 13.1+]) + freebsd_13_1=1310 AC_DEFINE([FREEBSD_14], 1400, [FREEBSD_VERS value for FreeBSD 14.x]) freebsd_14=1400 @@ -428,9 +430,18 @@ case "${host_os}" in esac ;; 13.*) - AC_MSG_RESULT([FreeBSD 13.x (${kernel})]) - AC_DEFINE([FREEBSD_VERS], FREEBSD_13, [FreeBSD version]) - freebsd_vers=$freebsd_13 + case "${kernel}" in + 13.0-*) + AC_MSG_RESULT([FreeBSD 13.0 (${kernel})]) + AC_DEFINE([FREEBSD_VERS], FREEBSD_13_0, [FreeBSD version]) + freebsd_vers=$freebsd_13_0 + ;; + *) + AC_MSG_RESULT([FreeBSD 13.1+ (${kernel})]) + AC_DEFINE([FREEBSD_VERS], FREEBSD_13_1, [FreeBSD version]) + freebsd_vers=$freebsd_13_1 + ;; + esac ;; 14.*) AC_MSG_RESULT([FreeBSD 14.x (${kernel})]) @@ -4625,7 +4636,7 @@ fi # test "$VGCONF_OS" = "solaris" if test "$VGCONF_OS" = "freebsd" ; then -AM_CONDITIONAL(FREEBSD_VERS_13_PLUS, test $freebsd_vers -ge $freebsd_13) +AM_CONDITIONAL(FREEBSD_VERS_13_PLUS, test $freebsd_vers -ge $freebsd_13_0) else diff --git a/coregrind/m_initimg/initimg-freebsd.c b/coregrind/m_initimg/initimg-freebsd.c index 71fb8add17..10d034eab6 100644 --- a/coregrind/m_initimg/initimg-freebsd.c +++ b/coregrind/m_initimg/initimg-freebsd.c @@ -578,7 +578,7 @@ Addr setup_client_stack( void* init_sp, /* --- auxv --- */ auxv = (struct auxv *)ptr; *client_auxv = (UInt *)auxv; -#if defined(VGP_x86_freebsd) && (VGO_freebsd <= FREEBSD_13) +#if defined(VGP_x86_freebsd) && (VGO_freebsd <= FREEBSD_13_0) int* pagesizes = NULL; #endif @@ -660,7 +660,7 @@ Addr setup_client_stack( void* init_sp, // case AT_CANARYLEN: // case AT_EXECPATH: // case AT_CANARY: -#if defined(VGP_x86_freebsd) && (VGO_freebsd <= FREEBSD_13) +#if defined(VGP_x86_freebsd) && (VGO_freebsd <= FREEBSD_13_0) case AT_PAGESIZESLEN: if (!VG_(is32on64)()) { VG_(debugLog)(2, "initimg", @@ -685,7 +685,7 @@ Addr setup_client_stack( void* init_sp, // case AT_TIMEKEEP: break; -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) case AT_BSDFLAGS: case AT_ARGC: // case AT_ARGV: diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 70b6c05495..2a7712b3ce 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1348,14 +1348,14 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) VG_(exit)(1); } +#if defined(VGO_freebsd) + Int val; + SizeT len = sizeof(val); //-------------------------------------------------------------- // FreeBSD check security.bsd.unprivileged_proc_debug sysctl // This needs to be done before aspacemgr starts, otherwise that // will fail with mysterious error codes //-------------------------------------------------------------- -#if defined(VGO_freebsd) - Int val; - SizeT len = sizeof(val); Int error = VG_(sysctlbyname)("security.bsd.unprivileged_proc_debug", &val, &len, 0, 0); if (error != -1 && val != 1) { VG_(debugLog)(0, "main", "Valgrind: FATAL:\n"); @@ -1366,6 +1366,50 @@ 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 diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index 9467f3caf6..4c45b97b9f 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -283,7 +283,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, if (do_stats) stats.nr++; // Does this apply to macOS 10.14 and earlier? -# if defined(VGO_freebsd) && (FREEBSD_VERS < FREEBSD_13) +# if defined(VGO_freebsd) && (FREEBSD_VERS < FREEBSD_13_0) if (VG_(is_valid_tid)(tid_if_known) && VG_(is_in_syscall)(tid_if_known) && i < max_n_ips) { diff --git a/coregrind/m_syswrap/priv_syswrap-freebsd.h b/coregrind/m_syswrap/priv_syswrap-freebsd.h index e7b66b17d6..db0b647f53 100644 --- a/coregrind/m_syswrap/priv_syswrap-freebsd.h +++ b/coregrind/m_syswrap/priv_syswrap-freebsd.h @@ -524,7 +524,7 @@ DECL_TEMPLATE(freebsd, sys_fhreadlink) // 567 // unimpl __NR_copy_file_range 569 DECL_TEMPLATE(freebsd, sys___sysctlbyname) // 570 -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) // looks like close_range got backported // to 12.2 leaving these 4 marked as UNIMPL in 12.2 // unimpl __NR_shm_open2 571 @@ -537,7 +537,7 @@ DECL_TEMPLATE(freebsd, sys___realpathat) // 574 #endif -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) // unimpl __NR_rpctls_syscall 576 DECL_TEMPLATE(freebsd, sys___specialfd) // 577 diff --git a/coregrind/m_syswrap/syswrap-freebsd.c b/coregrind/m_syswrap/syswrap-freebsd.c index 3fe6c0eb24..6088d89d70 100644 --- a/coregrind/m_syswrap/syswrap-freebsd.c +++ b/coregrind/m_syswrap/syswrap-freebsd.c @@ -6208,7 +6208,7 @@ POST(sys___sysctlbyname) #endif // (FREEBSD_VERS >= FREEBSD_12_2) -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) // SYS___realpathat 474 // from syscalls.master @@ -6940,7 +6940,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { // unimpl __NR_copy_file_range 569 BSDXY(__NR___sysctlbyname, sys___sysctlbyname), // 570 -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) // unimpl __NR_shm_open2 571 // unimpl __NR_shm_rename 572 // unimpl __NR_sigfastblock 573 @@ -6949,7 +6949,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { // unimpl __NR_close_range 575 #endif -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) // unimpl __NR_rpctls_syscall 576 BSDX_(__NR___specialfd, sys___specialfd), // 577 // unimpl __NR_aio_writev 578 diff --git a/include/vki/vki-scnums-freebsd.h b/include/vki/vki-scnums-freebsd.h index f3247e5376..2bce8b523d 100644 --- a/include/vki/vki-scnums-freebsd.h +++ b/include/vki/vki-scnums-freebsd.h @@ -640,7 +640,7 @@ #endif -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) #define __NR_rpctls_syscall 576 #define __NR___specialfd 577 diff --git a/memcheck/tests/freebsd/scalar.c b/memcheck/tests/freebsd/scalar.c index 140ee82568..50c70e4f23 100644 --- a/memcheck/tests/freebsd/scalar.c +++ b/memcheck/tests/freebsd/scalar.c @@ -1615,7 +1615,7 @@ int main(void) SY(SYS_thr_kill2, x0-1, x0-1, x0+9999); FAIL; /* SYS_shm_open 482 */ -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) GO(SYS_freebsd12_shm_open, "(SHM_ANON) 3s 0m"); SY(SYS_freebsd12_shm_open, x0+SHM_ANON, x0+2, x0+9); SUCC; #else @@ -1748,7 +1748,7 @@ int main(void) SY(SYS_jail_remove, x0+1); FAIL; /* SYS_closefrom 509 */ -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) GO(SYS_freebsd12_closefrom, "1s 0m"); SY(SYS_freebsd12_closefrom, x0+100000); SUCC; #else diff --git a/none/tests/freebsd/auxv.c b/none/tests/freebsd/auxv.c index a6d0f45244..689fb3d113 100644 --- a/none/tests/freebsd/auxv.c +++ b/none/tests/freebsd/auxv.c @@ -39,7 +39,7 @@ Elf_AuxStr aux_map[AT_COUNT] = { {"AT_HWCAP2", 26}, // FreeBSD 12 and 11 // {"AT_COUNT", 27}, -#if (FREEBSD_VERS >= FREEBSD_13) +#if (FREEBSD_VERS >= FREEBSD_13_0) {"AT_BSDFLAGS", 27}, {"AT_ARGC", 28}, {"AT_ARGV", 29}, |
|
From: Paul F. <pa...@so...> - 2022-04-03 13:35:12
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=aba645e5a542f8e95e9b8ef07d30f0a0cfbe16fa commit aba645e5a542f8e95e9b8ef07d30f0a0cfbe16fa Author: Paul Floyd <pj...@wa...> Date: Sun Apr 3 15:34:14 2022 +0200 Add some FreeBSD tests to .gitignore Diff: --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 5d9ba7c429..86416f576c 100644 --- a/.gitignore +++ b/.gitignore @@ -1336,6 +1336,10 @@ /memcheck/tests/freebsd/utimes /memcheck/tests/freebsd/static_allocs /memcheck/tests/freebsd/fexecve +/memcheck/tests/freebsd/eventfd1 +/memcheck/tests/freebsd/eventfd2 +/memcheck/tests/freebsd/realpathat +/memcheck/tests/freebsd/scalar_13_plus # /memcheck/tests/amd64-freebsd /memcheck/tests/amd64-freebsd/*.stderr.diff |