From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vjBZb5xcSzDq5W for ; Tue, 14 Mar 2017 21:59:35 +1100 (AEDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2EAwojP086846 for ; Tue, 14 Mar 2017 06:59:24 -0400 Received: from e28smtp09.in.ibm.com (e28smtp09.in.ibm.com [125.16.236.9]) by mx0a-001b2d01.pphosted.com with ESMTP id 296156vm7m-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Mar 2017 06:59:24 -0400 Received: from localhost by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Mar 2017 16:29:21 +0530 Received: from d50lp33.co.us.ibm.com (d50lp33.boulder.ibm.com [9.17.249.38]) by d28relay07.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2EAw7Fg14155804 for ; Tue, 14 Mar 2017 16:28:08 +0530 Received: from localhost by d50lp33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Mar 2017 04:59:17 -0600 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Tue, 14 Mar 2017 10:59:15 -0000 Subject: Re: ioctl structs differ from x86_64? In-Reply-To: From: "Harshal Patil" To: linuxppc-dev@lists.ozlabs.org Cc: "Sudipto Ghosh" , "Pradipta Kumar" , "Christy L Norman Perez" Date: Tue, 14 Mar 2017 10:59:12 +0000 MIME-Version: 1.0 References: Content-Type: text/html; charset=UTF-8 Message-Id: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: ,
Adding Pradipta a= nd Christy.
Harshal Patil
 
 
----- Original message -----=
From: Harshal Patil/India/IBM
To: linuxppc-dev@lists.ozlabs.org
C= c: Sudipto Ghosh/India/IBM@IBMIN
Subject: ioctl structs differ from x86= =5F64?
Date: Tue, Mar 14, 2017 4:07 PM
 
Hello,
 
 
Recently in runc code, they added this code https://github.com/opencontainers/runc/commit/eea28f480db435dbef= 4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155. As yo= u can see they set -onlcr to get rid of \r (line no. 164). Golang,&nbs= p;in which runc is written, doesn't have any bindings for ioctls.  Thi= s means you have to invoke C code directly (that's what they are doing ther= e).
 
Our guess is the ioctls in ppc64le differ than x86=5F64, = and thats why the code which is clearing onclr bit (https://git= hub.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c= #diff-5f5c07d0cab3ce2086437d3d43c0d25fR164) is failing on ppc64le but w= orks fine on x86=5F64. 
 
Any pointers on the possible solution would be really hel= pful. 
 
Thanks,
Harshal Pati= l
=