From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 4BBE734CF9; Mon, 14 Jul 2025 05:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752470503; cv=none; b=oqoBaviWzmVGriVm0YGONrtthOSTUOWHxIuAtlwzZxqzk76buxk0EgZxeNRE15fh9tyNMXbm01kq+DcYR42lVtw5v+XXqxV9xB2fMJxwyS9blbcWHEmSJJf8jGohERFYm+hQgZJe/gjKURSERxRiqwnilPtfF+yKprsWcMX6RwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752470503; c=relaxed/simple; bh=/BiSzimMSvNh/AKevqHPH8cH7nKlihij6DZUgRmNu3I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zg6agmMHlr3eFU+LLtbTB3yaZzvvfgD7KBMC+L+I+ae2zc40PStb5PK3xaSeWie6oBx70opWWT2Fh/vpUiJ4EuyiII8N0452vIqUnSxXTlcmTWXB70CY0ltCa64JzFBNXQ9j8kTsKVFLy/BCcbGVoKbqp+rpWAxLF12tbwhCM2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=dkEP3VwA; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="dkEP3VwA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1752470499; bh=/BiSzimMSvNh/AKevqHPH8cH7nKlihij6DZUgRmNu3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dkEP3VwA0gFNJxxIsOGau5WreWEW9znwrimCJWF9oX/6y0kHFDbVkfPIU5PJzTwKw kiKYlArHtDudA4iRLGr4Mnc9NZ2wlA5XJecDsD75ITkaWGsiiblb94MrI+EENyEXD5 yLwzpb1N9f8QBRNEdFBUPq/5EaUzJp1I/EZuCIQ0= Date: Mon, 14 Jul 2025 07:21:38 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Richard Henderson Cc: Willy Tarreau , Shuah Khan , Matt Turner , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-alpha@vger.kernel.org, Arnd Bergmann , John Paul Adrian Glaubitz Subject: Re: [PATCH] tools/nolibc: add support for Alpha Message-ID: <6cb31334-8b39-4920-810e-de123898a2e0@t-8ch.de> References: <20250713-nolibc-alpha-v1-1-10216333d308@weissschuh.net> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Richard, On 2025-07-13 16:21:58-0600, Richard Henderson wrote: > On 7/13/25 14:08, Thomas Weißschuh wrote: > > +++ b/tools/testing/selftests/nolibc/nolibc-test.c > > @@ -709,6 +709,10 @@ int run_startup(int min, int max) > > /* checking NULL for argv/argv0, environ and _auxv is not enough, let's compare with sbrk(0) or &end */ > > extern char end; > > char *brk = sbrk(0) != (void *)-1 ? sbrk(0) : &end; > > +#if defined(__alpha__) > > + /* the ordering above does not work on an alpha kernel */ > > + brk = NULL; > > +#endif > > The syscall api is different for brk on alpha. > A change to sys_brk or brk in include/nolibc/sys.h is required. You are referring to osf_brk, right? I think that should work as-is with the current wrappers. On alpha, mm->brk and mm->arg_start are ordered differently from other architectures. Personally I think the nolibc tests are a bit bogus here. Thomas