Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2463232pxy; Tue, 3 Aug 2021 07:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfcPgnTc2zDn1PZN0dgJlP+KMfi+MhceNddfwY3cJLjCHf3+4Bu8ovSoC1SkHCMQn0F9uU X-Received: by 2002:a92:d3d2:: with SMTP id c18mr656586ilh.192.1627999760789; Tue, 03 Aug 2021 07:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627999760; cv=none; d=google.com; s=arc-20160816; b=ap8tUoCQNPSenaNt2LvOl+qQxqWzZlOIzHud5AqX0ZAOHhy9oIzgXnws88vB25wQAp VLwZIbeXbI/bOca4QFs9Wfke4j2BHslMaH7xOsmq+zDJRmwaJji+g+FmBGfyvNZ+BqLn 03sjYx8Ysw1LykR8krPv143/WmNeWMBCXNqMoEHdwKBRuNUjhj1VWiD07xQjo8woC9qO U512K4qJdTnKg6ygL+XBrDqmjG3M9tyinZwD9dszpeBnswoF5c1Ic7r7ds6wYSf5xsyI 2gy6Gav9BmmIsNaqeDNCP0b3b5v0Qxl7oURrUjXL+SDc4LhLDowHrKlxZpVy/CfvusVI IEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=6y1stnT7LmaJlptQnLDx23qQWH50FVnQt9YPvUgp8TU=; b=deOSO23iaytBlx6pTm6K3G1SkaMxXnf6ewhzzURg57fvRnANyoh1bbbW4APS9VWbHl 2SddGNnfRdZccGSEFbnO6v+VT1iRVsFZeR0W3hc9wNE+LOA5Qi0uroriCrz7uxnMRw71 1BsSwVjY85e0he1G+Ab2LgruY6No6vk0pSzyE7IR4Ft2iGIe6QUf/PO/obXSW7acgMur 5Ei5En0Roe8B9K1VzMNxaIAc3W5tnQygSHJLmZZTu/e71NI0GRyguumHPcW8xhjidPjw 8OgSH1rgp/b8ek1mnWs4ic+3w4+EigBdk+2n/x8FttAf9OQ4mpoNk1DL5rPTXfcp9nmn FZKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=WuhuvtS7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si5984847jaj.86.2021.08.03.07.08.54; Tue, 03 Aug 2021 07:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=WuhuvtS7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236483AbhHCOJA (ORCPT + 99 others); Tue, 3 Aug 2021 10:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236432AbhHCOJA (ORCPT ); Tue, 3 Aug 2021 10:09:00 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA79C061757; Tue, 3 Aug 2021 07:08:49 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id D03856855; Tue, 3 Aug 2021 10:08:46 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org D03856855 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1627999726; bh=6y1stnT7LmaJlptQnLDx23qQWH50FVnQt9YPvUgp8TU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WuhuvtS7gTovhY+upvMJtuP/kxXSDck/bfNAXucQT9EVBoU6y4KvyXnyVYeXYR2/X T7+vsGVEDf6ib/5eapurYxojIDJErRdDxmrAdBVtBeZhVmN7GBTe1Cejpj0jw+/MJa DuFSMZsktFBRSq64EXj1x6N8UvX6PnYSpVnIcToY= Date: Tue, 3 Aug 2021 10:08:46 -0400 From: "J. Bruce Fields" To: Thomas Huth Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, Chuck Lever , Trond Myklebust , Anna Schumaker , Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-s390@vger.kernel.org, Jia He , Pan Xinhui Subject: Re: [PATCH 0/2] Fix /proc/sys/fs/nfs/nsm_use_hostnames on big endian machines Message-ID: <20210803140846.GB30327@fieldses.org> References: <20210803105937.52052-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803105937.52052-1-thuth@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Looks good to me. Could Chuck take it with nfsd stuff if somebody could ACK the sysctl part? --b. On Tue, Aug 03, 2021 at 12:59:35PM +0200, Thomas Huth wrote: > There is an endianess problem with /proc/sys/fs/nfs/nsm_use_hostnames > (which can e.g. be seen on an s390x host) : > > # modprobe lockd nsm_use_hostnames=1 > # cat /proc/sys/fs/nfs/nsm_use_hostnames > 16777216 > > The nsm_use_hostnames variable is declared as "bool" which is required > for the correct type for the module parameter. However, this does not > work correctly with the entry in the /proc filesystem since this > currently requires "int". > > Jia He already provided patches for this problem a couple of years ago, > but apparently they felt through the cracks and never got merged. So > here's a rebased version to finally fix this issue. > > Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1764075 > > Jia He (2): > sysctl: introduce new proc handler proc_dobool > lockd: change the proc_handler for nsm_use_hostnames > > fs/lockd/svc.c | 2 +- > include/linux/sysctl.h | 2 ++ > kernel/sysctl.c | 42 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 45 insertions(+), 1 deletion(-) > > -- > 2.27.0