Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1772193ybh; Mon, 20 Jul 2020 06:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz45ohKgivR6xg5Ita0pyw74+Mm/8U9RNOTHeG5Wpbl5nFO9Y6vTR5SF01+nvm8SQQxdq17 X-Received: by 2002:a50:f187:: with SMTP id x7mr20653813edl.59.1595253368054; Mon, 20 Jul 2020 06:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595253368; cv=none; d=google.com; s=arc-20160816; b=IP86yxG7nWW1491K2PtJGcZAvjMb52LSoXFMQQLCVwZ5zvRtAmHcjzDUV/LqekBJtj VEMt1P/e30DVJpEwifge5Z2fDxScrwKlbLqe57EDEwGKhcMg6UL01MhDlrLCdEV435T8 Y3XEDbGbK0ipaT1ySMVJ5EP03GNj0zkX8bdVcasr36+6nvlw1LPoD+Eim8484MgXqdJj cMYQgyyuIy2QJ/0mUJ+hGwCa806vYZFWub8eTonvCGCARDAnd9lhSKnmaRHlc2j1QY4T YF+03oq1brRKswRXyJkmNqD56HnxADFosTrbwq3w24TrvHeZWSz/ztVcje+Y4yF5ECHw katw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=91/9pndnTWqsVd/x5b/rm4BkG7ejpPeCX9bzux8jqKA=; b=ywacgSTZCWtwcWLAUblOo5D29XJJUdexFufu5TXrnJhYCvxz+jjlfSsY5/8AcnmKVJ yaFL0iG+DFG3VspD1HAZZd4sVrD89NdQHHx2Blrnyj8fszbuZ7FfAGFuO/UyEQ0nhllB VU9ZfmUUXdt8S/yboJ5TpnOSan0zysuf1ZpLlyGXLQG1aC4/tALhSHJnAWBNWBj3GfQY R2Yvb2K62JyutYGT3fboRLWJVxjOquPFUA1K1FsAmP4KrVX9g7Lpb5jNtItfS8mHWdKW pRFS6Uz8QBuu/3ac7a5S9VSpm2ylrRM0iYDmZlszyan51dvDRFNpJOE3QD74gLZV6ftO 8enQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G00denUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si11406611ejf.599.2020.07.20.06.55.44; Mon, 20 Jul 2020 06:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=G00denUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728251AbgGTNxE (ORCPT + 99 others); Mon, 20 Jul 2020 09:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgGTNxE (ORCPT ); Mon, 20 Jul 2020 09:53:04 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0FABC061794; Mon, 20 Jul 2020 06:53:03 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id n26so18155178ejx.0; Mon, 20 Jul 2020 06:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=91/9pndnTWqsVd/x5b/rm4BkG7ejpPeCX9bzux8jqKA=; b=G00denUDqg+DRYUuTYfU8AzJIpYwk2splRc5xVzRhR8STQ5CoAii5gsx3rM4EUOVXY n0gGj0SXXRHgr0Fzob8YxLLDiXuxLkkKmktseffhOpzNR4HllVq2/a6FUO8ohjb0RKDJ pH2ewwXax5sW7gxH97kwPMXwKSlZ6w/1P58qkJXw0xfx+WdpLV7T3/vAPqqnoNjO/AY2 cVE3bEgpqOm9gZA13nEyOEHWaRNeuVEjIVd6ewfQnSlVLD7C/U7lOQNwVgNU090+wrBE U61MIJM+VC9wG/QCY08Ypi3oc/V1tNY/nkTZQ/hLXZ7dpAWbe422v2trQtKMELtsyRCX wRqA== 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:content-transfer-encoding; bh=91/9pndnTWqsVd/x5b/rm4BkG7ejpPeCX9bzux8jqKA=; b=jOqNHGE03mwm8d6Cq/8L9vtblRk86JCvOosam4q1zbtBwy2iwXqOlZ/lRxunzafhhB 2gA1XpbTXp+Zucu//UfjHTOg++45CyaQqeeV3hyTYt8ghWli4N57wBQQfVtwUewBuC+m Msax+End9TgVDWuOUy3BUFpShHJ4ld3fnGMkopY7gvdbm3rBlWOZLfyryKS/xAHS2FiF 9+IVD+oTJh99Q9nyw98xahL9SOEoeuzTCXhZDfQfcYm/l0nuE3ApQ1iayrirZb4rRq41 nTMUuDjG9s1Hlvj2HYNSCXOFk4Mtr0SjOhfHaxbGcTwpwbQnXpvex+02b0eJHxZGUKc8 Az2w== X-Gm-Message-State: AOAM531+aNBsxCAqtTMJwJWXIkQRXnBd3+3I6p6m2r3Sd+4POBACxOz4 kfJGD4EkH5OAATHAM9CCXKbhhpTNTH1Co+uCKkU= X-Received: by 2002:a17:906:2dd2:: with SMTP id h18mr20283149eji.504.1595253182568; Mon, 20 Jul 2020 06:53:02 -0700 (PDT) MIME-Version: 1.0 References: <20200718091732.8761-1-srirakr2@cisco.com> In-Reply-To: From: Willem de Bruijn Date: Mon, 20 Jul 2020 09:52:27 -0400 Message-ID: Subject: Re: [PATCH v2] AF_PACKET doesnt strip VLAN information To: "Sriram Krishnan (srirakr2)" Cc: Andrew Morton , "xe-linux-external(mailer list)" , "David S. Miller" , Jakub Kicinski , Network Development , linux-kernel , Stephen Hemminger , "Malcolm Bumgardner (mbumgard)" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 12:27 AM Sriram Krishnan (srirakr2) wrote: > > +Stephen Hemminger > > Hi Willem, > Thanks for looking into the code, I understand that this is more of a gen= eric problem wherein many of the filtering functions assume the vlan tag to= be in the skb rather than in the packet. Hence we moved the fix from the d= river to the common AF packet that our solution uses. > > I recall from the v1 of the patch you had mentioned other common areas wh= ere this fix might be relevant (such as tap/tun), but I'm afraid I cant com= prehensively test those patches out. Please let me know your thoughts Please use plain text to respond. HTML replies do not reach the list. Can you be more precise in which other code besides the hyper-v driver is affected? Do you have an example? This is a resubmit of the original patch. My previous questions/concerns remain valid: - if the function can now fail, all callers must be updated to detect and handle that - any solution should probably address all inputs into the tx path: packet sockets, tuntap, virtio-net - this only addresses packet sockets with ETH_P_ALL/ETH_P_NONE. Not sockets that set ETH_P_8021Q - which code in the transmit stack requires the tag to be in the skb, and does this problem after this patch still persist for Q-in-Q?