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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58568C433FE for ; Fri, 29 Apr 2022 20:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OIRbJdEuvsmZBGQqNH+lfXR+XubVj7U8y+YH/w1x6NQ=; b=hTrCkNHmK5qJG+ HfINJ2xJy2wZvb2bmfdrCUXMucBkf3pIcPvIWZXX3hBCS5PEIVLZXczgLtGYRjt5dgJi7hf1ee7mN P4oNy7pJ5CmSicOiiTtJi7VrXW+SlE4pi1N39uvyKutEPc5HhijLt2+CkWhP92P7gUGc37eARN2ER U9SNy3eBZA8I5oS13+Mnj2dqvwd2NcvTmxvqFpoIwGn2oZQOF30sSgFBPf/HpM7gv8apn8AJoIFTb J4bOdpMXwKZZH5kGSNRyBIE4jLKIOeJDvoerb7lwZVgk/16G7Vpx8wDgdRPigwo1/LUXByPaA1nNE WFRsu2VFzbziG5bdF18g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkWvV-00CPev-JK; Fri, 29 Apr 2022 20:09:17 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkWvS-00CPda-RL for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 20:09:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651262952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=94a8sGRLCWduCHgjo1sU1o0PAADf7AEfjaAegT1GkVY=; b=jGqfgtxP0kzRxuYbrM7LNrImcQM7SwXlPZ4Ppd7GjK5L1pvZDmTjtdeXwHCD3zuuPx5WYD VufavGN1RorIfKM2PmZUM57a7t5p3n5VRLVXLF7pWEjWj5Oq8ujTtnB4gy9FytaG5h5K/o jGbxt7nERJ2bv4qHU138vwejyDwoS+8= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-639-9WtUpYzpPa6meCvGsIt4Dg-1; Fri, 29 Apr 2022 16:09:11 -0400 X-MC-Unique: 9WtUpYzpPa6meCvGsIt4Dg-1 Received: by mail-qv1-f72.google.com with SMTP id bu6-20020ad455e6000000b004563a74e3f9so6736702qvb.9 for ; Fri, 29 Apr 2022 13:09:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=94a8sGRLCWduCHgjo1sU1o0PAADf7AEfjaAegT1GkVY=; b=JpXihsyZJyy50lBzqgewRPsk3aJCGQVVL4lQRQeNp54IghJU7Oj3DcIqVb4rCBWZfr 7oXujysA42IxIsGCfszFXB4UcZNS0rU6puZDWSPvM+3n0E+anUp6vNlLhiGgCOeUUPOB 943qSVslAmRsZacd3iK/iJo5BfHFrjRP2Q75car8VJ8KgRQR+qpCbClQJ1u1SA1B30nZ YbHcex+STIRIasud/d2vxNAJEX7KFpSUJ7ueTLUV/DPNQCQqWZFj41gu8TzDcFHD3+Yl f78Nddkhkg5QoIrh5dZ98bVr4rX4Rfkp+KrvVzkbtN6X3JUe7qvMcwg01HdsQSTdKAqt AUaA== X-Gm-Message-State: AOAM5303dWjzberWh69p/j3IqqNVIhrUU6J8FsDaSO5ozVAzC1oedFPi bXZAUGYhEj6hRnj0sZrnZfAjIdb2dlGrKQr9N1AKRsETPY5ftS2OtOplWqjeS1yyNJ67zZYCVcI 9SLzy1GJCPetOQZIjSp/eEuyt31TWU1FrTto= X-Received: by 2002:a05:622a:34c:b0:2f3:94ee:b208 with SMTP id r12-20020a05622a034c00b002f394eeb208mr1033880qtw.132.1651262950951; Fri, 29 Apr 2022 13:09:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCVWUepBF/5vP2n4C2hA4tRLUq8hCupOc+/Qlv6mn0fUg0kxKZ2bvjnx8BTfugNgXoVKPi4w== X-Received: by 2002:a05:622a:34c:b0:2f3:94ee:b208 with SMTP id r12-20020a05622a034c00b002f394eeb208mr1033783qtw.132.1651262949762; Fri, 29 Apr 2022 13:09:09 -0700 (PDT) Received: from treble ([2600:1700:6e32:6c00::15]) by smtp.gmail.com with ESMTPSA id y62-20020a376441000000b0069fc13ce1ddsm79116qkb.14.2022.04.29.13.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 13:09:09 -0700 (PDT) Date: Fri, 29 Apr 2022 13:09:05 -0700 From: Josh Poimboeuf To: Peter Zijlstra Cc: Chen Zhongjin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, masahiroy@kernel.org, ycote@redhat.com, herbert@gondor.apana.org.au, mark.rutland@arm.com, davem@davemloft.net, ardb@kernel.org, maz@kernel.org, tglx@linutronix.de, luc.vanoostenryck@gmail.com Subject: Re: [RFC PATCH v4 25/37] arm64: bpf: Skip validation of ___bpf_prog_run Message-ID: <20220429200905.yjwxorrkd4u5rdmn@treble> References: <20220429094355.122389-1-chenzhongjin@huawei.com> <20220429094355.122389-26-chenzhongjin@huawei.com> MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jpoimboe@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_130914_982392_7B9D1173 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 29, 2022 at 01:13:40PM +0200, Peter Zijlstra wrote: > On Fri, Apr 29, 2022 at 05:43:43PM +0800, Chen Zhongjin wrote: > > There is a jump table encoded in ___bpf_prog_run and objtool-arm64 > > can't deal with it now. Skip validate it for arm64. > > But, but, but, an earlier patch did -fno-jump-tables! IIRC, -fno-jump-tables is specific to switch statements but this function has a C-implemented jump table. -- Josh _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel