From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2676B3546C6 for ; Fri, 19 Jun 2026 09:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781860289; cv=none; b=W+XNJH77+mJRkUWWboue4DusQA2HXHMaKTrhgG4UPs5j8nu/8+Pk+Hc7Kt41fxp9NDtQwKUHkJTggVTrdPcRtz4r+jUsYS6cn1i1f1B8wPRZUsoP0YpC3IjKkbJGRIC4dgoTjGIDmLpOcm91LJ0WvdVlO+6rW9xOmx56LSZ/MFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781860289; c=relaxed/simple; bh=fambkLJ0tj9Lx0r7Piisy5hYys4cESKm/RbPV3ujsWU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=se1ePK0mfopje1g/nEqo7gpo/h8aZugucKwoE3cM+ANLM7xyR/XGOBcnvDtUPRegSofwhqx1eqmMKQfoWpvHoeYyBiAYJXw/bbY3u9AR0bQpWY3xdNfCXhInZbzdFogTJ8X1TQjeXKcYATfwaLzztccyBQ8UqAToXAxzczrXFik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VizLUnBj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iQTZzYjl; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VizLUnBj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iQTZzYjl" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1781860286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RIfoWaacn1j1keFUpfv7cq8r1Vqo+v4r6QHtoFYB1q8=; b=VizLUnBjMdIgKs2XmBKN7cBuZinuAF6LM0tX7EHDkHYFeIhk+JIUpPNAwUvdZkh47TaW1z fbrG8/KnwdkvQM2krnGZH3fxqWuz/e0fAouYfEk9Yh5i5xmkdUNNiAAGiDzg0ueIsSdYIJ TDU57R6JaArTTvGZUhtybwccJr9pNLqHn+jzlDVkAl8PZAk1oYO0EnXv+R4Iy6IdDRE9k8 g4JeUqJ/Y5ImZnpEfp9rm9aNjIocuQr9OK9wNVRtTovp4p5D1vkY6OVRnt4PwEYjHA9CLi sh4+Cppp6OOj5Ox8S1pdnQxcgkt4ee/TQPy+UZzKVqNRXIIcyDF39g/z2yIkTA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1781860286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RIfoWaacn1j1keFUpfv7cq8r1Vqo+v4r6QHtoFYB1q8=; b=iQTZzYjlH6RqSXpcVRhyBe654toIAB4mzrZT+mlg39kOpbr+CCEcSlwmeKO/K33IkJhP1b MKh9YEaDIUJEYQBw== To: Matthew Bystrin , Jiakai Xu , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Albert Ou , Alexandre Ghiti , Chunyan Zhang , Matthew Bystrin , Palmer Dabbelt , Paul Walmsley , Samuel Holland Subject: Re: [PATCH v2] riscv: stacktrace: fix stack-out-of-bounds in walk_stackframe() In-Reply-To: References: <20260517143704.659416-1-xujiakai2025@iscas.ac.cn> Date: Fri, 19 Jun 2026 11:11:25 +0200 Message-ID: <8733yi6gjm.fsf@yellow.woof> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Matthew Bystrin" writes: >> + high = (unsigned long)task_pt_regs(task); > > After noticing end_of_stack() function I'm not sure task_pt_regs() is the best > candidate for the boundary. Let's see what maintainers are going to say. end_of_stack() is the lower bound of the stack, that's not what we want. Nam