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>] [day] [month] [year] [list]
Message-ID: <20180317164911.GA3445@avx2>
Date:   Sat, 17 Mar 2018 19:49:11 +0300
From:   Alexey Dobriyan <adobriyan@...il.com>
To:     akpm@...ux-foundation.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH -mm] proc: fixup read test even more

/proc/sysrq-trigger lives on the ground floor so to speak.

Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---

	FOLD INTO proc-shotgun-test-read-readdir-readlink-a-little-write-fix.patch

 tools/testing/selftests/proc/read.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/tools/testing/selftests/proc/read.c
+++ b/tools/testing/selftests/proc/read.c
@@ -106,10 +106,10 @@ static void f(DIR *d, unsigned int level)
 			int fd;
 
 		case DT_REG:
-			if (level == 1 && streq(de->d_name, "clear_refs")) {
-				f_reg_write(d, de->d_name, "1", 1);
-			} else if (level == 1 && streq(de->d_name, "sysrq-trigger")) {
+			if (level == 0 && streq(de->d_name, "sysrq-trigger")) {
 				f_reg_write(d, de->d_name, "h", 1);
+			} else if (level == 1 && streq(de->d_name, "clear_refs")) {
+				f_reg_write(d, de->d_name, "1", 1);
 			} else if (level == 3 && streq(de->d_name, "clear_refs")) {
 				f_reg_write(d, de->d_name, "1", 1);
 			} else {

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ