From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796098000; b=SVOHa2NOKq0WHLukAZIDEg+ij8F8EsCeI2sH5gxXIyIvXbAa7RcwNFqsEgG6M6zS1PSt yfIg2nWKP4jnoN5qD/KPmnbB1xpf+zdM9Jfdtc9MU14dGdv+JYn6s2fb0pYUDRPKU5B2v OIUbs7XQAwAhFsqVC2VYQpEqijzwk0wvo8aBZQC7zuW1ia2jmoj12REX/6qrw41Td5W32 djha+0HN60f87QJg8BsQUqsDFkXKXlTFQCqtfWJBamUhGsISO5R8/WU13g+4hnOVOCfTx lT3TGg0GDZudjs4PR2fcg3b9V5gP2DdRuFXHPANq85TWljywLQGBSZg8NWg4hVaN9bA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796098000; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Content-Type:Date:Message-Id:Cc:Subject:From:To:In-Reply-To: References:Content-Transfer-Encoding:MIME-Version; bh=SFJDS+3BFfrkJl1GWSkPzmcyIz9+NMA60UzVOsJOxeA=; b=F5+QMaJfsfX1IF2u3dIbIL3lFy2gOcIn0hRJ8ArthUsOut0oLDvOFkumrqvCD6eWzmgK Uvm2vbvLWsZMfCtPeoIEFJk9J7dhBJR+RYUORd3OrFH9CwT+gsXx5vAf8auQx9/nVtFK8 Gtd8wYBGy1KhriZVFGagDp1FK6n8Vgd8K8/nPur0yKOiYQ1XeJtyzBOaLF03XUodZJRKW Jp7u6ki248+YksCvUWWCNkhbtXy1CwtrVOBBtGzzsIZ6hHsKKAnvxRGaOk+sEEpfCoRac Ykr97qffDvFIKEa0y+XCdwEZL6JdBiTGOd9ghNJICuyJ0A5UeoS2TyfbIgjJRdD5mwA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hrfafG8+; arc=none smtp.remote-ip=209.85.214.178 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36F0A606A33F for ; Tue, 1 Dec 2026 04:06:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 36F0A606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hrfafG8+ Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2f048476ab9so77756995ad.0 for ; Mon, 30 Nov 2026 20:06:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796097999; x=1796702799; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:from:to:cc:subject :date:message-id:reply-to:content-type; bh=SFJDS+3BFfrkJl1GWSkPzmcyIz9+NMA60UzVOsJOxeA=; b=hrfafG8+a7U2zpbtSMlAudR4tLig+c1gnXI8Kx5j2kjjFfXDNttedHlTG5e0Y4SdHo XV2TmbwgcgHlgAorwpsPddTxqqADSeJG5IG3a0WkObx5laJp7wlOZzz9iaIo1JCQYOHB PVO1Gg2qMdZN59LJqbeOP20Z0limz8C9J9jr2htBFUYPFNpJawAUQMBsnYK5p12gQCbM ff/IGwWSBXQeXGtbtjneBtCFBoN7A/Uy5scUKmi26eQowrSMPJq/QmjczeE4jyGEpUbu WsICSQ/pKIRXEPNEOyft4fx4qn75g/IrQSOHVC1pMCP7H3j9Vh4g7JFYfqKe6WhiIjpU j60Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796097999; x=1796702799; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SFJDS+3BFfrkJl1GWSkPzmcyIz9+NMA60UzVOsJOxeA=; b=UlPAERyWUTZ7O40gNt4Tu2t965wv+1qPtSEHfCUdGSzmoCrMKqhWcj4InuyXPPqKSS ckT20u7K3C0rjQLSd12EUVUtWQY7u4H5eBf6pqQ9tBKrlBiFK4NltBOF+oP0n68vdH1R lkyogWJfAMQtXaF9AKZBRTjGyexgrT4XeJBgMzZ0rwelQNiG/ZlXJnQ3BZDt+isXFPGh JKZzL4MPCiS0a5r/SJi7bDLVh7BctIPFzPVdl6K1eVxKM3bTezypFJuMqsn4v846fDKT 0MC4BryIpUNbHRjhWpARWnp1/8HdtOhaW1iNM1hQAjbUCi90fJ2WDUo1GkWprQnv5WAA ax+Q== X-Forwarded-Encrypted: i=1; AL+hErGNypSsxQ6zTiqilclVt7HL62SvR8n+PHL0OMC24qRHu16Z5JAYpWcEUHhUPKQ6DpAPYe8/7ogFwyzLuaUtJ3s=@vger.kernel.org X-Gm-Message-State: APuU4Z/5bqQbdivsoW6ezSqF9wDjphVQCC0CqZk9a9/dT/5XSAnxbsca ZrH+ng5XahoCDoIh9G/VHuXsrrDPd6LDpmsxUVZKBjoKA3n2n/HHLQyX X-Gm-Gg: AZFdTZd+bNl350gZpoj1n/HxSxIJpzY14mcG9ZPyLzXXpmNAnoqRXbfeAhZ1lfl1+Xj 6njqFoiaTrftLQshUNS8tGA7Gi1593EHss+PS+cwxsgKNNkjRMi/Y88QO261K/fpFygZa3GJ7e9 fC8NcedxKcZGPYgBXiERYhuowvLOyaS1b1Q8QkaKI85Kjx9zKgucGAL0DG9Cb16DuWHmdSXvpJ5 87UTjnaJtouoZ6ad1+dZbOAs5JVhdgkinT18o/UiP7ao5afywiRXWxAedyqoA6nqWewkA2gAXct sy4UsNpj3iWUuoeig2OWHoqLdCU9tBdxDNVCf5D7LyB8B28toib73yDWpMq4MiHLnHS3xiDh2VK lElk0GyCYlSCydBunV7G9UE1lAjLNF51/rjSVmB1XUKirf82TivLs0oCAMfFtmHkWYR+LuSoaOh TF1jjYWI7tFIfFMf3H06S+qe8qOwjA9fSVVFt3oUaTWbT/QOaX4/+YJHBdOTXkZO90t6HWdBXD3 r4D5XVBNO3/4T9eWxpPgmfChjh2umlO1C1VNKttQrNqnb1aEf/lVC83X41fz8I8wOfYXT5fc4+a i0wfD3JKMEvLX9i69BYz2tN0E7yOlIacskmqXBxKjdjSJT5uNHkHn5zXVtXIU8HStT5A+exCmMw 97pJgalN/PYCAzqmCDJrr7Zpyo/sjyrlTmA== X-Received: by 2002:a17:90b:248e:b0:3b5:29e:11a8 with SMTP id 98e67ed59e1d1-3b5029e13e8mr15164126a91.8.1796097999454; Mon, 30 Nov 2026 20:06:39 -0800 (PST) Received: from localhost ([153.61.198.247]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b4afeaaa84sm39707241a91.10.2026.11.30.20.06.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 20:06:39 -0800 (PST) Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 04:06:38 +0000 Message-Id: Cc: , , , , "George Guo" Subject: Re: [PATCH bpf-next v2] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free From: "Alexei Starovoitov" To: "George Guo" , , , , In-Reply-To: <20261201034459.20785-1-dongtai.guo@linux.dev> References: <20261201034459.20785-1-dongtai.guo@linux.dev> Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Mon, Nov 30, 2026 at 07:44 PM George Guo wrote: > test_buddy_alloc_free() picks an allocation size with > alloc_free_sizes[(i * 5) % 8], where i is a signed int. That is a > signed remainder, and building the BPF selftests with clang 19 fails: > > test_buddy.bpf.c:109:54: error: unsupported signed division, please convert to unsigned div/mod. In June you reported that clang 19 cannot build libarena at all: https://lore.kernel.org/bpf/20260630025809.74043-1-dongtai.guo@linux.dev/ fatal error: error in backend: Cannot select: AtomicCmpSwap<(s32)> ... In function: arena_spin_lock_slowpath arena_spin_lock_slowpath() still has the 32-bit cmpxchg. libarena/Makefile still passes no -mcpu. By that report the build with clang 19 fails with and without this patch. The answer is the same as in June. Pls upgrade clang. pw-bot: cr