Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1172921lqp; Sun, 14 Apr 2024 18:51:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1SBADba8usOrKk3yHIkxsq+zYsKrQVa4NpSASTfb0mZR4KkQuZ7kSdMD6m0Jq5s6tYn8Wypke2kIEz09V4M0qIgQYnPHpiEqfNH3qgA== X-Google-Smtp-Source: AGHT+IFRiCxdMpIJkAApDWoYkBZ0GCtKBsQ9DHOUHSi1kb25cj92ESZd/GOelGMnSqYJBd/Tv2Az X-Received: by 2002:a17:906:dfd0:b0:a52:6ba0:ee10 with SMTP id jt16-20020a170906dfd000b00a526ba0ee10mr633583ejc.60.1713145883471; Sun, 14 Apr 2024 18:51:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713145883; cv=pass; d=google.com; s=arc-20160816; b=br2vHIzaU3/qStDsfPmCxvu5lBKNLtORtBPtYNjX4hvxLKhqEz6vc2qn6NouBIWRi9 lhiUsri4pn74E9fs+6r4dzbrM3OdyErq8Mu6wZTOmoCLahHPQERPo0IzL66mmhnWvwie LteuD1Q8mTONhrM81g1dqsaAQ6kiAK3Bu2DZgt9OdDun8l6chsXQ/jLTxp0qABwBVuAL EXSuAI7BTwEIvw9dzl/zJeCsyMnx/nnRXLVbmq9Craj4unQsbd+EsN8AwN5kRXpVmPAP kkiWZqOwbKTcXzlsmUT4CSPT6AqTGhmftNQYXaNv2aTcM+hdJ1py0kWHBUAlAWJjl+h6 B2Fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tSZ2znVGFEYYLYd8salQEdN1Czr767srg+/HVgkNDuQ=; fh=PEX+stSOUdtQHUY+GQjT20WPCI6VC+/gg8kLaxNfvok=; b=A5sYBNazEzhtHOUGtVODT9xNupCX4+UnQckdCTErKqzR92IbCZLljY1bwUBTlN4K5s W2xWtyun+JTxgbotAdq+TTyHfbtb0sHV/fXqdiUwTcuAfUNHRZPvwQlYHHKAEaKZD8aC tQMzIvd8pu+9gUQ4mrGCAwU1sfXV1D6u/DhAyGkCOtksHDQtqTFugKWtKsp/uhdXkr4J jC6wUc0OEBN3ymhcvzTZSHCARlGz9Ev+KNJrHjlY9oxAa6F3M6w9/8JWKFxFUKA/pABi MM8AY2x3NLsQOw8cYFi5V6TzaydZUL7owOB/ayxMkYHM10NoVxQF8+w9IeNJ4KYP4ucg Q6lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="o/Yre/Eq"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-144433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144433-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qw9-20020a1709066a0900b00a4e2602d757si4439274ejc.351.2024.04.14.18.51.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 18:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="o/Yre/Eq"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-144433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144433-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DB60E1F21782 for ; Mon, 15 Apr 2024 00:35:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CB384C84; Mon, 15 Apr 2024 00:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="o/Yre/Eq" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3E2F639; Mon, 15 Apr 2024 00:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713141322; cv=none; b=G1JNXQRUX3hc1kt1sQYvbmwl5CEcbz7SZXNMT4HxTqZZe4tRmenGwQzcCLQ5lj3JYhuB+yErHN8NWYm2zS1o+4fgfypg89/HclrZkkAuvo87oBC1f9OC5oxdXDW7wi7+hLy7OvmRDXIyu8WW9GAbGWoWn7U2958dwJxbt7vYXR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713141322; c=relaxed/simple; bh=eF4gUVmEWqxUGde3Qoo4hZPQVDGzxIk4yswdCgwHKYI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mnJAy25CAqUWvzyxyyNG0WN0rdlSxVA1ZEeOj024TXHl4/NSN8OM5gr+VZggxlH78U0RxJs5mZRk/rDsCArHm7eIBnsmtt3gioFFjpZLXqZIb6oTsvSav3K7B20L6fF4JJLau+aBr9HtbCt9Um0f7b6lEkFtJCopHKygXop+Ny8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=o/Yre/Eq; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=tSZ2znVGFEYYLYd8salQEdN1Czr767srg+/HVgkNDuQ=; b=o/Yre/EqOa5IgQwsRgc6zIiUj2 brsb1oNT3IgNlnjCFoKoTycO0SyT7/cup1C+eXh7w2F3NTjbcD7aDZEFQyBbRAJcvfO2/bZsuZr3e 46W9+8fBbxky6sprT60wofKVNVRzBCC7f84rujA6pIM/buIo30fqV2BLBVD6622YZyGy+jueL8jfl wFrQJZ3AUowx58Y9oxHsKLORQgFxVWhPD9P0OWS5flYFmYK9ySur0UMEAc+v8xNH9noFzf0hoN5q/ repUy3ScloF+agBPuUAoJ+PVYwm1kVW0JII0vELCkl3zxaO1HKCN0fhRPMM8pyVJJsHV6l1ohuWfn 0+0UjXRw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwAJR-0000000EYBv-23wK; Mon, 15 Apr 2024 00:35:09 +0000 Date: Mon, 15 Apr 2024 01:35:09 +0100 From: Matthew Wilcox To: Alexey Dobriyan Cc: Luis Chamberlain , akpm@linux-foundation.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz Subject: Re: [PATCH] module: ban '.', '..' as module names, ban '/' in module names Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, Apr 14, 2024 at 10:05:05PM +0300, Alexey Dobriyan wrote: > Any other subsystem should use nice helper function aptly named > > string_is_vfs_ready() > > and apply additional restrictions if necessary. > > /proc/modules hints that newlines should be banned too, > and \x1f, and whitespace, and similar looking characters > from different languages and emojis (except ????obviously). I don't see the purpose of allowing any character in 0x01-0x1f. How annoying to have BEL in there. And, really, what's the value in allowing characters after 0x7e?