Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp13509imm; Wed, 25 Jul 2018 21:24:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeDn5VL69XZ620D/RyfCK+44Mj7omT87Yo4fRmF8jz2XlbcVg6mSB77jME/AK3oxcAHS8XP X-Received: by 2002:a62:a6db:: with SMTP id r88-v6mr485575pfl.60.1532579045827; Wed, 25 Jul 2018 21:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532579045; cv=none; d=google.com; s=arc-20160816; b=LreTJdcNEM3lmBBiSSvfSz3iXVuDmZsZ5AYQv3wYCn4wgyJMIKxryiqS1Dnh5rCtzj IIv+hMs27xi4yXeIMebTzV2ehvpTW6IbuZvhV90T0SY8NK21kCwdYJvUNxem/OCK/7OJ CVEU6v9QES/xUhQTVGip0DlwdcukrzDJmYbzEFdD1JRYCn2B/X8G8zY/VgVmLc/LpcDo J17bqa7UsZ7+6TNDuY0uSLJQ04GjcbCYjwusqnmEoOZSb8cSncSWBSXiQr14bNYhFuOi s4qr+Azf7UUErmOE4UkzBrVDectHGTNBQBqld0POEUwu1TOZD7zPhJJAkzwpMpc0Dv9C Amdw== 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 :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=BVS8bvmECkNwpYv0ID341tyInQbCfgPq9Pw0ItzC73c=; b=CGaXfS/ancIrNXDDe1mvYPBySAEyYGJ59MFC34IaOoHYnlEHCDF1iCvUFJhDXfDFyi FuIQzi0tFHE0kG6Tw3LG9aNWpIN22WZv7rxkycXenEZGKXAUm0Um5hhAJZ5yGqR845Oa bYpMhUyTMbWXQRYkslcX72IvVQkng21PHLD++2iFjs4d3RE77dzg81S+rJ4H6oVNq8S5 +W6Rl3lNOBr1Jjm7OE3tSUeYOX+e930csY5u8DRhsE1OR/hbxIpCVxUDQ6c73AnCd83m ix8cUOFTbJgITQvE0BFQ6YAAEUV8D7IB0wwor1hbMziKcnOECRIskTQjMIaIZ0qR2FYa rtjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si450640pfm.7.2018.07.25.21.23.49; Wed, 25 Jul 2018 21:24:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbeGZFhw (ORCPT + 99 others); Thu, 26 Jul 2018 01:37:52 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:60780 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbeGZFhw (ORCPT ); Thu, 26 Jul 2018 01:37:52 -0400 Received: from localhost (unknown [172.58.43.249]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4C615128F4EA7; Wed, 25 Jul 2018 21:22:59 -0700 (PDT) Date: Wed, 25 Jul 2018 21:22:58 -0700 (PDT) Message-Id: <20180725.212258.182134114222639499.davem@davemloft.net> To: dima@arista.com Cc: linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, steffen.klassert@secunet.com, 0x7f454c46@gmail.com, netdev@vger.kernel.org Subject: Re: [PATCH 06/18] netlink: Do not subscribe to non-existent groups From: David Miller In-Reply-To: <20180726023144.31066-7-dima@arista.com> References: <20180726023144.31066-1-dima@arista.com> <20180726023144.31066-7-dima@arista.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 25 Jul 2018 21:22:59 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Safonov Date: Thu, 26 Jul 2018 03:31:32 +0100 > Make ABI more strict about subscribing to group > ngroups. > Code doesn't check for that and it looks bogus. > (one can subscribe to non-existing group) > Still, it's possible to bind() to all possible groups with (-1) > > Cc: "David S. Miller" > Cc: Herbert Xu > Cc: Steffen Klassert > Cc: netdev@vger.kernel.org > Signed-off-by: Dmitry Safonov This really has nothing to do with adding a compat layer for xfrm, and is a bug fix that should be submitted separately in it's own right.