From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 0f59ea25 for ; Sat, 25 Aug 2018 05:13:10 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b88b2b01 for ; Sat, 25 Aug 2018 05:13:10 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id a1b3f8c4 for ; Sat, 25 Aug 2018 05:11:57 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e24c8109 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Sat, 25 Aug 2018 05:11:56 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id x197-v6so1172536oix.5 for ; Fri, 24 Aug 2018 22:26:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 24 Aug 2018 23:26:10 -0600 Message-ID: Subject: Re: [PATCH 1012/1012] Support for unicode interface names: only '%', ':' and '/' must be avoided To: jorgeanton@gmail.com Content-Type: text/plain; charset="UTF-8" Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Indeed it looks like we could be slightly more permissive. From net/core/dev.c: /** * dev_valid_name - check if name is okay for network device * @name: name string * * Network device names need to be valid file names to * to allow sysfs to work. We also disallow any kind of * whitespace. */ bool dev_valid_name(const char *name) { if (*name == '\0') return false; if (strnlen(name, IFNAMSIZ) == IFNAMSIZ) return false; if (!strcmp(name, ".") || !strcmp(name, "..")) return false; while (*name) { if (*name == '/' || *name == ':' || isspace(*name)) return false; name++; } return true; } And earlier in the callstack, %d is checked for, which indeed adds % to the blacklist, as your commit indicates. But should wg-quick enable insane dev names?