Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp560542pxb; Fri, 16 Apr 2021 12:11:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyfUL9y6jiVR+eqecpD+BZ58PmYeYQfNlapY83FDYSDf4yT8e9IiTAL9DkcshD+xSRd8lX X-Received: by 2002:a17:906:80d1:: with SMTP id a17mr9920712ejx.55.1618600313970; Fri, 16 Apr 2021 12:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618600313; cv=none; d=google.com; s=arc-20160816; b=CPqOPo8Gs8OWUQJnBMPayNE+ddonCCK49Rd20JLyE3sTWcWW6nnfiwNqI4vXSuh+v+ HoelzLj69bAcnFAi+A75yKaUaBKzQPAo25uf3S555EjhA9hzbEfBvAwQJK6Bo4fIU/P4 r/DA/TTzAXCRgpFmpOS75DglQrZPSO7jeruV1wG+ID3OmKTeMoizNQ218A0lsMHnMR6t g7yZ7XzsDro7HGwB1rNEO4fmuogeeJIPmbn9nrxo+qag0Hg8NydconHAbeH8kx1QesS7 J5r2PWID++q31hxgXVSXoHAnmPWImy7QJiGmJUvZHRYqQmRNPmeyOsK9FOUAQX1AbLBf BsmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iy+YquCQolFdhIFqaFYddxkruv3V6Zn88c7KpgInMyI=; b=d97g5EppYz9kgVUg/K7RAbroFXmkZDHKNN58xVveIsgBCdOILb0TRL5SMwUu0cusKS LwhYCQmf+RGh0LNvxl4OUpEzUC+6Cxe6hpRJI7EBnVCUPnxZKfDKCmYTH0rW6Y8E6Ct/ nXsYU0bdR6VABUkwTG1C1hK20hUEsCQ72aTbgkT44KBzK+igKEvuFPaPa4AzKNmGpMiq 12+oSJ9L8KnDVkcPqxj6Xze7/PldAE6BvKLH/6WaOmIkYQL8U6QrdG6ATDyh3zTMY817 3BivkjWOqRBlubBfCWYM6AsoAlKGZd4MeUka9tp2eyntPCQ7l0VMXQ2wMVVpnsjheLj7 RJUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=oZ3MAr1H; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si5877159eje.519.2021.04.16.12.11.30; Fri, 16 Apr 2021 12:11:53 -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=@infradead.org header.s=casper.20170209 header.b=oZ3MAr1H; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244418AbhDPSLg (ORCPT + 99 others); Fri, 16 Apr 2021 14:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244362AbhDPSLf (ORCPT ); Fri, 16 Apr 2021 14:11:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C87E2C061574; Fri, 16 Apr 2021 11:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=iy+YquCQolFdhIFqaFYddxkruv3V6Zn88c7KpgInMyI=; b=oZ3MAr1HcgC8j/7GZ0Rqd8avEW oDQP525+WZ6SRSMzTL/fDoBmU2oyLhIPa6ZDdXj+E98Rfch1fmDBiEhxfqO0IgQTsOZCLtlXC4eGu Q9gbp7N2t4fyhg7zai6c0Wwhh5BA0yt+KznYssYMlVKFfW9Gu3cydiA94cU5G7o4IE2ZDbFxj71bS /DX+Vhnvo0arE6cdvR36QjL/A41Fn36WoIbviaI7C7Ft0yUUfad7wEs/9hCyuR7gM6N83bC5U8zcZ NyO2gnTg1HAE4A0PfneTSPaJXjidrc2ULpKLxgr0/3gaQjiR9oJ9rHwz5W0hLV/r8snMu50G4Zu4b hcanTdBw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lXStJ-00AHbV-FC; Fri, 16 Apr 2021 18:09:04 +0000 Date: Fri, 16 Apr 2021 19:08:29 +0100 From: Matthew Wilcox To: Peter Zijlstra Cc: Miguel Ojeda , Willy Tarreau , Wedson Almeida Filho , Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH 00/13] [RFC] Rust support Message-ID: <20210416180829.GO2531743@casper.infradead.org> References: <20210414184604.23473-1-ojeda@kernel.org> <20210416161444.GA10484@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 07:18:48PM +0200, Peter Zijlstra wrote: > On Fri, Apr 16, 2021 at 07:10:17PM +0200, Miguel Ojeda wrote: > > > Of course, UB is only a subset of errors, but it is a major one, and > > particularly critical for privileged code. > > I've seen relatively few UBSAN warnings that weren't due to UBSAN being > broken. Lucky you. 84c34df158cf215b0cd1475ab3b8e6f212f81f23 (i'd argue this is C being broken; promoting only as far as int, when assigning to an unsigned long is Bad, but until/unless either GCC fixes that or the language committee realises that being stuck in the 1970s is Bad, people are going to keep making this kind of mistake)