From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x227rmEoACN0MsA9XUloha8TnxpJ8RnonJCZBd8z6KnMwqjcnjyTKpIGsyFEIyTEJuhxFb+t+ ARC-Seal: i=1; a=rsa-sha256; t=1517179852; cv=none; d=google.com; s=arc-20160816; b=d6xz0Czgghg5ft2uxE2tfafnTVmLqmyQ5L4kjUUlleq8Z6Myx0UyaYPr9BChZeonx7 PM5AJy6tU1AXxAM7IehVE0+0byGTRGvWNfbZQmk65tiiiI5evfUXiM2qtglHtlU410ac 5YzX2oQiZjPMj3243DC9mMpJZaZ4v2UvkDdzq7ayyUYzRqQVFrA+VkeTq4JvhRTEYhn9 hUJjaUyYzAx1Ac9JcvJlprjKpvqqf2C0gAJwt6aDy87wMjX8T9NAlbtqKIo9a3rOSqny DvFWWZ6M9SCu5NiTuEcx3lH8qmBOTPkEoMCTmYTDLobMTvwxs2z7PbJIe2mhhOPzUbPL hzrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:sender:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:cc:to:from:date:delivered-to :list-id:list-subscribe:list-unsubscribe:list-help:list-post :precedence:mailing-list:arc-authentication-results; bh=07LhRlXZtkKrQWL/On3Bijxt2rxkz3lbKHq3iERBDFE=; b=u7zcrFkA3XlclhWxkpWdi5bn+zQqfmsPW+4v7sFLW0JMg26/oSnI4h7Xu5kftzD8PK RWf1Vuw79Opmv8KeKQESJqurAC4blNDtsJv3QlsSXfGZfNP1+BB3EXB2rirtNIT9yvcV aRLmOxniadjOxRgzWcuear5RKAnrv5ZULCIIGl4tM42sDPbLUFeTtE6tp1J7LnhSEyJ7 0oe9bPI3rcr1W2SV1ry9RkEqdJ/M3Q7ns0pko7pl9fwgcp3O7Ii/QU5orjt19z8A9LQh vA3Lo/SuCuQMEhAm3bcTOlvFXwnBjiDiFzSYdOwd6474CAJ+UCXuBumin1GgxP02bQFT X9pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of kernel-hardening-return-11500-gregkh=linuxfoundation.org@lists.openwall.com designates 195.42.179.200 as permitted sender) smtp.mailfrom=kernel-hardening-return-11500-gregkh=linuxfoundation.org@lists.openwall.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of kernel-hardening-return-11500-gregkh=linuxfoundation.org@lists.openwall.com designates 195.42.179.200 as permitted sender) smtp.mailfrom=kernel-hardening-return-11500-gregkh=linuxfoundation.org@lists.openwall.com Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: Date: Sun, 28 Jan 2018 22:50:31 +0000 From: Al Viro To: Linus Torvalds Cc: Andy Lutomirski , the arch/x86 maintainers , LKML , Kernel Hardening , Borislav Petkov Message-ID: <20180128225031.GJ13338@ZenIV.linux.org.uk> References: <4dd5a4d0f6b694f17eaf64c80c36a2560993b9ea.1517164461.git.luto@kernel.org> <20180128202128.GI13338@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: Al Viro Subject: [kernel-hardening] Re: [PATCH 3/3] syscalls: Add a bit of documentation to __SYSCALL_DEFINE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590862555674165882?= X-GMAIL-MSGID: =?utf-8?q?1590878381018765063?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Sun, Jan 28, 2018 at 12:42:24PM -0800, Linus Torvalds wrote: > The 64-bit argument for 32-bit case would end up having to have a few > more of those architecture-specific oddities. So not just > "argument1(ptregs)", but "argument2_32_64(ptregs)" or something that > says "get me argument 2, when the first argument is 32-bit and I want > a 64-bit one". Yeah, but... You either get to give SYSCALL_DEFINE more than just the number of arguments (SYSCALL_DEFINE_WDDW) or you need to go for rather grotty macros to pick that information. That's pretty much what I'd tried; it hadn't been fun at all...