Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1902031ybk; Thu, 21 May 2020 19:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaszAVW8g5tdTUGS6pSXf8+FJd0ZimrIqPCrCdtI5o8jz7c4HJmwPdpkH1f7ox6bA3DwWM X-Received: by 2002:a50:8e56:: with SMTP id 22mr1236336edx.268.1590113052328; Thu, 21 May 2020 19:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590113052; cv=none; d=google.com; s=arc-20160816; b=BNPa+5HKWqPnT0YQjIN6utQtgQTyQ4UQqso+NlsJYa+AHcJ91zCMDXTGyGBeGaRDbq BqhzCZEt6eR6WLU96M7Hyfelxr1VC4Q5efVul/n7Bzf7ZyXIvTLoRBvvaOq+0R0xgwaw kGL8HCUwNQ0AF5KtdQtGkMBy/+Uh7SsqG9fEplZI5gs9t09pnsFcIIFUwB0qD3x8E6V1 7/2tDqxWFObiE0dO87M8E+m+HnQDzeciZWVsDmZSE9nkb9LP1oA6lsChsmwNyanTIouK Xb/K1Z/m5DkYyMSq6BXyUurLV0/RZc6vzArrKPKbu89fIbBr6YmI7FKShXm04dJaBW/p gxhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:cc:subject:date:to:from; bh=Tdf3Gq/O77RZ1qUcjAj+CrXS3rfS6ecfqR04ZicDo5M=; b=RLGERm9gY0ZnbQyIyyybZNAVgDJPcIqpIYkRJM+aWMcrelDRh+240RZEike1XKIBW2 sCuKMzwtKzj9DCveJ5XHOdDeHH7zVxJB0E94i9NU0Ho6J9pAmrS3IXGlBeuFk4g/qs1u H7IC6juPzetoVG02PXXMV6vRaQXDCs6XR2iURk0oz3GzEhqYCmwilX1zSQNN7jHsKAYI D4PB8lMgRMBRCiU/IWmEyAkVfpC6YNHgnEQIu/7Kgxw7n0O69Q4avVQCE/X6Byf5yYIp N/Z6+iaPgwLLYgEu6rruLoSXE6owy46FOZMQpcI+fozDxHZKMi8nhl0vMJMYUH+lrtgR O2eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si3142868eje.640.2020.05.21.19.03.34; Thu, 21 May 2020 19:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbgEVCDb (ORCPT + 99 others); Thu, 21 May 2020 22:03:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:47076 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbgEVCDa (ORCPT ); Thu, 21 May 2020 22:03:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DC69FB007; Fri, 22 May 2020 02:03:31 +0000 (UTC) From: NeilBrown To: "J. Bruce Fields" , Chuck Lever , kircherlike@outlook.com, Stephen Hemminger Date: Fri, 22 May 2020 12:01:32 +1000 Subject: [PATCH 0/3 - V2] SUNRPC/svc: fix gss flavour registration problems. Cc: linux-nfs@vger.kernel.org Message-ID: <159011265914.29107.13764997801950546826.stgit@noble> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org In this second version: - #include added in first patch so new function is declare both where it is defined and where it is used - doxy comment added for auth_domain_cleanup() - pr_warn() used instead of printk - 'svc:' used as message prefix - EADDRINUSE returned instead of EALREADY - I think it is slightly more accurate. - 'cc: stable' dropped for first patch. Bug goes back before 'git' so no 'Fixes:' - minor code revision Thanks, NeilBrown --- NeilBrown (3): sunrpc: check that domain table is empty at module unload. sunrpc: svcauth_gss_register_pseudoflavor must reject duplicate registrations. sunrpc: clean up properly in gss_mech_unregister() include/linux/sunrpc/gss_api.h | 1 + include/linux/sunrpc/svcauth_gss.h | 3 ++- net/sunrpc/auth_gss/gss_mech_switch.c | 12 +++++++++--- net/sunrpc/auth_gss/svcauth_gss.c | 18 ++++++++++-------- net/sunrpc/sunrpc.h | 1 + net/sunrpc/sunrpc_syms.c | 2 ++ net/sunrpc/svcauth.c | 25 +++++++++++++++++++++++++ 7 files changed, 50 insertions(+), 12 deletions(-) -- Signature