From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A47BEC77B7E for ; Thu, 1 Jun 2023 19:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MeNx1zHgFuDBykOqeuDQ2o7PVfKmEXHVPXkfsCl//bA=; b=P9SHHr05Llbm3m Ou5BGlHcR/Yg/2YvpDAkHqYktb2EvcpkLhrYBlbJkOd5glYv7CqqRLe42dD6/vuI8Cu/zfBDsPaqY RmHRGJ0hNTkSS9S07aMpn44D/3Wl0K6CoepawJwAsqBZYoiTuwYVF0cM+OpONHdxspbvHo/q4MHtH C8+MWiGVzk+XdFTyXwNiCwXAlpWjEv7Eslqcqx6FR6xy7T1Xp998dfOnXbSW5XCtD2OXMMKRyGmwT 33qxFDnVLflv9c/xqj3IZmA2Dxcug3GDO7cQMfY5Y+M6LIFThW/7WVsJ6aZ9QYmK0xb67tYpIAvTY eCQs3chfVNvEfc7sQBpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4naU-004gVD-0J; Thu, 01 Jun 2023 19:03:54 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4naR-004gUC-2O; Thu, 01 Jun 2023 19:03:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id AC642320091A; Thu, 1 Jun 2023 15:03:46 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 01 Jun 2023 15:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1685646226; x=1685732626; bh=Du N/fEwKhCSFTr6+YhFwlXQbFJgJ5LGQ3Wa6HZ4sPZ0=; b=C/QaeHLc892kUIexhi CidYIiNZ+JwKxyerI0n6ZzlTonC2MCfttfinYy0j6nUZE0iErne0YyoQBGmfGXdj 9XSrK2L9/tABUCYBweKqmZhi51WYnI9Rc+ezixsjUrI5D0O7CJEu9tgr0LQ+hlaz i4q8H2qUmcsm++18eETylqOYIPoiKrg4KB2Iu3TnF5M3VSLOCE8AKl8No+eIYhTr PDuaFAvN7rYWdEJTKtZCj9dXjQe6si7FJa35LvMzr89wgvMuugL3R6Or9FMCsQ64 9p7ik2vhiZkkygcCrB0hgP/qhcSi51j0QFoZqyswikwZEd8/RytRtIER+3QkH70M 7naQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685646226; x=1685732626; bh=DuN/fEwKhCSFT r6+YhFwlXQbFJgJ5LGQ3Wa6HZ4sPZ0=; b=CE0FJDq5g3+5ijPC6hPr9VM97xL3s mWuo2EbkcPLu+0Ph8QjOnsUIMAciuA7bGpSysjt9WU2bERAVqitgINu8w75IFTbW ZGidhRm9cVrKhZRK6pUfPnAbX7QEoEprhUeQ51Eys7ws6XYfc1jOC5ra5VsAJH/J +DhBt/1svBdIgekyjlbFPJW4k3lECF+4ACQxKjbaFOZd7RIDm4R1tLyy/UvsvOwO VC/1wS+ux+mYJFDJjUxJoOE13KS+q2vCe3JMtyS4Kivp8Rf5jT7SwG950gJy5c9P FM3Y0cXNwAT0I1W2B3CpjxRVEoYwBhUYOoytRrogBxVgl2nIlzNJcIp7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeluddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8F4D8B60083; Thu, 1 Jun 2023 15:03:44 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-447-ge2460e13b3-fm-20230525.001-ge2460e13 Mime-Version: 1.0 Message-Id: In-Reply-To: <202306011127.B801968@keescook> References: <20230601151832.3632525-1-arnd@kernel.org> <202306010909.89C4BED@keescook> <202306011127.B801968@keescook> Date: Thu, 01 Jun 2023 21:03:24 +0200 From: "Arnd Bergmann" To: "Kees Cook" Cc: "Arnd Bergmann" , kasan-dev@googlegroups.com, "Andrey Ryabinin" , "Alexander Potapenko" , "Andrey Konovalov" , "Dmitry Vyukov" , "Vincenzo Frascino" , "Marco Elver" , linux-media@vger.kernel.org, linux-crypto@vger.kernel.org, "Herbert Xu" , "Ard Biesheuvel" , "Mauro Carvalho Chehab" , "Dan Carpenter" , "Matthias Brugger" , "AngeloGioacchino Del Regno" , "Nathan Chancellor" , "Nick Desaulniers" , "Tom Rix" , "Josh Poimboeuf" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH] [RFC] ubsan: disallow bounds checking with gcov on broken gcc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230601_120352_061959_31190368 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 1, 2023, at 20:28, Kees Cook wrote: > On Thu, Jun 01, 2023 at 07:50:38PM +0200, Arnd Bergmann wrote: >> On Thu, Jun 1, 2023, at 18:14, Kees Cook wrote: >> > >> > i.e. fall back through these: >> > -fsanitize=array-bounds (Clang) >> > -fsanitize=bounds-strict (!GCOV || bug fixed in GCC) >> > -fsanitize=bounds >> >> From what I can tell, -fsanitize=bounds has the same problem >> as -fsanitize=bounds-strict, so that would not help. > > Ah, did something change with GCOV? This (bounds vs bounds-strict) is > the only recent change to CONFIG_UBSAN_BOUNDS... I missed this problem in my usual randconfig builds because I was building with GCOV disabled due to disk size limitations until Dan Carpenter pointed out the specific issue. I suspect it's been there for a longer time. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel