From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A79BAC4646F for ; Sat, 4 Aug 2018 23:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56C42217B4 for ; Sat, 4 Aug 2018 23:33:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56C42217B4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davemloft.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729724AbeHEBgL (ORCPT ); Sat, 4 Aug 2018 21:36:11 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:58422 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729600AbeHEBgL (ORCPT ); Sat, 4 Aug 2018 21:36:11 -0400 Received: from localhost (unknown [172.58.40.233]) (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 8F1871406B1E0; Sat, 4 Aug 2018 16:33:49 -0700 (PDT) Date: Sat, 04 Aug 2018 16:33:48 -0700 (PDT) Message-Id: <20180804.163348.896647113172060665.davem@davemloft.net> To: dima@arista.com Cc: natechancellor@gmail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, herbert@gondor.apana.org.au, steffen.klassert@secunet.com, netdev@vger.kernel.org Subject: Re: [PATCH 4.4 106/124] netlink: Do not subscribe to non-existent groups From: David Miller In-Reply-To: <1533425198.2679.148.camel@arista.com> References: <1533424322.2679.144.camel@arista.com> <20180804232102.GA3982@flashbox> <1533425198.2679.148.camel@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]); Sat, 04 Aug 2018 16:33:50 -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: Sun, 05 Aug 2018 00:26:38 +0100 > Thanks for the testing, sorry again for the breakage. > Will send the patch shortly (with sizeof(unsigned long long) instead of > hard-coded 64). Hopefully, not too late. 'groups' is "long unsigned int" not "unsigned long long" long unsigned int groups = nladdr->nl_groups; And nladdr->nl_groups is specified as "__u32" So the size of the relevant bits is actually strictly 32-bit. This makes also the "ULL" in your constant specification incorrect as well. So much crazy stuff going on here :-/