Received: by 10.223.176.5 with SMTP id f5csp2349298wra; Mon, 5 Feb 2018 02:32:43 -0800 (PST) X-Google-Smtp-Source: AH8x226ezCLG9l6vd1gd+Z3vtbcKY2dIz0NWjZrQnjtHXDpDXjAYqiIg8k0v4RWdKeWaX1QgUWv/ X-Received: by 2002:a17:902:b189:: with SMTP id s9-v6mr12820763plr.243.1517826763407; Mon, 05 Feb 2018 02:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517826763; cv=none; d=google.com; s=arc-20160816; b=Fxsi4JuRC0H+b9IXOlJek5sdgPKm61rVHHtQxv2uDBhxe7bKeIyBeMswDur39CKi32 IwrIBvzVHCM5w1HhYlLf0l+3vIZnikpFXLWbsML63BrSjKGTsrTiiNPeEkujo4dRE+Cl nj8rTsu0ulB1IzUfYDH84YFkhQWIBLrjnn9lyCkVchU7NG9ZDSvn85NmuXYK1J02jJp8 dQUx35oZqVEQMp/zcTypqtGHMtngtyN1W0DcEQuZR43KJ2J+/545xdVuDIkrq0zDCL0o GC8OR2mmPIMi03Z7pn5gUSlz1XWwlh05sSlFaAkzY6hzQKkvJzJuwrBr6wuTsyIbZ005 Qggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=3bIbAdWTnoR/RoAStdH5ssSyD5LUQgyDghrRGpPW/O8=; b=IQxhUl76kNVakywV3fR7vdxLJeC3YkEbkgRq4OD8gu/pQ9EJVND9y3ZbJ7cJ3fHPXW QYQDQ9Fup5P/qTcTHp9X4ZxP6tk1WU4h0P4Fl1YfeVteHzGGGnI5uNJ9gQ/s0PZLTvPZ qpiz/7cZAjS6Qwsw/jr3l0SQNs35NieIMkc/m0xS+NpQV5upyTVT3FRnuMXjCL4C1EPo bhyffU+PdLyUKlz/FPS+4PJR+/kYcKwwtoyiacYjChgR14oxvAsE1h+TOMN/P5XIIwtG sk4OS93f+R/yONyQjpqVjb91AI5pKgDVzxATcCa5AsAOkvdzhVMeUbRjDpwA6K00X6ad us5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=AZOyQ0tM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si4437992plx.15.2018.02.05.02.32.29; Mon, 05 Feb 2018 02:32:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=AZOyQ0tM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752816AbeBEKbM (ORCPT + 99 others); Mon, 5 Feb 2018 05:31:12 -0500 Received: from mail-db5eur01on0107.outbound.protection.outlook.com ([104.47.2.107]:20514 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752324AbeBEKbH (ORCPT ); Mon, 5 Feb 2018 05:31:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3bIbAdWTnoR/RoAStdH5ssSyD5LUQgyDghrRGpPW/O8=; b=AZOyQ0tMd5bSmKnDMjIrdpiGP8r2iv9UZlcAi/uP2LI1yqPGa95048Yduqh29J64ilXGNw3SsAis6FSN5S8/urYsmaXGTP6+wGceMu3UoftkFJEM5+sWsy687r1HKHiaeMy/b4FIzYY7O1R6Opasvk9pf5SAsLdaatf4gq6VadM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (195.214.232.6) by AM4PR08MB2818.eurprd08.prod.outlook.com (2603:10a6:205:d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Mon, 5 Feb 2018 10:31:04 +0000 Subject: Re: [PATCH] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn To: Arnd Bergmann Cc: Andrew Morton , Stephen Rothwell , Nicolas Pitre , Andi Kleen , Linux Kernel Mailing List References: <20180202154813.1625742-1-arnd@arndb.de> From: Andrey Ryabinin Message-ID: <00813389-daf0-a97f-8642-cb4e7a62fa27@virtuozzo.com> Date: Mon, 5 Feb 2018 13:31:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: DB6PR1001CA0029.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::15) To AM4PR08MB2818.eurprd08.prod.outlook.com (2603:10a6:205:d::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78a007c6-20f4-4f0f-1ee6-08d56c838fa7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:AM4PR08MB2818; X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB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cBcW59/0dxaaCXq0HhwDtGyOuPO6hKr143Z1PeTYKWijtTtpincLPjeaszNc2ysRRJIHBk26an3PVyHVJXXD8dUBu+Zthe5h/5L8+HrsCE7D+DCk3m7LPFgkLqWoPz6yoNiyZg4dehHcI3KI9wtQgXFdXh1yxJ1USkjAdL7qFTp7OkBnpCDgyrKdbXZ6Wp3ICuOzD0AvjdkOZue783H4qZKZHfRqdDXgbvEWj34kTyuyuEv/nNG/UVCGkhpAJVkS50BVAnAKmvZIduqQY=;4:xd8GrnhAZYI0PZZY9MBMyTxTCu6Mq9Ymqf8diI/Jb5nEDsF6s+XqrCaZ2+Tlz2rDzqH4VcM1yq4OjAHrUm+Uur+Amf3qnDIJbxcw1BzxoioDoY0E8H/yCav2cCc1ZFY0mjhV1j6IpX2qu6MQpOX+Z0iOJMYsW/+CBZW5CGbIHkJ1m2BWL/dAtTX00wm+F1MXXwwHmQaN00Tr2rXXWEcpJvWWmsOoZiexAgT4KibaQ5iD1XT2AZdQcG6se1+gM/qoS/Ojb/ttykkU52baaLqHGKC7yuh2GY3vg17mUUqacvaF/hveJKvQ/+HM4mPgc2kE9ceeDwxrNICeiPH6SZnvlYRo5IPvSIoQD9wHw7/xbfs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(22074186197030)(183786458502308); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:AM4PR08MB2818;BCL:0;PCL:0;RULEID:;SRVR:AM4PR08MB2818; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(366004)(396003)(39380400002)(39840400004)(346002)(376002)(43544003)(199004)(189003)(229853002)(106356001)(31686004)(23676004)(55236004)(2486003)(68736007)(76176011)(6486002)(52116002)(52146003)(53546011)(386003)(31696002)(53936002)(7736002)(316002)(54906003)(58126008)(305945005)(36756003)(105586002)(16576012)(50466002)(478600001)(64126003)(83506002)(6666003)(6916009)(2950100002)(5660300001)(66066001)(65826007)(65956001)(65806001)(6306002)(47776003)(26005)(230700001)(966005)(8936002)(86362001)(97736004)(4326008)(81166006)(81156014)(186003)(6246003)(25786009)(16526019)(3846002)(6116002)(77096007)(8676002)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR08MB2818;H:[172.16.25.12];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTRQUjA4TUIyODE4OzIzOk9wZlpNTmtQRnBNdENnVFVva21FcFFkVWVm?= =?utf-8?B?eGxYTkN4MVhnNnJEVkJGL0lFS1Bzbjgwbk95ZWhCNmpEUHdkT2tWVzIyWWZa?= =?utf-8?B?eUdnWko0Q0tveVR6NnhqYVFhS29CYTZqNU5DQ1BVSzRGcW5EcTlMdGZRaktI?= =?utf-8?B?aE8wZDBjQWsvbDkyZmdESEV0cnZYZDNiTUtCVXNGZ1kwS2IyMHVnbnhkVW5C?= =?utf-8?B?UzdwRkVhRnpaM0czanZINXJGdEFaaDI2U3MwYVIxV1RXY3Ryd0tjQkdkMisw?= =?utf-8?B?bDFaYy85UnBRWEZ3a0JIVndGUGRDQ25sZGhyWC84ajJMN0kvOG1sNXhDbEtT?= =?utf-8?B?RDBSdFNZaFNsWVFFMkZzWXEwRlFmbGpyb3NqZS9YUTVYSVhBUlkvY3FJemx5?= =?utf-8?B?TmRNTWVSenJ1Z29vQzJsU1JoYTJmeVZHSU1JbC8vVExVbVVDUmJyYW5YVWg1?= =?utf-8?B?QjBWMEl5WmFqaW16Mm1maVZVN1FUN1M5UmUvM2tpWk15bjFnLzRsaTg2WUlL?= =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qDuJo=;5:AbbUPLgNySV9vJTt5wqBgKbFfm8UE4uIFeHZlpYC7i5wfMS6v04fPWhVzFeI5BddxSm39KAU+1LCVSjOEuAfz/hjN+E4uzPbA/kDEiIV+6JPv9Fpn2LKZya4C40QLS+V12rjLPZit9TBL3mLW2Uu9TlqZCaFQAdUJi2c4Iv82sk=;24:vVNFh5oAbjkXn8KxoJubK7Db8J4wSkGlmZzSbDrlDPr1fDskhIhMhdIgm8lkedBzuCMEn4gLH0v1PqqVVisEa1wIzAYsLpfn1EWWDQI/cAc=;7:z/TV7t/yfIwv/hkFU8gilyQ07dmtw5K34o6obbJFoV9NOX+mPHsfT/GG9323WpFJlHLdcp6sffa/Y2a9PVGRYhyp3C0nwfIVsPWtTIY1CffXEesytTarDIQlDz49AHXJJRWCpm904oxCjDb/Nsmw/+QM81Nwd4gZtXKlGdnG2fbGsgLDvZxr+qA2jxqnHDKf4scz+3DetjR6GkHFjpciTZVJ89hAwEr/PPipKn+QWHqtSgoWOnrj6CfVZUnUvjTj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB2818;20:gD/7g+h9lQbOS656Me7MLx4uqlJ6qMRgC871P1lf/T4g2L+6qE30R1eHILdld49ajtepkAL/EguY5GAWqJ2PYxpZH2ZnCK3zQXrM2gNoilirTDCX4Yvo/VjniersBFJvx/dznjznGP7HlhUpRG0WiG9ByB7FTljZx6WJMdFPnno= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2018 10:31:04.2528 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78a007c6-20f4-4f0f-1ee6-08d56c838fa7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2818 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/2018 01:15 PM, Arnd Bergmann wrote: > On Mon, Feb 5, 2018 at 10:02 AM, Andrey Ryabinin > wrote: >> >> >> On 02/02/2018 06:47 PM, Arnd Bergmann wrote: >>> gcc-8 complains about the prototype for this function: >>> >>> lib/ubsan.c:432:1: error: ignoring attribute 'noreturn' in declaration of a built-in function '__ubsan_handle_builtin_unreachable' because it conflicts with attribute 'const' [-Werror=attributes] >>> >> >> That's actually a bug in GCC. In GCC __ubsan_handle_builtin_unreachable declared >> with 'noreturn' and 'const' attributes: >> >> DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE, >> "__ubsan_handle_builtin_unreachable", >> BT_FN_VOID_PTR, >> ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST) >> >> >> But const attribute doesn't make any sense for function that returns void or doesn't return at all. >> Given that gcc-8 has not released yet, it would be better to fix this bug there. > > Ok. Should I open a gcc bug, or will you take care of it? > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84210 > Arnd >