Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp901087pxb; Fri, 22 Apr 2022 13:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdXBOqribgTgRM1S97uv+gOVB8d3R7JTCpYH2xVcTWHzyyLu4WwPLeWTMioEYeIoFs9Jzy X-Received: by 2002:a17:90a:58f:b0:1ca:7a28:273f with SMTP id i15-20020a17090a058f00b001ca7a28273fmr7446773pji.62.1650660652685; Fri, 22 Apr 2022 13:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660652; cv=none; d=google.com; s=arc-20160816; b=Xt+eOy8N8BPz5C5F5K32eaTowAMlpVprNJ0aQNugKYSt0yWjrBCFFRYKt55BRiYojj d61J6/BaB24CSQJbwG7P2cyOpKeF5Hf7+bG1tzJD0Y3vRbOP6mfHCfRNhDA1VzXNk36G WSirOEwCf9B2hn3xTn63j4UGaXvhl7AwaWS9jBOIfgf3TP3vp7CVIFurvM7dkIKYf235 mVqYxhlqTYzOqUEPN5s7eZTcPo6EtwOgY0tflCwfUqyc6d12DHwwjQ520GJrNsDF1gir q0VZJuh7MXNGMgMRvokgC31z1G9BgLC21BzMTIxWcfq52/CPvjpkV0ThFbsq2Kp2AmSt wn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:message-id:subject:reply-to:cc:from:to:dkim-signature :date; bh=4GTttWDfJYdIyN4JnjdzUqDEPsjVASx62ghec4ZucVs=; b=oY3+0OPbUIlYeHT1CSOppAWbraOQ9/rwMw3Xd5a5q1kGtKF6QltuUqSOovfje8G+32 n+JRCz49GwF8qZ4+eiSGW7hdqhOaIsIJH8xH9NF9JR9Tf0EYP4ykjj6XyNNLGAI0ARGr YZsr3vnvVNgirDWyJ/9JaHtKK5wejGoSob8/H5hFZQqsgJVBDpd3iXS1BIgeLRIhHHXY ZsqLPolLTcTQAx/tt+53tC8MTNi6qfDAerJrFR3ePnzFn0tn31nDtv2jZSQuJfPtmb8P RY598sf4KJ//A/MZzQHgeeO8ZhggSs/E6DzUj0hk2KpVg3wiy9cNwF2SFNbdFXo12DWK eJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail2 header.b=qL5dFXPh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h28-20020a63385c000000b003aa68fdbfdasi9119786pgn.93.2022.04.22.13.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:50:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail2 header.b=qL5dFXPh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 674FD2060DD; Fri, 22 Apr 2022 12:43:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383450AbiDUAli (ORCPT + 99 others); Wed, 20 Apr 2022 20:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbiDUAlg (ORCPT ); Wed, 20 Apr 2022 20:41:36 -0400 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A1E205C7 for ; Wed, 20 Apr 2022 17:38:48 -0700 (PDT) Date: Thu, 21 Apr 2022 00:38:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail2; t=1650501526; bh=4GTttWDfJYdIyN4JnjdzUqDEPsjVASx62ghec4ZucVs=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=qL5dFXPhkh57Vcc1BrM9Ufz2NB2toIFkmiwNvdOBmQsiUPPnyoYvsxUXix28fbFrn 7fKeW20kIYi4WGviDH1bM4V3gw6Y/Hpitp/AyzKDGg5yVoR9LpBj9/2uqsGfF9gws8 +ZDJ2I+Pn0fXdvyj/UU/fko/SQyA4tUjagb+pGCOCxU5E52oa9q9OcNcOIEanXAXuO 3WoHGAE1Gw8qH37qvBFyhyhBk/GLO1+baJZ1P24XxTukwvBnF5oB74vqh+UDBHDca5 iq5jbD1qeYj1Nd6cMoPDz2YwQzO/iSP/OQL6XO0MIl66HhkyPKu9CWfSnW7eeE30W9 PrjYR3TxdJs5A== To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko From: Alexander Lobakin Cc: Alexander Lobakin , Maciej Fijalkowski , Song Liu , Kumar Kartikeya Dwivedi , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 bpf 00/11] bpf: random unpopular userspace fixes (32 bit et al) Message-ID: <20220421003152.339542-1-alobakin@pm.me> Feedback-ID: 22809121:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This mostly issues the cross build (1) errors for 32 bit (2) MIPS (3) with minimal configuration (4) on Musl (5). The majority of them aren't yesterday's, so it is a "who does need it outside of x86_64 or ARM64?" moment again. Trivial stuff in general, not counting the first three (they are 50/50). From v1[0]: - use *___local struct definitions for BPF programs instead of BTF_TYPE_EMIT() and ifdef-play (Andrii); - cast uin64_t to unsigned long long to *really* fix the format literal warnings (Song, David, Andrii); - collect Acked-bys for the rest (Maciej, Kumar, Song); - adjust the subjects to match their usual look (Andrii); - expand the commit messages a bit for 0008 (-Wshift-count-overflow) and 0010 (-Wsequence-point) a bit to mention they actually mitigate the third-party issues (Andrii); - rebase and send to bpf instead of bpf-next (hope the first three are okay for it). [0] https://lore.kernel.org/bpf/20220414223704.341028-1-alobakin@pm.me Alexander Lobakin (11): bpftool: use a local copy of perf_event to fix accessing ::bpf_cookie bpftool: define a local bpf_perf_link to fix accessing its fields bpftool: use a local bpf_perf_event_value to fix accessing its fields bpftool: fix fcntl.h include samples/bpf: add 'asm/mach-generic' include path for every MIPS samples/bpf: use host bpftool to generate vmlinux.h, not target samples/bpf: fix uin64_t format literals samples/bpf: fix false-positive right-shift underflow warnings samples/bpf: fix include order for non-Glibc environments samples/bpf: fix -Wsequence-point samples/bpf: xdpsock: fix -Wmaybe-uninitialized samples/bpf/Makefile | 7 +++--- samples/bpf/cookie_uid_helper_example.c | 12 +++++----- samples/bpf/lathist_kern.c | 2 +- samples/bpf/lwt_len_hist_kern.c | 2 +- samples/bpf/lwt_len_hist_user.c | 7 +++--- samples/bpf/task_fd_query_user.c | 2 +- samples/bpf/test_lru_dist.c | 3 ++- samples/bpf/tracex2_kern.c | 2 +- samples/bpf/xdpsock_user.c | 5 +++-- tools/bpf/bpftool/skeleton/pid_iter.bpf.c | 15 ++++++++++--- tools/bpf/bpftool/skeleton/profiler.bpf.c | 27 ++++++++++++++--------- tools/bpf/bpftool/tracelog.c | 2 +- 12 files changed, 53 insertions(+), 33 deletions(-) -- 2.36.0