From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0A25E230996 for ; Wed, 13 Nov 2024 07:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731481606; cv=none; b=cq0n90xumlZ0FI9CcXzzIOtiYT7GTcjfffVYAfZsc0D8AB+kmukRAr3VTQcuwiuw5wHsjwUJ8g+LcY/LOC6lANtmcSYAjG4192pccZCuUKqlGOAPV2GjAg5cR7rQh5rev1ySsMJcoFeLkNULO3/JKvJq7WDBNwXfDEUJPpCVO9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731481606; c=relaxed/simple; bh=M5qxvfjeX8zm3X4cnPusqZs4KtLcO+3neliyehKO66o=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=LtzUzKSGLgr0E4fRymIhtLaYCyD4uQJ0XJu0/lAIXZsq8s+DYA0eR8Yjf7hRVthSbM729OOu3Motol5eeL3DTo42uGwGX1Z439G88kInqm5BQy/im72GpowpmYRm+GeTMgZF5xEKrKca68hjk0yuVKkQlQZIpJAsv3++k3ZN07o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=dQY03K/a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="dQY03K/a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 699BFC4CECD; Wed, 13 Nov 2024 07:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1731481605; bh=M5qxvfjeX8zm3X4cnPusqZs4KtLcO+3neliyehKO66o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dQY03K/a5ff4CVtAJY4jZ2nFifaVnecEcbnac7qZpUq/arw0+yhJKRk33TnhALB2q xww3Gpgy4fWJ0UlorAx1gjLm/QNetaiySqGjN7JBAIPZNdury1Bjd++S74Jo1OUksp Z8QQCpKaB889fkknSLWZ/+PbJZfTR9VicESk9wwE= Date: Tue, 12 Nov 2024 23:06:44 -0800 From: Andrew Morton To: Qun-Wei Lin Cc: Matthias Brugger , AngeloGioacchino Del Regno , Shakeel Butt , Kent Overstreet , Pasha Tatashin , , , , , Casper Li , Chinwen Chang , Andrew Yang , Elena Yu , Subject: Re: [PATCH] sched/task_stack: Fix object_is_on_stack() for KASAN tagged pointers Message-Id: <20241112230644.cfe24aa5e863112de04b16c0@linux-foundation.org> In-Reply-To: <20241113042544.19095-1-qun-wei.lin@mediatek.com> References: <20241113042544.19095-1-qun-wei.lin@mediatek.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 13 Nov 2024 12:25:43 +0800 Qun-Wei Lin wrote: > When CONFIG_KASAN_SW_TAGS and CONFIG_KASAN_STACK are enabled, the > object_is_on_stack() function may produce incorrect results due to the > presence of tags in the obj pointer, while the stack pointer does not > have tags. This discrepancy can lead to incorrect stack object detection > and subsequently trigger warnings if CONFIG_DEBUG_OBJECTS is also > enabled. > > Example of the warning: Thanks. Are we able to identify when this started happening? ie, a suitable Fixes: taret?