From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 93CC3175A7D for ; Sat, 25 Apr 2026 11:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777115602; cv=none; b=MFBzgnEqMQIt15mZ13QUE9lRWFBd5D6Pm7+I5CecfFNVrjJiVHr4Flu+crCMmGZqCnqVHInovffgDUBcwUG58P2Rqo26xXqTHpcE3QEK0D8YHLHZuhk9xUXo3c3OufEPwvtvJjg6BdMwjWgHvz4yHdAtHFQutyhIgRp8+c+yaK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777115602; c=relaxed/simple; bh=yPRydz87nDx5EWotGcLcfHOKNJ00o8upN4XtcNxBAZM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UDIhZ5L1eMavalC50ZrbWG7dSp9JUESN20R1E2b4utNG8SxEp7gBlagPXkeLYza2ynJqE0gYidtcZk6RG6Xk3AHeLGE9r0NGUPGArWkIhw94L/tpQX48265xETCU9VP9boUsLGqWHKlPj6QCmXGlZVND0B0yGNWSE2oqrxfue9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thingy.jp; spf=pass smtp.mailfrom=0x0f.com; dkim=pass (1024-bit key) header.d=thingy.jp header.i=@thingy.jp header.b=FXcaM6le; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thingy.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0x0f.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thingy.jp header.i=@thingy.jp header.b="FXcaM6le" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-35e576110adso6021269a91.0 for ; Sat, 25 Apr 2026 04:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thingy.jp; s=google; t=1777115600; x=1777720400; 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=KVPzSpBvFJDQCDgQrJshlhWvHc9qSgpxY6lLDudAs9g=; b=FXcaM6le05TrP+wMxaEj4sSfd6FYPZleIrN4hyPvgW9w5AU8Avx52tXsvfJtatU5aW C7jOPpT34kgBIITCxnzR6+tTNmCa1P6qKMGnqOYr2UqU3fFB/ulS1WxItWBHu+icTDY2 Dudm5VvFqc9l4c9V+iegf1PprpTU/O/9+PIrA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777115600; x=1777720400; 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=KVPzSpBvFJDQCDgQrJshlhWvHc9qSgpxY6lLDudAs9g=; b=Xury1a1nszpQtqxeTOMI8nXHDjRMfknOJH4T6XkfITI9d/C27KKynv0ivWZAqxsk2K I/4ioQ4RjDNWiTf7fFdSykVAUwdiwlHnh2gOQOikS3fZ6n7YVqcy/K2s1Ra7HZ9npT33 0Vn17G1uTrUVjLs78ngVb3bzDJrC1oi16NKPiVU5HnSAGbkxvk2fm5lOGBKpqtRVPmCM Nk5EppDZa9SljPfIQIj45jsytLZu0RIKkIjkH17jF0X1EoelMbC58lxj815j7QmQYYVt nF0e49/nktbN2v22HK1dua4K++dpwgi9iIHQOLutYKFUEKRuIMAMRDoqyff8FAosSwX8 JIPg== X-Gm-Message-State: AOJu0YyV/5f/z2FfcZjXDBK2glbhetRo55kdMHfL75QgUXrQzaZnVd/8 zR+3VkbWF7kP3IZ4b7AS5sx83tiuIIP/NE8iWVx+2cz9n6aAqLyA9yKNWRUcUjOGWXXmUftr9z0 phQWo X-Gm-Gg: AeBDievlXquxJsQ/wgKG6oZf6RChEzv8WrDQcowM/fAvzXqxKfkdGxrjf7p7T7KxmGN YI0am5iIYg+BEgTGs+9KnzbWjnPc2VLrbc7rrUVZJMJ1LP3dJSUISgid+9pf6TrSWsh6vI6ppQd BUYkjmmoREeNOvlLsjz043Hgf/db+PIU59M1jouWSE37Qvvc6ctuYxImvaoRSTuGcyYIe/C1MMd R2w7d1Q99RUU1OBkUWA9H3hr0F49IkDHgAXqnm6PoDxjnsjkYo6xTVfgz4OPehd9OER8q9G5spW tLhRc0HGBc7olVjFSXpgtQYe8kdYCTFdU9qDG5iraYrQplSnj252yiFTW4EJxTezk9F4R+z3Epm KUR0oZknbPFbQIJeA50+RTHb0kpqgf2NLuy3xfSnU9yJpx6jHs5Bk6VmZO6c+T3q603wbAH4SIT TKhS3EQ3DIX8D4PCi1BG/M0INK/zfZDXZsecjcvAUJPHMwTLJvY3uu2i5uTlLDVxH/gV/3mR8n/ 2pcoyRuF2p+TRFkv19twVBE X-Received: by 2002:a17:90b:4b83:b0:356:21e9:73ff with SMTP id 98e67ed59e1d1-361402ebfebmr28033740a91.11.1777115599766; Sat, 25 Apr 2026 04:13:19 -0700 (PDT) Received: from kinako.work.home.arpa (p1329195-ipxg00a01sizuokaden.shizuoka.ocn.ne.jp. [114.145.5.195]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-361417748aesm25424487a91.0.2026.04.25.04.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2026 04:13:19 -0700 (PDT) From: Daniel Palmer To: w@1wt.eu, linux@weissschuh.net Cc: linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 0/2] Small stack protector bits Date: Sat, 25 Apr 2026 20:13:13 +0900 Message-ID: <20260425111315.3191461-1-daniel@thingy.jp> 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 Reworking my "static pie" series and going back through comments from Willy and Thomas... First patch was suggested by Willy as a preemptive clean up task before the series. So here it is. Second one is an issue only appeared with relocation (because you shouldn't access global data before relocation) but seems sensible to do. Daniel Palmer (2): tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector tools/nolibc: Don't use stack protector before setting it up tools/include/nolibc/arch-arm.h | 2 +- tools/include/nolibc/arch-arm64.h | 2 +- tools/include/nolibc/arch-loongarch.h | 2 +- tools/include/nolibc/arch-m68k.h | 2 +- tools/include/nolibc/arch-mips.h | 2 +- tools/include/nolibc/arch-powerpc.h | 8 ++++---- tools/include/nolibc/arch-riscv.h | 2 +- tools/include/nolibc/arch-s390.h | 2 +- tools/include/nolibc/arch-sh.h | 2 +- tools/include/nolibc/arch-sparc.h | 2 +- tools/include/nolibc/arch-x86.h | 4 ++-- tools/include/nolibc/compiler.h | 4 ++-- tools/include/nolibc/crt.h | 2 +- tools/include/nolibc/stackprotector.h | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) -- 2.53.0