Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1608216rwl; Fri, 24 Mar 2023 12:56:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YfZxq1v8LaKXaFVILbDxMclRik+sicKnRaTdECjIveKBHRyoWixsXycuNQ1HU/NQ0ul1p7 X-Received: by 2002:aa7:cb8f:0:b0:502:25ac:c71e with SMTP id r15-20020aa7cb8f000000b0050225acc71emr1628651edt.1.1679687812661; Fri, 24 Mar 2023 12:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679687812; cv=none; d=google.com; s=arc-20160816; b=aQJ6/kDn7NB1tCPCEnaT0V7nuoTl86VJJxAVgwdhOFpAyIMJGASn9pzagYs/xEL242 JIXbdnLrroJKEY7WW4kaxQBXBlJo0uMDw9ZMkn314cOT5e5SKCggl8yLEiaVLPol+KF1 kDGjLTV1uQqwwpjLpqKs5lprNES5ftsYylW5nrw+Fh0c2vwAznE0T0iGtgGvoBDjoLL+ 8AJi56W6mQEf3ViwdeFhx+qrr59lMIOH8ybS3/xp1FZcqD3KfPZOBoSlBaQboFTqrJFg bREShjAUj2LxW5Iq7mDHh20KMe8SpQ7jDu3pZOMiFavfrYJdHMG9JCIb1+jw2t+4gs4X ZbHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5dGXja0zvpydJsZsuWVMkoEKw4WPEINUjm2uBsr6JaU=; b=NPPWGlvxAr2ksw093ccrWeqGjLJlKst/ojkBG3dHlaVTMv+uiAyEFTp/fAMZeLzdhv VIHZ+DpuXivcD/x1urPG/ww1XlU4Qbs1TWZd25zNSvEZFaz/W1hQjRRQKVSlBKiUh2MO Ua8/k+jDOoVucAzMy3+Pq4U2jyWyA7kzs0Ggj3uECYorImSosqKRUFCCy/xc8yxYsut4 mWNsCnLmuWCVJETMhpGhGkG1dIQ0cq9Nm/2rcz04WgtTm7bQ1fIUUeubl+FoB49nezqs 6fvK8+YboBVWKZCZy3+uvYu1/jZYJjID0lRjCznhn4XdhTElLfMerS61Ufa2ZeUYJ19C pahw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hs+ldOsj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a50eb09000000b005021d251232si2922345edp.20.2023.03.24.12.56.23; Fri, 24 Mar 2023 12:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hs+ldOsj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231859AbjCXTtI (ORCPT + 99 others); Fri, 24 Mar 2023 15:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbjCXTtH (ORCPT ); Fri, 24 Mar 2023 15:49:07 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1784D59D5; Fri, 24 Mar 2023 12:49:06 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id x3so12040282edb.10; Fri, 24 Mar 2023 12:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679687344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5dGXja0zvpydJsZsuWVMkoEKw4WPEINUjm2uBsr6JaU=; b=hs+ldOsjN8SnevYkzSOcp4cUBEN4Xz3SacCSZd9EtvwORoBt+sjEovcWxwL5NRPud/ 5xtC+0z/mihjmMb9UwUJHVANr65g4XGxlUbowxfEyRQNVL2fbf3D5UnoHBKwlTNdqeca DellOa12KN2h9XCNNadej7ttPf9Gq9ezLz03YnxpIXt59Fs36Ey5JUYBA8ovvNhEviUz TMXBWFTpwMXnuTPYUzvqp5WSAIybWC7VCvuMCTc33hipAa9Cb1fYT1PSGeyqZH1VSsRZ s7RuGtEbereB47YaGeVgLLSSFeeOZFk6r68ZoYAYvf54FwKsYH/54Xofkpik0jJRGogR SPMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679687344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5dGXja0zvpydJsZsuWVMkoEKw4WPEINUjm2uBsr6JaU=; b=4oNYKaVCrwr4JYztL+Cl5b+qUkOeaKqtdiPlUc/pKZUX6NUTr6DbdYjmz/ZDsKdhuW 514SiHA1AjmfkYfhsL7PsbwetXQpicEckjmGvuCr2SmjwDmhXcYIUc9LCUlvP5iUzctg TeGMp+Dna7sc9Ign2id2fAwteYL8WrALTgvZaQYFZNNO7DCs0mV4YXEc87T4cwXp/HrE QZ2HIw9Knp0tTIpUCynPStsGsMdBx2lRaZNTrh9ZMlYzodeZ8PfkxX/vnzyIyOkVsdI7 pgRSSGOD/Ux2jhXMaEfaaGyo33P65lVkiWSL41PFrS/vNKnn+vmiyhfBUhBve78bDKWc Vjgw== X-Gm-Message-State: AAQBX9dzy/XsYjSyO8BNTaDFYYaeK80+qVI6gJd5QwgCkAxPEYArasK+ f5ODvs//Y9NGiO9UYeKkunMmE8qoBVy3+0GEEQ6M+2Kurg0tTidF X-Received: by 2002:a50:cc94:0:b0:4fb:c8e3:1ae2 with SMTP id q20-20020a50cc94000000b004fbc8e31ae2mr2144838edi.3.1679687344430; Fri, 24 Mar 2023 12:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20230324123626.2177476-1-sashal@kernel.org> In-Reply-To: From: Alexei Starovoitov Date: Fri, 24 Mar 2023 12:48:53 -0700 Message-ID: Subject: Re: [PATCH] capability: test_deny_namespace breakage due to capability conversion to u64 To: Linus Torvalds Cc: Sasha Levin , Andrii Nakryiko , Mykola Lysenko , bpf , "open list:KERNEL SELFTEST FRAMEWORK" , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Fri, Mar 24, 2023 at 9:49=E2=80=AFAM Linus Torvalds wrote: > > On Fri, Mar 24, 2023 at 5:36=E2=80=AFAM Sasha Levin w= rote: > > > > Commit f122a08b197d ("capability: just use a 'u64' instead of a 'u32[2]= ' > > array") attempts to use BIT_LL() but actually wanted to use BIT_ULL(), > > fix it up to make the test compile and run again. It would only fix the compilation error, but the test would still fail. > This got fixed differently by e8c8361cfdbf ("selftests/bpf: Fix > progs/test_deny_namespace.c issues"). exactly. It's not just the macro that had to be adjusted. > I wonder what drugs made me think BIT_LL() was ok. Maybe my wife puts > something in the coffee? $ make C=3D2 kernel/bpf/core.o kernel/bpf/core.c:1822:43: error: arithmetics on pointers to functions kernel/bpf/core.c:1827:48: error: arithmetics on pointers to functions kernel/bpf/core.c:2073:77: error: subtraction of functions? Share your drug= s :)