lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 24 Feb 2024 10:43:38 +1300
From: "Robert O'Callahan" <robert@...llahan.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Kyle Huey <me@...ehuey.com>, Ian Rogers <irogers@...gle.com>, Kyle Huey <khuey@...ehuey.com>, 
	Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>, 
	Namhyung Kim <namhyung@...nel.org>, Mark Rutland <mark.rutland@....com>, 
	Alexander Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa <jolsa@...nel.org>, 
	Adrian Hunter <adrian.hunter@...el.com>, linux-perf-users@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] perf test: Test FASYNC with watermark wakeups.

(I work with Kyle.)

IMHO this is more of a bug fix than a feature. `man perf_event_open`
expects this to work already: "watermark: If set, have an overflow
notification happen when we cross the wakeup_watermark boundary" and
later "Alternatively, the overflow events can be captured via a signal
handler, by enabling I/O signaling".

Bug fixes need regression tests. Such tests should fail on any kernel
where the bug is present. It seems strange to expect each such test to
detect whether the bug "should be fixed" in the kernel it's running on
and skip when that's not the case. I haven't seen any other project
try to do this. Instead (as in kernel selftests) the tests, the code
under test, and any metadata about which tests are expected to pass
are all in the repository together and updated together.

It makes sense that tests for the code in tools/perf should not fail
on older kernels, given that the code in tools/perf is expected to
work on older kernels. But tests for bug fixes in the kernel itself
should be expected to fail on older kernels and therefore should live
somewhere else, IMHO.

Rob
-- 
Su ot deraeppa sah dna Rehtaf eht htiw saw hcihw, efil lanrete eht uoy
ot mialcorp ew dna, ti ot yfitset dna ti nees evah ew; deraeppa efil
eht. Efil fo Drow eht gninrecnoc mialcorp ew siht - dehcuot evah sdnah
ruo dna ta dekool evah ew hcihw, seye ruo htiw nees evah ew hcihw,
draeh evah ew hcihw, gninnigeb eht morf saw hcihw taht.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ