Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp610991pxb; Wed, 27 Jan 2021 16:42:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiND5r9L81wWMBfeU83aX+FucMYO1OfZLiRRta9rWcj2PhZbX0AQ32EBXEs2VqDQXQeDu3 X-Received: by 2002:a17:906:a450:: with SMTP id cb16mr9042272ejb.167.1611794579400; Wed, 27 Jan 2021 16:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611794579; cv=none; d=google.com; s=arc-20160816; b=mvcKj+QDQ86c8NFGCGkjyB2UJgY6yRfV4P2O1J5pQ5jqqlnstbgCYs6jKtnz/gwCas eJhaaG8A5hSATmI8tEeamb2hxI1YKh8T0eA67emeW5v6g54Lbd+WkbGIs/2WzWGEXiL7 jumZ8qCuP2zgdWYBp542c84Ql+AmIoedML0QyraDgyWT4EgZ/eg7WAhSjzYvlanE1s+k HC6ZRI/MJD/Szb1QWTzoQlaAmL2GbqHrwK1Fdisn8+s0AzKCkmSQMPaJa9waS3zPqW39 aSgtiVuPk593Pk72+x4xWaqoGhJzROcHHRPpJ8H8y2Q+5ILRs816DeqqJU3+vLGkhl/Z btXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MMFtAtZNI0COZaqF8mB8/06frm5QBEITJpap0cTagq8=; b=dH60bDdo7tedofaenaOaf+zcCVpNvwOgE7otg9SNY+v2u0r5QYQtTO5lM+A/9Cu6VF 4kP6XiAoK9t+CEMx+vMYUXtXqa0anSvAEBvkfDtbgTeTfLCX/DZ3NqBCgGq4fowyEzLy /UP0ElcBS6oen8cFNWMEGWXt2Cx2V9U6ySU2dgueLCQ841/33Y5J0qBLnxrL/7LtJFf5 BZfBog4MXUSn3DbepM4NKmRcfpJuZPYNmA6wL+OSNdoNINCBeXr7/GcbMHp3znzy0pj6 yFz+aepAHD7terpX8846m372nbqHP8OaLgZzttpOOEafubhRJjuvdBxalWADNtbWRhGW TMmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CRXdKGJO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw11si1448043ejb.414.2021.01.27.16.42.35; Wed, 27 Jan 2021 16:42:59 -0800 (PST) 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=@google.com header.s=20161025 header.b=CRXdKGJO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbhA0W5J (ORCPT + 99 others); Wed, 27 Jan 2021 17:57:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbhA0W4N (ORCPT ); Wed, 27 Jan 2021 17:56:13 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A4D9C061788 for ; Wed, 27 Jan 2021 14:26:58 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id i63so2333660pfg.7 for ; Wed, 27 Jan 2021 14:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MMFtAtZNI0COZaqF8mB8/06frm5QBEITJpap0cTagq8=; b=CRXdKGJOGXXsOQpHtELIKR8umZ5rhCnWLRE36xgaT6dDVwCPEZjCeBR2Qsk7DeBK8t GWwKHGqh6cb6Fo5dOCjrFchI4QQ89+oaW5HAjc5xx3YuDcqPEcf6kdF6T98nxDSLUnkx fBgBERt0O3M9585mXFDborfe6U0cHo57JYy6hVW81eqgZGPWKR1An2L2yv9+paOg3CXH tCVrdAtbgv444EeewcZ6ba0aJYVoQ9S09DHAXWwLR1VEJ7UndfBlBjQT+Dcb1uaNW+wF TJmXQlSft7xyE1BlHvgn+w3v/p5eFlE74xEJHfRfIwJfNEGxjRThenG+fIFn+j0kj6qs dW+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MMFtAtZNI0COZaqF8mB8/06frm5QBEITJpap0cTagq8=; b=TMGuvIjgl1HnneeF0N2U5Ozw2bZCENZBAzZ8ZMGijd/FJD2ySZ3ospwacluETqpuUo OnuSB+xiEgqGKkAiNUj3d6s97hh8F2z3BuMn6f1/Q9ad3E8R+loGH36euniq9Vop35qH EPZBFSWk0F7/aqXnuPuWexE9JlhlnhwG80Vuuc+c7eLB3eXXAv8ghJxOJYfU1UnxLUkF yGSCpoPUzXZ4J3xIi6+EFcr6FzMAM+9XwUnVvHFDwB89rwMHdEsqQ8QiR943jTYK1NEP ng1QBdb+9H+haoWgI0nfpgzg+fjKR9bwSRL6V25rDZk0wOP2YgyhsUjlKKDWEt0rGJP1 GJ3A== X-Gm-Message-State: AOAM533t+l6iJ6keh/4RBJsYtuDo+ZSYdytCm475LfHEmOXmARRamqfR ibskFMekmHPM+GS/04xD0yCrJ1JpnzR43a784/M8Uw== X-Received: by 2002:a63:7e10:: with SMTP id z16mr13557544pgc.263.1611786417749; Wed, 27 Jan 2021 14:26:57 -0800 (PST) MIME-Version: 1.0 References: <20210112205542.1375847-1-natechancellor@gmail.com> <202101130859.JSORPQUn-lkp@intel.com> <20210113013130.GA3446359@ubuntu-m3-large-x86> In-Reply-To: From: Nick Desaulniers Date: Wed, 27 Jan 2021 14:26:45 -0800 Message-ID: Subject: Re: [PATCH] ubsan: Implement __ubsan_handle_alignment_assumption To: Nathan Chancellor Cc: kernel test robot , Kees Cook , Andrew Morton , kbuild-all@lists.01.org, clang-built-linux , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 5:39 PM Nick Desaulniers wrote: > > On Tue, Jan 12, 2021 at 5:31 PM Nathan Chancellor > wrote: > > > > On Wed, Jan 13, 2021 at 08:39:52AM +0800, kernel test robot wrote: > > > Hi Nathan, > > > > > > I love your patch! Perhaps something to improve: > > > > > > [auto build test WARNING on 7c53f6b671f4aba70ff15e1b05148b10d58c2837] > > > > > > url: https://github.com/0day-ci/linux/commits/Nathan-Chancellor/ubsan-Implement-__ubsan_handle_alignment_assumption/20210113-055714 > > > base: 7c53f6b671f4aba70ff15e1b05148b10d58c2837 > > > config: arm64-randconfig-r031-20210112 (attached as .config) > > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 32bcfcda4e28375e5a85268d2acfabcfcc011abf) > > > reproduce (this is a W=1 build): > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > chmod +x ~/bin/make.cross > > > # install arm64 cross compiling tool for clang build > > > # apt-get install binutils-aarch64-linux-gnu > > > # https://github.com/0day-ci/linux/commit/775adad26a60878926c0ee6cd460a1375bbe51e6 > > > git remote add linux-review https://github.com/0day-ci/linux > > > git fetch --no-tags linux-review Nathan-Chancellor/ubsan-Implement-__ubsan_handle_alignment_assumption/20210113-055714 > > > git checkout 775adad26a60878926c0ee6cd460a1375bbe51e6 > > > # save the attached .config to linux build tree > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 > > > > > > If you fix the issue, kindly add following tag as appropriate > > > Reported-by: kernel test robot > > > > > > All warnings (new ones prefixed by >>): > > > > > > lib/ubsan.c:192:6: warning: no previous prototype for function '__ubsan_handle_add_overflow' [-Wmissing-prototypes] > > > void __ubsan_handle_add_overflow(void *data, > > > ^ > > > lib/ubsan.c:192:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > > > void __ubsan_handle_add_overflow(void *data, > > > ^ > > > static > > > lib/ubsan.c:200:6: warning: no previous prototype for function '__ubsan_handle_sub_overflow' [-Wmissing-prototypes] > > > void __ubsan_handle_sub_overflow(void *data, > > > ^ > > > lib/ubsan.c:200:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > > > void __ubsan_handle_sub_overflow(void *data, > > > ^ > > > > Given that these are compiler inserted functions, there is not much of a > > point to having prototypes to them. If people feel shutting these > > warnings up is worthwhile, we can just add the prototypes right above > > the function definition in a follow up patch. > > Same as stpcpy; it would be nice though. ;) If you would be so kind, I'd be happy to sign off on such a v3. > -- > Thanks, > ~Nick Desaulniers -- Thanks, ~Nick Desaulniers