Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1150057lqt; Tue, 19 Mar 2024 14:25:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6iXoLFtr4n0Fl+AR2/bi3VYvtMWFV3E6LnuCxk32wjj8f4hUxR8EZdZJCnAJqjqW2rJdNw+AVoTfrOuMtRakkdBs9kAznwR68LNPbSg== X-Google-Smtp-Source: AGHT+IG8QBz0MNoRmalgy/KxetzJmBe9S2tsnhdBdb+ijSH4E9wdBpl93U3YpCB/i2XU953TD67t X-Received: by 2002:a17:90a:94cc:b0:29c:5c56:ffea with SMTP id j12-20020a17090a94cc00b0029c5c56ffeamr14670678pjw.6.1710883526684; Tue, 19 Mar 2024 14:25:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710883526; cv=pass; d=google.com; s=arc-20160816; b=JLTgicMvxg3H8lpWpWMo9DHYG0P8yabVXEKcgUFAX+L3JxZn7/eQwMlupwdPtDVSHh tQn6On7+FPrsJ7VPJ4Y0tgQcz6NABmx7ApMIctJlgtJ1dIiFZdfqPoP70P8dpw20vOty c3/p7C3UbqzXDw9rDeiftDeiXILviwNcoCcJiTZhhcKcbARDEosu/5ePbEdPE3de82y5 pyt1aEmRFUQuWSIb0EqXleJAi1m14ilkR4UuO1lrtsN6k51bkuwhSt/1Lz3iQZWDQyXP 8oY7H6kSnOE1mRxpZU7HCkxJeYAX0bpZyzl4TZHKL9R/BZQ0rTknJRqS1+Tg9vThnX1/ ouww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=3iDi3grK0zJ9T0msfkTNyhk4U8+NafaeYy0UOyiofCk=; fh=RL2aSRJGZeE/0k54ma6uok4i12WNXQHf6KhRL6Di9Sc=; b=R4ZdvtZnuftYUw3yvoWbZGawM0gBKzcIjmoxnR/o7/CZbCEWbMXXR8QWgIXbvK/siD AmWASp49kxHT4/jPav0mgldcueN3twvGPn5ojJ1dEADyrQH67duKLkeOiYydAWJw/16c iK+pldPyFhWCKjVVb41roXz4bX6+fSfRo98pxs25UCwSFXIAS/jEHzn7tr/Omb4lolTR +cn8YhiJtQBxM7W5F8I6bp5Rkuv3g6XkKygUw6lP1AQ3/auS2Ju48VW3c6z2Hr0gERc1 bfYilbmdgHEbNJTan0mMKhSmu2N/EC89LvG0LJ7v+PiQiqlKBRM6I20v3teZJND7E1uO hpxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-108150-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108150-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cl21-20020a17090af69500b0029fc13b5217si33576pjb.96.2024.03.19.14.25.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 14:25:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108150-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-108150-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108150-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5EC7F284E0D for ; Tue, 19 Mar 2024 21:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 093883FE2A; Tue, 19 Mar 2024 21:25:24 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FCDB3C488; Tue, 19 Mar 2024 21:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710883523; cv=none; b=qc36HNnkjjQ3ftf6M1GOAuInuSMh18wiwT0qNJESWYRSGbAFrotKEHVYKKZn2BjPoxWPlg/JQWoZyTW4HxfOL6Z8poX06/5/STPFIbXnJ50+EGOIlummd/x87CyVkqHEODt1d7O9YbMOZmRf9de7skEzAoqpI59Q5xydS9kx6Qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710883523; c=relaxed/simple; bh=e/lPwUTH5fgcUQnQW6C64fTu7xkn/zOwEfP5KCNgUqY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ce53avIj2Tx+WQeiz9YVb/uMTus7fKW+U58/+kUI4hZgbqqN9cM59MFmkRxugqmZj6Uci86u+Q9NloEip/1klhCE4ip3QZIaxi3lDRLQti8qJYrZRoYFHMFaa9t1+JcFXq8Il7rX5rNTKRoRawSgTgICzckEJwv1sn55Sij9zUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A898FC433F1; Tue, 19 Mar 2024 21:25:21 +0000 (UTC) Date: Tue, 19 Mar 2024 17:27:44 -0400 From: Steven Rostedt To: Nathan Chancellor Cc: Linus Torvalds , LKML , Masami Hiramatsu , Mathieu Desnoyers , Alison Schofield , Beau Belgrave , Huang Yiwei , John Garry , Randy Dunlap , Thorsten Blum , Vincent Donnefort , linke li , llvm@lists.linux.dev Subject: Re: [GIT PULL v2] tracing: Updates for v6.9 Message-ID: <20240319172744.2e535578@gandalf.local.home> In-Reply-To: <20240319210329.GA742040@dev-arch.thelio-3990X> References: <20240318113053.7f87ce7f@gandalf.local.home> <20240319130653.0cfdaf6e@gandalf.local.home> <20240319131333.504c93fc@gandalf.local.home> <20240319210329.GA742040@dev-arch.thelio-3990X> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 19 Mar 2024 14:03:29 -0700 Nathan Chancellor wrote: > > #define __assign_str(dst, src) \ > > do { \ > > char *__str__ = __get_str(dst); \ > > int __len__ = __get_dynamic_array_len(dst) - 1; \ > > WARN_ON_ONCE(!src != !__data_offsets.dst##_ptr_); \ > > WARN_ON_ONCE(src && strcmp((src), __data_offsets.dst##_ptr_)); \ > > memcpy(__str__, __data_offsets.dst##_ptr_ ? : \ > > EVENT_NULL_STR, __len__); \ > > __str__[__len__] = '\0'; \ > > } while (0) > > > > The first WARN_ON() will report the bug if src is not NULL and the pointer > > is even though the strcmp() will likely crash in that case. But that's a > > bug if that happens anyway. > > For what it's worth, I applied that change and built ARCH=x86_64 > defconfig with LLVM 18.1.1 from [1] but it does not appear to help the > instances of -Wstring-compare; in fact, it adds some additional warnings > that I have not seen before. I have attached the full build log. That was just me posting what I was going to do before testing it. You want the actual patch that Linus pulled in. https://lore.kernel.org/all/20240319133959.349f5082@gandalf.local.home/ -- Steve