Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2937668pxy; Tue, 3 Aug 2021 20:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwabeI5CWO9Cyb5H8pOsODZIQz2B15oCuHhOH14b5s1Lq2T97NnTRKQezuqhSjCO+isd+Up X-Received: by 2002:a17:906:ecfc:: with SMTP id qt28mr24584461ejb.316.1628048579422; Tue, 03 Aug 2021 20:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628048579; cv=none; d=google.com; s=arc-20160816; b=khSfI9X8fofcqjLMNr2TqbwxRVjrRpw+2BsoqORz+xYgG+SHJWZ0mBj1WQjz7zgZu6 571dMDbeJiLr8fzO1Nto85zoW55tTb+ijwpSJMaIsL866YzSRWjbfvhc8Kz11MVvCRX+ yaUbFggUS8mlXgI8iuN7NQjjNc1UrV/HYxdbmtb3JQdL7btt2KHMw+GHoZ5X+cI7seIu BFoIigT1lwTBHwJ1BKwnKF+mfpBWvaYle1XBeKC+L3tLTOU/Gbj+u8kpjNkkj/2jFiVk Ne9nxBCpPdGuoanOLJ9/9G7zK4ZLhqVGVNrc0PydVtJoY8H4XX82/G8anRcYD9BdkhqN qF5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eEJuis33nQEDNk1Ylm9E1G7sN7PENH+rOZ/OB9cw0s4=; b=Kdi/1JktRl8769K67oIcXfVmFvzVoxqK5X1MUyNKDetUiHPOw1uRGvYuc8bAuhgtww F26lZITcdLiBmTKLT6SUbHdnNz66hsUO4HFLyMgb9GdgEfMi9572GqXkWW+tIgdg2SSd 0aSbnegAwQms7cfN0xHUFBZlc3oXKKknhbKZQtzdnszvMJ38QKOmbYActjz9zewnoALG yIkfr/iXUZQvEecn9Ak8Xv+CBeQqPXjlfiWhSpyYgz405FXxD9yV0kCs3h1R3A812Yg0 ssISq8qBApwzJrM1T4IKiSvWqd0dsE9FXim7kDeOAVlusZ4D9S3Bl4P7Q+lQqX+k7I/r ilVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qQOZ9FSd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl2si835859ejb.55.2021.08.03.20.42.35; Tue, 03 Aug 2021 20:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=qQOZ9FSd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234269AbhHDCkk (ORCPT + 99 others); Tue, 3 Aug 2021 22:40:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:40016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231656AbhHDCkj (ORCPT ); Tue, 3 Aug 2021 22:40:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 61F9F61029; Wed, 4 Aug 2021 02:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628044827; bh=b/yCEEYrBrU+A3fTEWp0ZEibouN5QfokYnKFbTWvxss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qQOZ9FSdm+2PCME3CspbMkLT7pOP/d89rmPN+Iw8wbJRwemq4lViz37QJtRdt7JiO VrQOkqCkO1eW+yrdj+yQAPbPfEJ5FXJErfsJNpwgg8nNkr57Q6OnG7cGctvI7BRnB/ ZP3LtND+r1YBI+LvXu1IdVpdVi/+bEygAak59SBAu61BRuf+ErCEk0+EVSAyvOyYcs IQ+vVS2QeN48ASCpuLjoo5t1TjEGmaYPNWj1sm7FRIztUhKvy9UWAMIr7f8bHhYkKa 5qlz47Kl4kQDfxzwcOdgvh0kk03PqObqBzgyBPylFnSZbHci4OT+Tq4blHihs7nmz6 lbVY5/VRdlSIQ== Date: Tue, 3 Aug 2021 19:40:26 -0700 From: Nathan Chancellor To: Sven Schnelle Cc: "Eric W. Biederman" , Alexey Gladkov , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ucounts: add missing data type changes Message-ID: References: <20210730062854.3601635-1-svens@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210730062854.3601635-1-svens@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 08:28:54AM +0200, Sven Schnelle wrote: > commit f9c82a4ea89c3 ("Increase size of ucounts to atomic_long_t") > changed the data type of ucounts/ucounts_max to long, but missed to > adjust a few other places. This is noticeable on big endian platforms > from user space because the /proc/sys/user/max_*_names files all > contain 0. > > Fixes: f9c82a4ea89c ("Increase size of ucounts to atomic_long_t") > Signed-off-by: Sven Schnelle This patch in -next as commit e43fc41d1f7f ("ucounts: add missing data type changes") causes Windows Subsystem for Linux to fail to start: [error 0x8007010b when launching `wsl.exe -d Arch'] Could not access starting directory "\\wsl$\Arch\home\nathan" Specifically, it is the change to max_user_watches in fs/notify/inotify/inotify_user.c, as the below diff gets me back to working. Unfortunately, I have no additional information to offer beyond that as WSL's init is custom and closed source (as far as I am aware) and there are no real debugging utilities. Cheers, Nathan diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 55fe7cdea2fb..32178a95c1b3 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -68,9 +68,9 @@ struct ctl_table inotify_table[] = { { .procname = "max_user_watches", .data = &init_user_ns.ucount_max[UCOUNT_INOTIFY_WATCHES], - .maxlen = sizeof(long), + .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_doulongvec_minmax, + .proc_handler = proc_dointvec_minmax, .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_INT_MAX, },