Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZCw2i-0005hr-H0 for ltp-list@lists.sourceforge.net; Wed, 08 Jul 2015 20:34:08 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1ZCw2h-0000Iv-5F for ltp-list@lists.sourceforge.net; Wed, 08 Jul 2015 20:34:08 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 41D423D0057 for ; Wed, 8 Jul 2015 20:34:01 +0000 (UTC) Received: from tarantula.localdomain (ovpn-113-174.phx2.redhat.com [10.3.113.174]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t68KXw0x002021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 8 Jul 2015 16:34:00 -0400 Date: Wed, 8 Jul 2015 15:33:58 -0500 From: Jeffrey Bastian Message-ID: <20150708203358.GA24428@tarantula.localdomain> MIME-Version: 1.0 Content-Disposition: inline Subject: [LTP] [PATCH] proc/proc01.c: ignore stable_secret files List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net Linux 4.1.0 introduced a per-NIC IPv6 stable_secret file for RFC7217. The stable_secret file for each NIC cannot be read until it is set, thus LTP fails like this: proc01 1 TFAIL : proc01.c:392: read failed: /proc/sys/net/ipv6/conf/all/stable_secret: errno=EIO(5): Input/output error proc01 2 TFAIL : proc01.c:392: read failed: /proc/sys/net/ipv6/conf/default/stable_secret: errno=EIO(5): Input/output error proc01 3 TFAIL : proc01.c:392: read failed: /proc/sys/net/ipv6/conf/eno1/stable_secret: errno=EIO(5): Input/output error ... Ignore the stable_secret files in the proc01 test. TODO: A future test should verify stable_secret functionality. ~]# cat /proc/sys/net/ipv6/conf/eno1/stable_secret cat: /proc/sys/net/ipv6/conf/eno1/stable_secret: Input/output error ~]# echo "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255" > /proc/sys/net/ipv6/conf/eno1/stable_secret ~]# cat /proc/sys/net/ipv6/conf/eno1/stable_secret ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Signed-off-by: Jeffrey Bastian --- testcases/kernel/fs/proc/proc01.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c index f513110eca0e..b9ff3ac42fe2 100644 --- a/testcases/kernel/fs/proc/proc01.c +++ b/testcases/kernel/fs/proc/proc01.c @@ -290,14 +290,15 @@ static long readproc(const char *obj) dir_ent != NULL; dir_ent = (struct dirent *)readdir(dir)) { - /* Ignore ".", "..", "kcore", and - * "/proc/" (unless this is our + /* Ignore ".", "..", "kcore", "stable_secret", + * and "/proc/" (unless this is our * starting point as directed by the * user). */ if (strcmp(dir_ent->d_name, ".") && strcmp(dir_ent->d_name, "..") && strcmp(dir_ent->d_name, "kcore") && + strcmp(dir_ent->d_name, "stable_secret") && (fnmatch("[0-9]*", dir_ent->d_name, FNM_PATHNAME) || strcmp(obj, procpath))) { -- 1.9.4 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list