Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1298689pxu; Fri, 27 Nov 2020 04:27:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBaUN9ZeFvj11ocZMI9qVy0I3Yjdb/F4l5lLm4qAunDl4N8eoCb0Gy1nLz2Ol4ztLfNmRV X-Received: by 2002:a17:906:2b95:: with SMTP id m21mr7716782ejg.134.1606480046470; Fri, 27 Nov 2020 04:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606480046; cv=none; d=google.com; s=arc-20160816; b=vrCcJ53TZzSiecCwnlKUcGmaQvtwTeuknxyMBMCiOKQFq0a8qhX1eVvPU4qVM1+lHT 4Y/MG5HK+QrCweLdD0zy/tjzAXr5KOg/kXdWUv2XYOe8jwx+nbRtGuO8Voff6nRxLIka TQleMiXayNyAcbKSoZjy1eA0Nd3F5+jZN2Jzj2z5nwC8d/8bvK+Z3/UX5nPrPsufMQYA tftds7H8d4vE3+6mYytU1ppiwtsP8qtx1igxF2QxDr4qIKDqDhGU9D9DTw46wi/fql6I Qma8rde+8+wuOEJHNXpLMnI9Ky8IILRzmxJ7buq54XrSWL8gADrwJ7UeGseLqcjYxu5u Ec1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=INnUE0sM05L2oreqITOkcAXoqFYcu3Qaos8NOOfhOTQ=; b=HDREu8PTryYaggrndwRZvTf9zn+i6X3278hEIZCFy8dVEo8IG5pHy9qm2JSgQBbeNF bkidafB18mI2sndp2ZSsVuYDCYG9bHprcENHVYcVZvY41fH3JckiH5XpSqHtWsf15KAr ZAt9KCLpBGGKSw/e7s1E+JZGcHXOXM6U0R5TSKGwc8Fftq8Tu15RqQdhA/5qjAOTk6Cp XSOZIp7FXIoT9AZZrczuA3yANySbeWb1iu7L2UkFb6A9pVwVAyQT1dIq9Ltf3alHl+cY 1BfsZU1VdJnEJ5ifQn154Sy9mYBey5gFKpMm6njD7me5h0+hmN+iBZO5Il+LZ0pc7fi+ OQQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RbEhXeDC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch1si4302672edb.110.2020.11.27.04.26.52; Fri, 27 Nov 2020 04:27:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RbEhXeDC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727431AbgK0M0s (ORCPT + 99 others); Fri, 27 Nov 2020 07:26:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbgK0M0s (ORCPT ); Fri, 27 Nov 2020 07:26:48 -0500 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A17C0613D4 for ; Fri, 27 Nov 2020 04:26:48 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id o3so4531028ota.8 for ; Fri, 27 Nov 2020 04:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=INnUE0sM05L2oreqITOkcAXoqFYcu3Qaos8NOOfhOTQ=; b=RbEhXeDCcLG6KFDkofW6vC2lhXZqLixRKztRPhHHADZRxFmCHKdxew/X6buNWyeQPm SYTCpiakjEpW+R8ggJqq0BhGj1sINRcXMaxNZK9Tk6K2uGLRZup8ZfiiYKo5zWSddhXs ZkaMa3TBB4WEa3vG8H4QlHbg76bimbJQoWPGEYk33YfOdQ1tFIC0mZRG4eyAW1mh6P1T kfYL+YsACuuilf3sSPfHlVGeAWtM+oyTeQkb3wiXYjHLho1D1p33cNvAaGnZapYl8OaB X8jFOlYbYYiWOAx24QFMufWRlk5KCUEDVZhTzFQN0nL0KeuP9RNuurTu6UfQWwl0y9oc hPdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=INnUE0sM05L2oreqITOkcAXoqFYcu3Qaos8NOOfhOTQ=; b=JoLu9hpjamwaXqS54oXURAkP5pNpG85dzx+WZwHLMGNXKgbKVkw8dX0dFTpvy5SsKL wp7KlE4dn3bmT10v94GcLaWlhIPfsBf31dsCTlYq7m9p79H1em6prt4aeq+FjVCNsuw2 R2TMtchkqF1AdU3hwszhQiUkAG9/F0bnbBbzAndJ0R/l9cou2U1BpsJQLX5NxMPGQ7Ll /8kQZmcZUlfmMFIhyXfGlhfc5gc0ww/PhF7/REzbjw0BgqMrfy7ysc4cPjJ94kTpXFGK 2t7kqYWK5s1YMhdiask4fl2fRuVqZNZ1ZVihnajsLT3fkdbUPuLE4glwmf1emrVboYBn 2kww== X-Gm-Message-State: AOAM533KU2jFWv6OyLWbqu3Q+uJoDgCv5inrSMvrArjaUR1w04IhJWAS zGj9vYDhxXaBvbRhAtgjKh6CIO/L2cYWexhOTUF/1A== X-Received: by 2002:a9d:7d92:: with SMTP id j18mr5921417otn.17.1606480007166; Fri, 27 Nov 2020 04:26:47 -0800 (PST) MIME-Version: 1.0 References: <20201125173436.1894624-1-elver@google.com> <20201125124313.593fc2b5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: From: Marco Elver Date: Fri, 27 Nov 2020 13:26:35 +0100 Message-ID: Subject: Re: [PATCH net-next] net: switch to storing KCOV handle directly in sk_buff To: Willem de Bruijn Cc: Jakub Kicinski , "David S. Miller" , Johannes Berg , Aleksandr Nogikh , Andrey Konovalov , Dmitry Vyukov , LKML , Netdev , linux-wireless , Ido Schimmel , Florian Westphal , Willem de Bruijn Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 26 Nov 2020 at 17:35, Willem de Bruijn wrote: > On Thu, Nov 26, 2020 at 3:19 AM Marco Elver wrote: [...] > > Will send v2. > > Does it make more sense to revert the patch that added the extensions > and the follow-on fixes and add a separate new patch instead? That doesn't work, because then we'll end up with a build-broken commit in between the reverts and the new version, because mac80211 uses skb_get_kcov_handle(). > If adding a new field to the skb, even if only in debug builds, > please check with pahole how it affects struct layout if you > haven't yet. Without KCOV: /* size: 224, cachelines: 4, members: 72 */ /* sum members: 217, holes: 1, sum holes: 2 */ /* sum bitfield members: 36 bits, bit holes: 2, sum bit holes: 4 bits */ /* forced alignments: 2 */ /* last cacheline: 32 bytes */ With KCOV: /* size: 232, cachelines: 4, members: 73 */ /* sum members: 225, holes: 1, sum holes: 2 */ /* sum bitfield members: 36 bits, bit holes: 2, sum bit holes: 4 bits */ /* forced alignments: 2 */ /* last cacheline: 40 bytes */ > The skb_extensions idea was mine. Apologies for steering > this into an apparently unsuccessful direction. Adding new fields > to skb is very rare because possibly problematic wrt allocation.