Article View: linux.kernel.netdev
Article #19677Re: [PATCH net] tools: ynl: preserve non-ASCII string attribute bytes
From: Jingjing Xu
Date: Fri, 20 Nov 2026 07:45
Date: Fri, 20 Nov 2026 07:45
20 lines
9165 bytes
9165 bytes
Hi Jakub, My opening statement was too broad. I inferred a general string contract from the kernel accepting non-ASCII interface names. The validation used locally created dummy interfaces in a network namespace: creating the name succeeded, and the unmodified YNL getlink dump then raised UnicodeDecodeError. This was a synthetic test case, not a reported production failure. That observation does not establish that these names are a supported YNL requirement. I also overlooked rtnetlink(7)'s description of IFLA_IFNAME as an asciiz string. It was not sufficient justification for changing the shared codec for every string attribute. I will drop this patch. Sorry for the unnecessary review work. Thanks, Jingjing
Technical Details
Message-ID:
<179516071221.8627.13064755453968362898@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367747-linux-kernel-netdev=dewy.ruReferences:
<20261110033922.49297-1-xujingjing@cmss.chinamobile.com> <20261110105845.0c9faffb@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367747-linux-kernel-netdev=dewy.ru From: xujingjing@cmss.chinamobile.com (Jingjing Xu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] tools: ynl: preserve non-ASCII string attribute bytes Date: Fri, 20 Nov 2026 07:45:12 -0000 Organization: Usenet Network Message-ID: <179516071221.8627.13064755453968362898@cmss.chinamobile.com> References: <20261110033922.49297-1-xujingjing@cmss.chinamobile.com> <20261110105845.0c9faffb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Injection-Info: usenet.network; logging-data="3099237"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:OYOuFc3+HDHG21KYoUrGkANBfrw= sha256:D5YKfnInospPu5bW1cpe+VxvwkfeK8AojFeAfmghS64= sha1:BacAq9XhWhUMWDG1/gwscLV7mtk= sha256:MESyw5G2MrPIyp0Del3NOBPxi+SBO6WCOPmhy9uhtLE= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C38AC1158F2; Fri, 20 Nov 2026 10:45:38 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.75 X-Spam-Status: No, score=-2.75 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RLyEZQK5k4tU; Fri, 20 Nov 2026 10:45:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367747-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 692001158C6; Fri, 20 Nov 2026 10:45:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 51470140F00; Fri, 20 Nov 2026 07:45:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795160718; b=AqJRsD/MBFYs6VVPYW5fnEqUTnSy4/xbKXJYrFCrGDcloMvBkE7RKUqMQ11uQE3+dk4M gtwLU8G6Od9VxI307rg4ZgHAXsluD63vhNefYnd25DhVdKEBHYLIAfqFsFW2i4ypqs0dg Exwt+SQRdvVR/atZ/MNkKArTs0nZWG3uT4+WyQwqRg1JgDgo0YJbEak0EkzRdg8x4k4pw ACSQDYoTnul3B2azLYbGY0I5yKKbPcGGmnkeZCbxFH92Rxr3Ax6o9ihSccyZSPlhvFBAG XxsBYHmIbk7HLVcrVzfNgbp/uQ6VaRUxwjJaScQF9rGpDQZZtRJzWy4buA02LzkNDdw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795160718; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type; bh=oXQfguT5i+gmjLEy9t2B/GOSyc4K4AwGXiERNNZNpdw=; b=BOAlFh6jAWKG+sXEc9K2b9fxAV7xd3A+c6h3LAMvhDJfxukt7gx9by4XwpGYe/wyCz+/ O5ZzzVv7uZ7LmmWtWTwZMWa5RezMNowk2tF3i2cxuvRraUGvVUEASh0nLOd3uj4sb4lZY btOAu1uxu+gUWup+feClFk+4ARIwJGoswMJ2UxTqLKqOaNIQTG0uGSnFgpk0CYjbuHUz4 L77BpMagzvNKMekJzlJsXNdkT4G/aSiIIY6wOUC3vJD9Hsy8cvSgeqiyPgEvtND8voa8z cqBnHll7RmgUPSuiWPmpptgpPGBKUm8xO0qj8uF/zCJ5xbaSX9Mkqf6r5vXDHNmJBfg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=sDJoMYXr; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B91C606A326; Fri, 20 Nov 2026 07:45:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=sDJoMYXr X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.139 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795160717; b=ecMNxSf4G9uNmJCTc3ujMKfm5k5i4ImYLPDOtw3SpCrjclT3JAe0SVE90xk50F2B7CmD ElHXH+93ArD/gXElur04DJwKb2HMt4DEsD8I/nbQfnrGSCMel7g3jzpjjZkhGqcN3NA5l ofxLitIFAcg45mESIQd8idSHmVmyJ6u1vkgC9tUC4dAZI3srpF9DmfJNaX24N6JkwYyz0 mdP7UYiTF8W9Vd1QyqEHCCEGpw8HHOL40fzF8fI7ATK4UCK9xmOdjMaM4UU5QO1unU+1u BDZCegS4DduWrWEd84a0c2MYkdf1Dhfii06KCysod3bI8em/AEEVJhMzimNZk1ZA1kA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795160717; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version: Content-Type; bh=oXQfguT5i+gmjLEy9t2B/GOSyc4K4AwGXiERNNZNpdw=; b=OvVLr7LVGspm30B1wUAKFiv40AkoUDEJXlQPC4vjm9KiyyBJmed1a1cy3zfZbv03VW14 786xUgCBusMuBnlWcACOORVi9sIDN7txrBIPeUTIyHasrnsP7ZMbhl2w4ijZvQQag/DVG tWBH534r+B7fIv+3kf1ZTIQHtX3AX4o+dlmmRokgUXwSxtQqtrkHQZe/hJmoSfye07qrA Fg6P9TfcxxRnruC2Nv1xQiyap39eTQiBqBC6n4bhTIwygf8x8UaTlklkiVJ/tfRp8JiHf huU0M3L9uO0I1P3G2Gu92mRdfPna5eufVWpXvt7lxFaNtHlo36EGkNADt0OuHb0/yZw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=sDJoMYXr; arc=none smtp.remote-ip=111.22.67.139 X-Received: from cmccmta6.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDABE606A32A for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 07:45:14 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CDABE606A32A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=sDJoMYXr0h1fycPakyWbI/7DrXn4rkClzc6Q4isJLdq2xA6b/3kA3jI6x9RD16XKXcc9FCbVQoVd4 jm1ox+RjUlhKMjdVOevnhR98NKICzI9O4j4Nhw48LAejZCcbimnGCTVq4Iy23+oOF9AACiIhMa5kqq Anqqt4Jhb0ljrzHk= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee96afffa88ff8-2ba3d; Fri, 20 Nov 2026 15:45:12 +0800 (CST) X-RM-TRANSID: 2ee96afffa88ff8-2ba3d X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from localhost (unknown[180.106.213.53]) by rmsmtp-syy-appsvr06-12006 (RichMail) with SMTP id 2ee66afffa8820d-1c0eb; Fri, 20 Nov 2026 15:45:12 +0800 (CST) X-RM-TRANSID: 2ee66afffa8820d-1c0eb X-Cc: Donald Hunter <donald.hunter@gmail.com>, netdev@vger.kernel.org X-In-Reply-To: <20261110105845.0c9faffb@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list