Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3533761rdb; Wed, 27 Dec 2023 10:20:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSblnIFSf9q8tz/+bO37EBexO9qdJDpUBKFih72J6HYN0ytK8/X9/KF3g5nCfZpPbeKJf9 X-Received: by 2002:a05:6358:71cd:b0:172:caa4:487 with SMTP id u13-20020a05635871cd00b00172caa40487mr8893694rwu.19.1703701255454; Wed, 27 Dec 2023 10:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703701255; cv=none; d=google.com; s=arc-20160816; b=M/Z4Mp8F+VxKldj3Z6ZwKZHCl/5PjtBQ/olzgEBwcF0h7dK/4n3gjaj3hyFnujrDnQ gf4VgPFipbOL0sGlGZJEtrpXZYW4+gUeFcExOkzku+pS6KY4R1hC2hCjP8WcBcQomRAr V4/6gfJ3Chh2sljYUNGrqLlTgjHymvY3QtQ2CBgLZJ7DDnduWghvhG1Yayf3k2U2g987 tjBC/iw3ad7aluUP8ErJZtKd0EOlMaK6DvHS5vTgTCistvsURxBILFC2nYs+lS3fi6zV /Hz4RbHsFEwdsvU+xeIATOUv8vbvR4vgZaPfJEjCLNLRucGpDSgTLgYHOgQvkHSHxTgI Dh4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YQsdU81FO8QZ//YhB4haWFfdWlODEwiL0uBDMRviR0I=; fh=tnDYxqpkETDW31Lri5Vz6y8L2440j55+2J5CFJX3t2k=; b=mwjmb7A2/AvBE7vevWliUTBO7A+Qwz2RkQFE2cUvSt+eF/LWkoxfMfIMBeWyzRrPQv l2nr8pVouKac+3r3dho0ky64FFuSlnWdVd3XLnEbEE+JP9xZQXWEzMnxnzS/LAZJwzdL LmKonArF+9IV0ZQxpIvJQTy/rYUuvum7YiGgQKHHJYATutegHI8AIVlu0fI17l7WB5OI qobZjWKQoxA9x222vJUA/DVNtYT/Z6SaEKvZ/p+4H9q7OAIfqOw14A+Xmo+hpivXYsHy iinpbx5m1CfZv4gNlD05vvRpVaqqXFcGklJ4DICi9L+PEV5DG9bdg8PsSXtACdtN06xx 73eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Kzmp1tkS; spf=pass (google.com: domain of linux-kernel+bounces-12193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s17-20020a05622a179100b004279140bd88si14893319qtk.746.2023.12.27.10.20.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 10:20:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Kzmp1tkS; spf=pass (google.com: domain of linux-kernel+bounces-12193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 25A521C212B8 for ; Wed, 27 Dec 2023 18:20:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E272D4655E; Wed, 27 Dec 2023 18:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Kzmp1tkS" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E8AD46540 for ; Wed, 27 Dec 2023 18:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703701246; x=1735237246; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Z6KIPUid8LL6rdifBkQEA5dR2LPPINDVODWsTdZki7w=; b=Kzmp1tkS50qnh1n/eU8fmDmkEY7pZ3o+mKetOELXJXuhbnhQYt6wXKbS lRPj4Mnob06KrO8Aovp8Gfb03gUZmbAddHPjjGGK7fUd9QZwZN9z6gwPv AlNaOg+JIBZwgz+ohX2cxSM1kjU3Ptq8ZqQMokwzl+i7R95s2njznOTA+ Lzcd6U3rxesBiME6ZnvZl57pI/Yyt9RY8efxRE8Vv6uI5QPGtb3fHo0+D RhjIUvfZTk94PLb+CNYPcYOQn4s/JjmOx/FGPm4QkDBOtHaPYEbgsRU8C pOjr3CgTsqtCYC4mKb6/aIUqORgC00Ajwndk6NpMlys97Jl8xflzBW3dG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="15140590" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="15140590" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 10:20:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="848740859" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="848740859" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 27 Dec 2023 10:20:21 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rIYVv-000Fez-2M; Wed, 27 Dec 2023 18:20:19 +0000 Date: Thu, 28 Dec 2023 02:19:51 +0800 From: kernel test robot To: andrey.konovalov@linux.dev, Marco Elver , Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH mm] kasan: stop leaking stack trace handles Message-ID: <202312280213.6j147JJb-lkp@intel.com> References: <20231226225121.235865-1-andrey.konovalov@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231226225121.235865-1-andrey.konovalov@linux.dev> Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [cannot apply to linus/master v6.7-rc7 next-20231222] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/andrey-konovalov-linux-dev/kasan-stop-leaking-stack-trace-handles/20231227-065314 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231226225121.235865-1-andrey.konovalov%40linux.dev patch subject: [PATCH mm] kasan: stop leaking stack trace handles config: x86_64-randconfig-123-20231227 (https://download.01.org/0day-ci/archive/20231228/202312280213.6j147JJb-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231228/202312280213.6j147JJb-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312280213.6j147JJb-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/kasan/generic.c:506:6: warning: no previous prototype for 'release_alloc_meta' [-Wmissing-prototypes] 506 | void release_alloc_meta(struct kasan_alloc_meta *meta) | ^~~~~~~~~~~~~~~~~~ >> mm/kasan/generic.c:517:6: warning: no previous prototype for 'release_free_meta' [-Wmissing-prototypes] 517 | void release_free_meta(const void *object, struct kasan_free_meta *meta) | ^~~~~~~~~~~~~~~~~ vim +/release_alloc_meta +506 mm/kasan/generic.c 505 > 506 void release_alloc_meta(struct kasan_alloc_meta *meta) 507 { 508 /* Evict the stack traces from stack depot. */ 509 stack_depot_put(meta->alloc_track.stack); 510 stack_depot_put(meta->aux_stack[0]); 511 stack_depot_put(meta->aux_stack[1]); 512 513 /* Zero out alloc meta to mark it as invalid. */ 514 __memset(meta, 0, sizeof(*meta)); 515 } 516 > 517 void release_free_meta(const void *object, struct kasan_free_meta *meta) 518 { 519 /* Check if free meta is valid. */ 520 if (*(u8 *)kasan_mem_to_shadow(object) != KASAN_SLAB_FREE_META) 521 return; 522 523 /* Evict the stack trace from the stack depot. */ 524 stack_depot_put(meta->free_track.stack); 525 526 /* Mark free meta as invalid. */ 527 *(u8 *)kasan_mem_to_shadow(object) = KASAN_SLAB_FREE; 528 } 529 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki