From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F81634C83C for ; Thu, 4 Jun 2026 15:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780587436; cv=none; b=jTJ1831MrwGWI9ruNfFmoOG+yqpRfSZDDItuQcYwmZu1ncyF7q/n/UzmC/1LTUI4x0re16sMwB1plkarGFKez3y5mz5IithyIl1NEN4KAql19q8xBPNPLTfQ43uIoXJHjM+BzK77/SRd8hwTiXIcB8c00k+M5XKpADqbMDnemw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780587436; c=relaxed/simple; bh=B4kAnmuu+tm+OSyglgUEHVlQAff/5XrjpAH7BiTgVyg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qHyg9z83/l8ORZLTF0S+UbOJRoNqjYNXbBw9fCw+VYCx/kiRlV7NVP0nj+x6RQsGr7qYAhs55MXSxpOnRAYQL3PfWz7WLPeraxA1cTu9BvOHxkeltpp45IETFCCWJiVMpoQF2ZoGjEP65pWvXExuGrisWf4lCc7nTr+6Brwvtto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a+6/PTTY; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a+6/PTTY" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-490ac10e337so5247005e9.3 for ; Thu, 04 Jun 2026 08:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780587433; x=1781192233; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+pK+UMk42ah5FughmdiWdsbFfWNIj2bleabsTylQnGY=; b=a+6/PTTY0RnYsdqxpJHoYU7geIqIwdAS5A+abtMWYrGzKFH/JrEPyk3ZxtYXLsvKLf LXqUwM0M6XdHC5hTx4n1u6Nd4zgKgQfW3Tn/x/cGRN1bcpeBEttbip5l10Ar8Sc43nSr EZfO4/pbmZ5gKXXgExLA02vPcaINBLpm3u+ZsQQSeu61nDaRHGywH0WubHq/N599YZfX BzdtUfUWwUDuLGKZvpqeDbnLSTlagF3oeBCsErAtpc9gJr5f/sioKoGEGDRIcM66gAfm MTak8IonHGDdcnjjiS8lewXBRafMKHBcvXGcIRjMtsX76HMbOoD+mJzoNS+IzdDYAO3V oGyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780587433; x=1781192233; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+pK+UMk42ah5FughmdiWdsbFfWNIj2bleabsTylQnGY=; b=n68HMBuiudYbeT8kl9i9Pt1/6zAbbCRadC+UMC5jHZ55kT99Oht40n4AvOkLDepzSw QCYJcGRdTZed/59BOzRIFWM1X7wtUcEC658Cd55s5/6zTd5K7XO7rSHpzxg+lwtbhw4R yfCeh7/nU9WEZrf2EcndynPGyEzJ0IsaCJd77WI8O+xP/dD3VLjjuiV/gCrv3XxCXYOt hBxrcwEbMFZpZpIS/iNUZC1isIPSJpmy9CUBwYkQrCeVcETYL8HZdduGIipC7mV0p9zJ Tj6MwDjPo7F9JNfZ8uY+lW506ayOSfCXmQx5WXvwfHUsX2KC2Ol2wcbBW/9eZUvN1PJb 4gBw== X-Gm-Message-State: AOJu0Yy59Wt0dpwqgsjDqFVDSG0FDpgNdeEes3oJXQcIULFpOFgXhHtv Ia4OFFYv8oBpoD8FOYsmEFaeC3diPN0G6wyl05FBJO1Dex3WeSCq3PzS X-Gm-Gg: Acq92OF4lcEbsbLWYNbfup42pGKktuBhbeoYH54k4ASyoqiAkh9uZi3cnPyrZkd41lz 5ph9bdyto+1W5NhWiJe5L9DHpgV89IcuFU/TyHZ7hr/MmZsI9RVPBvDCiGQeCCeU2gj23IoauMg eZt2iyGRc37sc66xZQN6GwCsPpEfdQMYD+D+mjO51ddvrGO+ribr1rRqSpCWHqcng0n3JZSD8pL opN1ysjcDOLHcw6zoxUxxA2NdqT7dL36/cV4JcuhmKCaU2TFYPJDFElVG/LcIvf6LyJpHDQ0CjT 67IM1oKjBqKvEl8u7IU9ztMQ8WNTzWCxMyfWTJmaLHpLyCrUGiEf051gQTU+UOOI1IfVU8Vij+d jRCX8NchvR8OGaWMd8lOrAHVzYIXLpyKVGhv+5eMaHbAvyBFTSNlAkZa7aOJiURv6//JzC6lNE5 txCpgHiWsF0aR0LdKe4h8t4rLwi5eJst0wNG8ad4neB0riszLXYSbPeH6gYV9gR+4= X-Received: by 2002:a05:600c:a09:b0:490:4e3e:b483 with SMTP id 5b1f17b1804b1-490b5fe66ebmr141230305e9.22.1780587433394; Thu, 04 Jun 2026 08:37:13 -0700 (PDT) Received: from ramin-pc ([178.19.210.170]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4601f35fb24sm18236914f8f.34.2026.06.04.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 08:37:12 -0700 (PDT) From: Ramin Moussavi To: Michal Simek Cc: linux-kernel@vger.kernel.org, Ramin Moussavi Subject: [PATCH 0/2] microblaze: fix signal-frame handling for NPTL Date: Thu, 4 Jun 2026 17:37:10 +0200 Message-ID: X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Two independent fixes to the microblaze signal-delivery path, both found while bringing the uClibc-ng NPTL test suite up on microblazeel under qemu-system (petalogix-s3adsp1800). Patch 1 wires up sigaltstack(), which is currently routed to sys_ni_syscall even though the signal code fully supports an alternate stack - microblaze is the only architecture leaving it unimplemented. Patch 2 reserves the ABI argument-home area at the top of the signal frame. The MicroBlaze calling convention lets a handler store its incoming register arguments into [r1+4]..[r1+28]; since r1 points at struct rt_sigframe on entry, those stores land in siginfo/ucontext and corrupt the signal state. An eight-word leading gap moves them into scratch space. Both were tested with the uClibc-ng NPTL tests; the affected tests (tst-cancel20/21, tst-cancelx20/21, tst-signal6, tst-timer4/5, tst-mqueue5) now pass. checkpatch --strict is clean and both apply to current linux-next. Ramin Moussavi (2): microblaze: wire up sigaltstack microblaze: reserve the ABI argument-home area in the signal frame arch/microblaze/kernel/signal.c | 7 +++++++ arch/microblaze/kernel/syscalls/syscall.tbl | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.53.0