Received: by 10.223.176.5 with SMTP id f5csp2276949wra; Mon, 5 Feb 2018 01:02:47 -0800 (PST) X-Google-Smtp-Source: AH8x2240kgC3A15cTaw/5zzPkXF0NlR5RMCu42JrnL7A1eQIDnaoBH5unMCBtrrWleTtV0rwishg X-Received: by 10.99.107.201 with SMTP id g192mr37558812pgc.295.1517821367377; Mon, 05 Feb 2018 01:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517821367; cv=none; d=google.com; s=arc-20160816; b=rkWCQFbr+QHG82aNACssXmjXt39lV1WhNqAcNomFc2/VEAOv+SgADkSEVC7sPKW7mn O3vAu6/3F5ns5ZNe5LrXFrP2/nwPwbNxHeG075Ud6qjH8Mje7ubvorRHCWYuTnExqL11 6D4KEKjNBUGqYw28KVMAmermnitLtGY2oJsvw5Lw7WjhjQcRwJlZVgY4LnX+r152mf/t wgFKZ4/YheiqZ2va+uz3+kqID875yqU+87yQHSBYAPArRN7kyDKpi3YSqzMmc7rOKXe1 pZ+1Z+ndpCkrPKlSeHrHHSxhGypfSfyHwh4+L/uBmC/1gGtpMmDrNeyBrFtWuwZXQHUo /LVg== 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=ES2A9GAr4agVizMDDVEEtapW4uzqloHqdPAckw5yDCM=; b=f2qLiQpzV/FwiNEpoZxVaoLKFpzygNfBWiaGf2j9Td96x+g2FWFHUfdBG99RV6Iwvp vkjdKlblzhHi+CvfnCTufTqT/dRearXzFh17Xyo7mvddodsInEB1Qu+6mUlQJ5EGcjXf ThYNJjrCjG8sQ/COSD29A5GNDjDseJ2tjBlcLngg1zDauhFDFjpQ3hBSGMw+xJo2PM8M 5afmv5NmZvMbq6CZrBRCNVhZ+DEwDwmIXoTQ2YotfzBo9E/BKK9KXdjTtH+8+VWxQn3W fzEIDYir0Zbwb9wfkJ6Klh6BzpgeFinVrihIilDMzCEXKMDWHnbUsf5VN5ARKtS/JLDJ 0voQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=RfciNWPX; 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 20si6586155pfp.312.2018.02.05.01.02.31; Mon, 05 Feb 2018 01:02:47 -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=RfciNWPX; 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 S1752641AbeBEJCJ (ORCPT + 99 others); Mon, 5 Feb 2018 04:02:09 -0500 Received: from mail-he1eur01on0091.outbound.protection.outlook.com ([104.47.0.91]:33184 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750962AbeBEJCF (ORCPT ); Mon, 5 Feb 2018 04:02:05 -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=ES2A9GAr4agVizMDDVEEtapW4uzqloHqdPAckw5yDCM=; b=RfciNWPXDHW2R6mkk7oLjyw3WzWTk7DESZgPTjM+hxf6miGplmTO2UcbuaBrC0Y9Sv4QL2pCrLKcLDTKW+xdwkbmY0Xrs4Pi2jQbTfNiIsuRHSO/IEMfmFlvM1e5jJm1G8lMM31hc14WDHdTYEfGdN2Fg1JDkLnmhgdIrgAmYTo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (195.214.232.6) by VI1PR08MB2830.eurprd08.prod.outlook.com (2603:10a6:802:19::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 5 Feb 2018 09:02:01 +0000 Subject: Re: [PATCH] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn To: Arnd Bergmann , Andrew Morton , Stephen Rothwell Cc: Nicolas Pitre , Andi Kleen , linux-kernel@vger.kernel.org References: <20180202154813.1625742-1-arnd@arndb.de> From: Andrey Ryabinin Message-ID: Date: Mon, 5 Feb 2018 12:02:21 +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: <20180202154813.1625742-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR1001CA0009.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:f7::19) To VI1PR08MB2830.eurprd08.prod.outlook.com (2603:10a6:802:19::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f4a1ba6b-ca42-4e70-db2f-08d56c771eec X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:VI1PR08MB2830; X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB2830;3:dCrmyWqwHvffakhhvZiAoF/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oz0aKB5rNboy+wBmoelGf6Bsng9q0w7zu3Pz8tWMCR9yETW/o/mLwPP+6/lAfAye+1pM8Xok3A94Q+wkW/dfb65pm8/Jaa40BQE55HJ2PUFMBtMCmjhLIvsaWwLiDB4oxJ+jFrUHbCLoHHyE7DyFbapD1Hbm5o7gTBSG//7l2CAHzet5VkCAygK+GtdlCPZxP2fr6W9Fy+wDxryZlfI0BSBEP6cHxJ8y2xSJoUfnFLpavxc8CXOGKkLG0ijk=;4:utMx6OClcH14NucBEH5OySsFGx+ArlGG/9LqSogC6U4/kMNJO7OcAOGc5LLXjYbcUbxxd4uZknz7/WsnL+wKPAphGw/m/dc6rvoXr2qFygbs6J5HRs6kol0r+kah2BC8bSbuMdy086w32PM9BEqDw8FfAFmLXtj2Ep4qeqCuOT5+VETsJeV0GKg75QTMdCCbDsAk9rdTxRvm+kBnrYdY/GkBE7q/H3BpE24Q/dRFPbTqneoAvNTP6pR/p4wu0bJ8GRGtD9i//Ban8RNqbxcKkw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231101)(2400082)(944501161)(6041288)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:VI1PR08MB2830;BCL:0;PCL:0;RULEID:;SRVR:VI1PR08MB2830; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(396003)(376002)(366004)(39380400002)(346002)(39840400004)(189003)(199004)(7736002)(186003)(53936002)(105586002)(53546011)(305945005)(106356001)(478600001)(8936002)(47776003)(23676004)(5660300001)(52146003)(2486003)(3846002)(6116002)(97736004)(86362001)(8676002)(65826007)(81166006)(31686004)(81156014)(229853002)(55236004)(386003)(6486002)(25786009)(76176011)(52116002)(6666003)(4326008)(50466002)(316002)(2950100002)(54906003)(110136005)(6246003)(66066001)(65956001)(65806001)(230700001)(58126008)(2906002)(68736007)(64126003)(16526019)(36756003)(77096007)(16576012)(31696002)(83506002)(26005);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR08MB2830;H:[172.16.25.12];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4TUIyODMwOzIzOk9CaUJuYU54NkF4cW54VVNnMEhEOXM5S1hY?= =?utf-8?B?dWFBRWVGcWFpVXp0bWh6NXpObTlna3hKL1RqWlpxZ1pzS29YRGdFeDE3ZkY2?= =?utf-8?B?MEVCYS9EMXVSUThaUEZhWlVFeW4vZW5BRW9oZWNXZ2N0VTNBM1piMi8zZlZR?= =?utf-8?B?cWx1VWhVeWtZczNUd2ZpU1JVRG96U1B5STFTT2NvbGRYbkwvZDRuZEk2T2pp?= =?utf-8?B?d01odUdGYWQrYWFwUHAwSTRScnJUelhMVlVmbHQ4d2lWUWlSR3YyNURxYnR6?= =?utf-8?B?bFhuU2xlWUNQTktLb3VuZ0ZDdE5HbEJsMFN4TC9XTGxKL1lxbGVjNGRQVDhq?= =?utf-8?B?ZWNsSWZ2TEFzeElEcWdkTi9TbGhnaEsvbnBJVnZHY2swMFhXUTlYc0taRkt6?= =?utf-8?B?RWljRS9CeUovVjZhR1hKV1dieE9OVCtmME9uM1N6azd6U0J6SE1kSkg2cnpD?= =?utf-8?B?dURJbCtoZ2d4NHU5b3pmME5FdXZlT1BRSHk5MlJDRzRYWXgzcm5HcWVYMmlH?= =?utf-8?B?WWhWdDFQMDM1RmRNaXdMSlNpNGE5UFQrdFhjaitpQUh1K2xpME9CYy9XSWlk?= =?utf-8?B?bUZsNmR0RVhqWklJZlZMcHY1aysxR1NaQzc4MWlRMXVZK0Z0cWNDbVEyN3dE?= =?utf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Ss79n7/BwzMnbNvMrtZXtcWWazc0pm+S7BI9E/RDMD19oU=;7:jDTW0zQAJEN2ic7FX6W4pnIkqZtHm8yM8dPyyocGP6Xp4zlc6Arao7O++FPm/jIYviCd+9IM6PeraFJvTkV643ZPLjKFqJCZrAAoxQp2CUEpTu0YZpcVlUdpfq91aWil2uac4cqjfeFXXBtvQC6fxHibujW2iVUHdDTSzKe+9TiT8m2Wn23DkhwhUtfMFMfhRGW2hN8p1z7GGBPJe1wIcvlI2VYCzqGbp1h3p4lj1X09vHQ4FJYm3+7PPgFejP6u SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB2830;20:XM7HdYbu3XjlfPwza2isD3871P14VBOxzLK0uIqJNKbbbFWXn5bcIwWqBJr7P42LL6IW/kF6GBDQSTUsIC6Z3XVTxroaOxrpHH15g/0Myha/UsLVGXEJ4pj+oCIrZNx7NgRb9Ry3riT+PdtmUsdBxSwwDqt0pz7pwJ4zFG/6m/s= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2018 09:02:01.1509 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4a1ba6b-ca42-4e70-db2f-08d56c771eec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2830 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.