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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9982C43334 for ; Wed, 15 Jun 2022 13:28:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 591A06B0073; Wed, 15 Jun 2022 09:28:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 541A36B0078; Wed, 15 Jun 2022 09:28:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E2696B007B; Wed, 15 Jun 2022 09:28:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 2FE136B0073 for ; Wed, 15 Jun 2022 09:28:27 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E895A73A for ; Wed, 15 Jun 2022 13:28:26 +0000 (UTC) X-FDA: 79580549412.06.1020AF0 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf17.hostedemail.com (Postfix) with ESMTP id 34F1940003 for ; Wed, 15 Jun 2022 13:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655299704; x=1686835704; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=G5/lQUzNGrkTsaT8lmei7Sc623MPsT6oyM+mwSRQnwM=; b=L4vcV/JjnaBF1+EzeZrM97XEhWLCIw2M0pmQMvFtaGy/MtbcKz0fYZrJ saba7oCiBKT96Tlz0Kx/S+oXoAvd6u/IeAhY+NqS4A5TVX+079Ld0BoaN FS1VNznYVl7LpXtH0H67+hmlgTBsDN9Ta4I1Y/oxVQZAP5dMXrCBHO7L1 qwO/6fszhB4qSbFuWqbIA86BhC102/pBXbEqQWEIvwg0JXgD7oSGgmt/y jtXeDBTKwDCutzICsUb375C7YlsV3xjIVF1HS75Tgdr5cKAoghTUqf6df q42/hLqOSDKG/ptFUePFdAJWM3qPJzs+J1CruEP1bapFbrAnm/6WKxFXW w==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="279676293" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="279676293" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 06:28:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="612739745" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 15 Jun 2022 06:28:17 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1T4C-000Mtf-RD; Wed, 15 Jun 2022 13:28:16 +0000 Date: Wed, 15 Jun 2022 21:27:33 +0800 From: kernel test robot To: andrey.konovalov@linux.dev, Marco Elver , Alexander Potapenko Cc: kbuild-all@lists.01.org, Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Peter Collingbourne , Evgenii Stepanov , Florian Mayer , Andrew Morton , Linux Memory Management List , linux-kernel@vger.kernel.org Subject: Re: [PATCH 24/32] kasan: move kasan_addr_to_slab to common.c Message-ID: <202206152134.sadCRvGk-lkp@intel.com> References: <5ea6f55fb645405bb52cb15b8d30544ba3f189b0.1655150842.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ea6f55fb645405bb52cb15b8d30544ba3f189b0.1655150842.git.andreyknvl@google.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655299705; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=gl+tPDD6pbk5k4M8pL8/xQQasJf2li+6Ho4YYC0tB5E=; b=1/k7QJ+q2RMHQsRrlyRKeMBARZ7qTR8DGR11BR+JsFikTDMRGjIAApfZc8NtbFMEbj3fYH REesg88u76aH+exBGt9jWLI3eveSe1sBKZFNc68xGXeDZvFcvsSfoHlwtP8JHnTNmy6BSk DDR6xipiiCASwI9kKrOsf5r5skzQw7c= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="L4vcV/Jj"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf17.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655299705; a=rsa-sha256; cv=none; b=b9gQTc98DYy3ZNvNCB34ZayY0tSTMEGLq/ZNee2eusc2Ll2paKMJVU8E96vWYVd9fKSWrW UF4+Fe5HcNDrkhMOUgBDqLrGNaYtckrHLk+WqD3h0lzYzLAIwdHJZnaishA8eVCEEUiKcH nBg4eTU6dBq4GMRF5liFWK1l1KmyhNE= X-Stat-Signature: dimururepbtyj5wijgd84yjwc5tuhx15 X-Rspamd-Queue-Id: 34F1940003 X-Rspam-User: X-Rspamd-Server: rspam05 Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="L4vcV/Jj"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf17.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com X-HE-Tag: 1655299703-454966 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on linus/master v5.19-rc2 next-20220615] [cannot apply to vbabka-slab/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/andrey-konovalov-linux-dev/kasan-switch-tag-based-modes-to-stack-ring-from-per-object-metadata/20220614-042239 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20220615/202206152134.sadCRvGk-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.3.0 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 # https://github.com/intel-lab-lkp/linux/commit/b0b10a57b2d9a5e5ae5d7ca62046b9774df1a88f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review andrey-konovalov-linux-dev/kasan-switch-tag-based-modes-to-stack-ring-from-per-object-metadata/20220614-042239 git checkout b0b10a57b2d9a5e5ae5d7ca62046b9774df1a88f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash mm/kasan/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): mm/kasan/common.c: In function 'kasan_addr_to_slab': >> mm/kasan/common.c:35:19: warning: ordered comparison of pointer with null pointer [-Wextra] 35 | if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) | ^~ mm/kasan/common.c: In function '____kasan_slab_free': mm/kasan/common.c:202:12: warning: variable 'tag' set but not used [-Wunused-but-set-variable] 202 | u8 tag; | ^~~ vim +35 mm/kasan/common.c 32 33 struct slab *kasan_addr_to_slab(const void *addr) 34 { > 35 if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) 36 return virt_to_slab(addr); 37 return NULL; 38 } 39 -- 0-DAY CI Kernel Test Service https://01.org/lkp