Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp53255imm; Tue, 21 Aug 2018 14:26:04 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyyJdkcP+hyxqRc7SmNUeFUUWiS39Oyf2qcqnmZM0ZtlohHC7hUF0itiLhh5X2uw08LcLAA X-Received: by 2002:a17:902:9883:: with SMTP id s3-v6mr51344544plp.194.1534886764697; Tue, 21 Aug 2018 14:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534886764; cv=none; d=google.com; s=arc-20160816; b=AqxvtUdMBcrkdk6ffnfysyTHPbDP8plb7vDVO61kIdEk/oAEDddb+N05Ah5oYSsI9S 0CrjBLwAN/rLBitg0Qf+sNjEX3+LSI6IfCYyuK5BeeTZqaFWoNCBpyHYjDjeKreigBSi TQQsKMgV6Uqi77iVkRfcuQ9ggRmI6/lfc653qSkgVxU7iml7SOFV4JJD3fhe1hvO8Ujf /cma4A5+EWxHUcUvGzv8bNKmTWk+lOAYI1Hsfm/PNWoyypP+TlTQQIp9/MgNDM55tP19 tR2CQ/D6Y/qAWFbkVx6Bb0CWnO83Ra1KAIFb69O6R3QJIuk4hCSLXIUqhonTQHdN31BW 9VRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:arc-authentication-results; bh=oGdKo5I01ekMYjbUPJcFqjEHzojjnSraSHGyDTXcqP4=; b=g+UnOltiOvXktsqBhoGlaswfnDtRIe5/3vfz3vQC1iCD4OZ2rfU+Z9MD59qw8Ad3DD DCZW3fmMiTo+KgK09s0cXIFtLJ+YaJizex6K+VKvbhRV+sXFSR9Ye8Wbz1EyO5HmXZ5E QvI0YJfRAOrZ7h4QxhZxa5qf18A27wVM5BLr6WPCU2Mq/mUnu5x6MZp6wdg6sUcAlbSw z/eyazLZ++fsgXXZmfWmzH2eseLj7sUnQLjedJRfG5u8Dq4ien2WuRHymVWyPkYLAlj8 9Aukx44LZX85cuDx67lu0dFi4eiZkV2fGZpQl7maE3rO4AQmj0E5N+Zu0bY0xvSjiYoh BjIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=U7aLtQsn; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=eMFHJA2P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2-v6si12931675pgh.396.2018.08.21.14.25.49; Tue, 21 Aug 2018 14:26:04 -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; dkim=pass header.i=@fb.com header.s=facebook header.b=U7aLtQsn; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=eMFHJA2P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727591AbeHVAh2 (ORCPT + 99 others); Tue, 21 Aug 2018 20:37:28 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34818 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbeHVAh1 (ORCPT ); Tue, 21 Aug 2018 20:37:27 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7LLD6iJ018017; Tue, 21 Aug 2018 14:15:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=oGdKo5I01ekMYjbUPJcFqjEHzojjnSraSHGyDTXcqP4=; b=U7aLtQsngTQNadH83jqF6Zg8iL35QkNqfz5Sy2xoxjmQoDVgm+G648aync8bYB60Jhlc LK8cAAZyqWrLZpd9KZDPakeq57LPlbEoSILXeGigPfbMYfBqBRxamG9B4CKsq2l5i7hf unKK58wNTDWnJTSD+DLerKZuVjLxNNB4AHM= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2m0ss9r4a9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 21 Aug 2018 14:15:35 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.33) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 21 Aug 2018 17:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oGdKo5I01ekMYjbUPJcFqjEHzojjnSraSHGyDTXcqP4=; b=eMFHJA2PJM3goh5SwY0SWOmXrjZIAOLXJevoXLJh9w1rHRBPB7bl9xfSm1/bLfjU5uXzviNIrlDWTS2aH7Cpmoz73cfTILFW6iZ/ovzNpDFsh1ZanZvdUjimyvBF078iPoMxMVUKE7A9ECAGDndhBt2mJin2xFLVV7aopBbbHks= Received: from doronrk-mbp.dhcp.thefacebook.com (2620:10d:c090:200::4:3df0) by SN1PR15MB0479.namprd15.prod.outlook.com (2a01:111:e400:c422::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.23; Tue, 21 Aug 2018 21:15:30 +0000 Date: Tue, 21 Aug 2018 14:15:22 -0700 From: Doron Roberts-Kedes To: Dominique Martinet CC: Tom Herbert , Dave Watson , "David S. Miller" , , Subject: Re: [PATCH] strparser: remove any offset before parsing messages Message-ID: <20180821211504.GA76892@doronrk-mbp.dhcp.thefacebook.com> References: <1533854411-28184-1-git-send-email-asmadeus@codewreck.org> <1534855906-22870-1-git-send-email-asmadeus@codewreck.org> <20180821145321.GA44710@doronrk-mbp> <20180821193655.GA15354@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180821193655.GA15354@nautica> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [2620:10d:c090:200::4:3df0] X-ClientProxiedBy: MWHPR04CA0108.namprd04.prod.outlook.com (2603:10b6:301:3a::49) To SN1PR15MB0479.namprd15.prod.outlook.com (2a01:111:e400:c422::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfb57bae-b13e-4536-94ee-08d607ab39e3 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR15MB0479; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0479;3:djIyY6mqSJ4XphuYgmgwfNHGQvjqwY+60kn4unUA3grhRYpH8N64QL8XUrJHqPopApQKMGnb+HsQaprGlq2VgVvboyZ9eVxLNly3N4PY5Rq3nKIKSSDsh+K5S91HxyogDUTC89Ru+DOzFxBjPBL1bBcUeYi8749RdTMUX3zayk9Bt93KxQ1UBGMRnedpH9wCteyuWS/FkxgNbkALE3EuxHiJInHHLqIFYX0kstPW/SCYTePIjPcIqkPkp272t32A;25:Gy7xNhilJ59G2YdPijgKyQ/G2N/zTOQNSOu2WVws4/YdrUkrCCN6p+9PGFisIjOA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K/32aKvC9ER92D;4:zUdYqG/mOMagHNbPqhlfKajUKs/iMEqFJHpfg2Rn1iYWvA71wyGEIgBoXTBu/5Tcf6XBhda6gBneFv8uSONYCTXdRJgMgC+dUQtEmanMjdw08d96Sld/+WHXamTwiatNBuA2OPLG9a2MII6m1wVMfqW2ambz81L49sSHt9EfSLhbfzZpkVc3bUFix9nEUlEvWxEao9Au1ab2j8PTx728hH0BrYlAzfzzqUm3mj4pb5YiOdBlsA2qQDeB11RxUiEhtVgS3iUUKNvcfQUAzM/8cQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(11241501184)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201708071742011)(7699016);SRVR:SN1PR15MB0479;BCL:0;PCL:0;RULEID:;SRVR:SN1PR15MB0479; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(346002)(376002)(136003)(366004)(39860400002)(199004)(189003)(6666003)(6246003)(8936002)(5660300001)(68736007)(33656002)(97736004)(4326008)(25786009)(6916009)(47776003)(106356001)(50466002)(105586002)(81166006)(7696005)(93886005)(46003)(52396003)(229853002)(52116002)(16586007)(316002)(58126008)(476003)(8676002)(53936002)(11346002)(81156014)(386003)(966005)(54906003)(305945005)(23726003)(55016002)(6306002)(1076002)(486006)(186003)(76176011)(6506007)(16526019)(7736002)(9686003)(478600001)(86362001)(6116002)(2906002)(446003)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0479;H:doronrk-mbp.dhcp.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0479;23:EZSDQxi9SNPL9fg5BCd4XwL2z9NEqqxCwxzQeThWs?= =?us-ascii?Q?Mxxe0AF/sneOTeRGG4MXuDoXwo+dZQbd4Cb704ZVmtOCZeK1fYFNdx4Drq02?= =?us-ascii?Q?qjN7vbYlan8NMfIaD6r/c/eWpzCd8xAbE3LT+O5WBPdDhA1Kb1/mbw5qO2Ht?= =?us-ascii?Q?Xt+tnnE45PGhoha+rd4S5EjKWhZG37xbTmXmvFa1nDsQEpqdpLZi97wdF7SE?= =?us-ascii?Q?6LPrFrzb2USEDB7+1TVxD3FeJ6lTScClNKwVZ73tjdyz3UwLbxgYaNCSnaGK?= =?us-ascii?Q?B8ckf+h5vLkfXVzcAnfARqx6Jt4dcqBWCLwqkBL+g+IIPk51hX4E59ldlrNs?= =?us-ascii?Q?ugj08qLGFYL5In1QIjXw43N95WTkyrhc/bP2esdahPVFXqOuKgflh/uM+lVd?= =?us-ascii?Q?RXvnxCSq5QJLl7fcKSBDH4R57iAyMXA18MQa7FDstxNKFVs42g/i0VvzNnlW?= =?us-ascii?Q?dK1YC1wBoZColM2cpHElr+O2Spr0JwHGUXB2tF5EFL9+KO/nXKsov0symhCZ?= =?us-ascii?Q?FlMaICRst8u0zbljXwmZe5UxD6YXhA0xhVeIx9pyOQ1HtIfBIYxOpv2UHgGD?= =?us-ascii?Q?8GXQRzAyN8ul5tL+WT3x5c2oytBw5ROBrQKq/xzlp4QLYxpuEocJPvAcIEhh?= =?us-ascii?Q?t00lkddpeG3c9AFKICkh849eOIdwTH2nfnbcVwPANlnpWj7a+ykTqRuugFxa?= =?us-ascii?Q?/NA02hpFjPOmXSdHmiwRXv9u/tswMCrYYJ7FN56Lw9OLo5BwfdHdrm1Zjf+R?= =?us-ascii?Q?ksCFLn4uhoy0xYILPixcpPQeKMnb7Uw83ZfdRamu6x3Mp4BG2JQt0Sm/0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-CrossTenant-OriginalArrivalTime: 21 Aug 2018 21:15:30.5584 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfb57bae-b13e-4536-94ee-08d607ab39e3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0479 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-21_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2018 at 09:36:55PM +0200, Dominique Martinet wrote: > One of the solutions I had suggested was adding a flag at strparser > setup time to only do that pull for users which cannot handle offset, > but nobody seemed interested two weeks ago. I can still do that. This seems overly complicated. > That's still suboptimal, but I don't have any better idea. > To properly fix the users, I'd really need help with how bpf works to > even know if passing an offset would be possible in the first place, as > I do not see how at this time. Thanks for clarifying Dominique. It seems like we mainly agree that the proposed patch is suboptimal for existing clients of the library that use offset correctly (tls). It also seems like you've identified that the proper fix is in bpf. Regrettably, I cannot help you understand how bpf works because I'm not familiar with that code. As an aside, I would recommend reaching the netdev FAQ page: https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt It contains helpful hints about how to format email subjects (specifying net vs. net-next) and determining when trees are closed (currently closed).