From patchwork Fri Oct 8 21:59:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12546573 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17FFDC433EF for ; Fri, 8 Oct 2021 21:59:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED5AF60F22 for ; Fri, 8 Oct 2021 21:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243539AbhJHWBr (ORCPT ); Fri, 8 Oct 2021 18:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243510AbhJHWBq (ORCPT ); Fri, 8 Oct 2021 18:01:46 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F2EC061755 for ; Fri, 8 Oct 2021 14:59:48 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id 145so9251760pfz.11 for ; Fri, 08 Oct 2021 14:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=37QohPvu5nxduVScyuuc1g40BjSdo1039ajksqcN9ds=; b=DHqd/Jjp5ezOy5swGeDNqrw79op/otO2UwW027Kxroza1uWcW5DIVbMHQAGojlQ5D6 bVegpv70K42eP/J5lqXzwZ0Rivufe/kPgbyoePUE3p4CbxUj4RjdOQjVmvIOf7WK4Xd0 +EUAKmYhUsQ7N9lFs/WzS3sI+nQ1ofmcgDmp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=37QohPvu5nxduVScyuuc1g40BjSdo1039ajksqcN9ds=; b=zNbB8anEm9cPLhgOb3UUCmffqRdJ1nDGN+QvpKpzZY4K1Q5JxTa+dtifMxu5JYvs/u guCEqwu7FimPE2JiMByXz6jaV0ReaUxAkXs8QIguId9RyaWtvdlnLwVAYrl0IO0uWAtp mtDBi6ZXh8qtmfQQO6gV56oZUKoTvJfQBQBrDYu+eZ3N6hfTdmt/rYy08P/BHO5YTrwb QERXXR4iRyF4YCIFFdJoykp/Y9avIgkXGDONeWFRVh42Q19khbf9YF4wxOydVfp6mIAc SRmAvIvmk+YWAbwX2KxtOoWSd/9e8MfoUwvDGMyyXf2CiunfJBCssy8WgzWak1GLtqGd VmTA== X-Gm-Message-State: AOAM533bwWXQDsNPRfgzmbBE+qj9vJqMjd+ZCTAk7b2fZEsIrlxWhFrV Ytt3h7xTqZyQt50OwHtb5u/wrg== X-Google-Smtp-Source: ABdhPJxhojz153cZhADfd21xUjR93mbEb0SjlWllpC1kbQ33IDVo1usYmUAthMH0YvAohG9l7myRrQ== X-Received: by 2002:a63:7d42:: with SMTP id m2mr6708955pgn.349.1633730387828; Fri, 08 Oct 2021 14:59:47 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:60ee:fc0b:3092:ca2b]) by smtp.gmail.com with ESMTPSA id y22sm12277335pjj.33.2021.10.08.14.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 14:59:47 -0700 (PDT) From: Stephen Boyd To: "David S . Miller" , Jakub Kicinski Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jiang Wang , Andrii Nakryiko , Cong Wang , Jakub Sitnicki , John Fastabend , Dmitry Osipenko Subject: [PATCH] af_unix: Rename UNIX-DGRAM to UNIX to maintain backwards compatability Date: Fri, 8 Oct 2021 14:59:45 -0700 Message-Id: <20211008215946.3961353-1-swboyd@chromium.org> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Then name of this protocol changed in commit 94531cfcbe79 ("af_unix: Add unix_stream_proto for sockmap") because that commit added stream support to the af_unix protocol. Renaming the existing protocol makes a ChromeOS protocol test[1] fail now that the name has changed in /proc/net/protocols from "UNIX" to "UNIX-DGRAM". Let's put the name back to how it was while keeping the stream protocol as "UNIX-STREAM" so that the procfs interface doesn't change. This fixes the test and maintains backwards compatibility in proc. Cc: Jiang Wang Cc: Andrii Nakryiko Cc: Cong Wang Cc: Jakub Sitnicki Cc: John Fastabend Cc: Dmitry Osipenko Link: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/tast-tests/src/chromiumos/tast/local/bundles/cros/network/supported_protocols.go;l=50;drc=e8b1c3f94cb40a054f4aa1ef1aff61e75dc38f18 [1] Fixes: 94531cfcbe79 ("af_unix: Add unix_stream_proto for sockmap") Signed-off-by: Stephen Boyd --- net/unix/af_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 9e1ff307c779ce1f0f810c7ecce3d95bbae40896 diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index efac5989edb5..26f92325d94b 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -828,7 +828,7 @@ static void unix_unhash(struct sock *sk) } struct proto unix_dgram_proto = { - .name = "UNIX-DGRAM", + .name = "UNIX", .owner = THIS_MODULE, .obj_size = sizeof(struct unix_sock), .close = unix_close,