Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4600369pxv; Tue, 29 Jun 2021 10:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvWtyHX3JT4llkG7VHCUtmv+HURE86p+RwijubFTSwxkH+AUSG8FkdHLlKQg1jYMk/H1y2 X-Received: by 2002:a6b:d001:: with SMTP id x1mr4642332ioa.171.1624988779449; Tue, 29 Jun 2021 10:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624988779; cv=none; d=google.com; s=arc-20160816; b=zqEAYtfhXl8/e7uXJlDPqafhr/pew7foxmb97amT93zDQ++07gtpf4UghylxXzfRRr VJ/HoGZGiVT+tJmhKWcrrGVN27a2LgIyjAgf+e/bbFLOzMZIPzVAZrhKoxTYQMrvU610 /rl8Y0z0Io3J9c9KyH6Hk54yqSbh+9V8O0qTy3avuaA6EbAWrFlK4Udi56vVWQAs6b7Z lYN3zlfemPun9ti4pNdTh/WkNa6MaQ7392ugyXC8pNJ/Xk0Juo0XRH4xoDIqXjI/NSks UxaMbXfrPxh8w/PEvvIIz95Xqnh+oaRTezotju9G3JlrtZbdpr88ORTB7R+ohrT34dXG mYpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iwCxgB3/FyZOTgeZocqAjYOgiLXA9Mwd3bMPQk//pm0=; b=0ntp9jHRHlkF355611LbepiNPx1ATFSWcawDJSMIx60YubC4MY81Q5QGzDMi92Zz/0 B9O4trWz0ZowYz1FqGOc76qtIoc3ZVzFP4KvrvN/pZi9FTphr1wvAS7PCxFPnmspz+ic gQ94p4xfotisCTrHoVPYuyoTDKtFoc5KadAHZ1fRx0My8+NTSiOS8VJBYirQHwhYAPJf 1xBSc66jbb417bgk7sJfFpte9lgxXXVrgJ3jMm817MlLbniOZ3+rKYVZksRtUtpHA7Tf pI7gJSDwKZJ722MquIN4l2NCHKdu8vfgwKElHDetKeP/zt4dYLrLiQnagADSYSTJgqFE FIEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=maT755aK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v16si2836444ilq.26.2021.06.29.10.46.01; Tue, 29 Jun 2021 10:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=maT755aK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbhF2Q2P (ORCPT + 99 others); Tue, 29 Jun 2021 12:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232134AbhF2Q2O (ORCPT ); Tue, 29 Jun 2021 12:28:14 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44BB4C061760 for ; Tue, 29 Jun 2021 09:25:46 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id z1so21451261ils.0 for ; Tue, 29 Jun 2021 09:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iwCxgB3/FyZOTgeZocqAjYOgiLXA9Mwd3bMPQk//pm0=; b=maT755aKPvqesIHxDTB50d8pPBy9MoWg3uUz63QxA32LBNENf1iSLLytKA0h5qxddW 6SBvttFm5iO+MaT0ZHHEQIWD+YgEj4ck9LLOn4xNW/3mjLoaL41mbjQUH1eDTLggKUCc KwgWHqTTJD8vQ8VCtmgzU1Cwv4A92qFGZReEF1zBH8O9qrAl+w9x33SSUFG9FZcXzXfV MD62jRF1LX161zCqOO3hVRHz+GvS3kfb3poOchIJ1mdFZ+hN5uo+e/mWO8X+2zshFSVW jcudJFYUgkYLHzPSA0HtFZdcRGCJjfwTc8EguxO++SwcCefMbZzNStRXE/h41YdaTjWk mUpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iwCxgB3/FyZOTgeZocqAjYOgiLXA9Mwd3bMPQk//pm0=; b=fbHtl7jqZfNw4i9CnXKtknxT9dTAHkeSCkUd7yxFrWFZLrk/EkXMWjEIlBnl3d7osD u1z1U9XXQdJytgwlfubY4YJeMHqQaXaAN8MrtGcBQFt8d0xRDmd7uMUAOFCg19x/v+dr HIfwhXvdq9coxnv6ryfEAaT1yXQAEWPNY9p3zB1eJsi3Altdy7bc06Yu83nhz87PdAbx RKa8+9Oso6YVjJJl99/6omtu/291/9O/+zoF6CcjzaE5s0w0QnAqxQ7oxE1zY7ttOwoH Se2kc8BtTPDz2u/JUuWshM0jHax33RGPhiJX8fdnC5e64o11gXhPZ5jLVxQJZE4gZWLK msYg== X-Gm-Message-State: AOAM532Pe75eYAK9xM1RE+qMc2xxmazwzW2DYgnjpJrTtR7/I+i2zgOK Y7BNtgPZJvZv0R11Zgzzv+XwEn4so7hM/VPjUFKzTQ== X-Received: by 2002:a92:6f07:: with SMTP id k7mr11850088ilc.276.1624983945366; Tue, 29 Jun 2021 09:25:45 -0700 (PDT) MIME-Version: 1.0 References: <20210202135002.4024825-1-jackmanb@google.com> In-Reply-To: From: Brendan Jackman Date: Tue, 29 Jun 2021 18:25:33 +0200 Message-ID: Subject: Re: [BUG soft lockup] Re: [PATCH bpf-next v3] bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH To: Jiri Olsa Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , KP Singh , Florent Revest , John Fastabend , LKML , "Naveen N. Rao" , Sandipan Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jun 2021 at 18:04, Jiri Olsa wrote: > > On Tue, Jun 29, 2021 at 04:10:12PM +0200, Jiri Olsa wrote: > > On Mon, Jun 28, 2021 at 11:21:42AM +0200, Brendan Jackman wrote: > > > On Sun, 27 Jun 2021 at 17:34, Jiri Olsa wrote: > > > > > > > > On Tue, Feb 02, 2021 at 01:50:02PM +0000, Brendan Jackman wrote: [snip] > > > Hmm, is the test prog from atomic_bounds.c getting JITed there (my > > > dumb guess at what '0xc0000000119efb30 (unreliable)' means)? That > > > shouldn't happen - should get 'eBPF filter atomic op code %02x (@%d) > > > unsupported\n' in dmesg instead. I wonder if I missed something in > > > commit 91c960b0056 (bpf: Rename BPF_XADD and prepare to encode other > > I see that for all the other atomics tests: > > [root@ibm-p9z-07-lp1 bpf]# ./test_verifier 21 > #21/p BPF_ATOMIC_AND without fetch FAIL > Failed to load prog 'Unknown error 524'! > verification time 32 usec > stack depth 8 > processed 10 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 > Summary: 0 PASSED, 0 SKIPPED, 2 FAILED Hm that's also not good - failure to JIT shouldn't mean failure to load. Are there other test_verifier failures or is it just the atomics ones? > console: > > [ 51.850952] eBPF filter atomic op code db (@2) unsupported > [ 51.851134] eBPF filter atomic op code db (@2) unsupported > > > [root@ibm-p9z-07-lp1 bpf]# ./test_verifier 22 > #22/u BPF_ATOMIC_AND with fetch FAIL > Failed to load prog 'Unknown error 524'! > verification time 38 usec > stack depth 8 > processed 14 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 > #22/p BPF_ATOMIC_AND with fetch FAIL > Failed to load prog 'Unknown error 524'! > verification time 26 usec > stack depth 8 > processed 14 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 > > console: > [ 223.231420] eBPF filter atomic op code db (@3) unsupported > [ 223.231596] eBPF filter atomic op code db (@3) unsupported > > ... > > > but no such console output for: > > [root@ibm-p9z-07-lp1 bpf]# ./test_verifier 24 > #24/u BPF_ATOMIC bounds propagation, mem->reg OK > > > > > atomics in .imm). Any idea if this test was ever passing on PowerPC? > > > > > > > hum, I guess not.. will check > > nope, it locks up the same: Do you mean it locks up at commit 91c960b0056 too?