Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp185563pxb; Mon, 7 Feb 2022 09:01:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQfVOp79DZf16og2gdcj5apqvaz5J+6L8b14MbNYnlP0W4402hnG6jA7gXmNB+NyueSd2w X-Received: by 2002:a05:6402:d0:: with SMTP id i16mr389817edu.163.1644253259877; Mon, 07 Feb 2022 09:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644253259; cv=none; d=google.com; s=arc-20160816; b=bM2Ozvm+EAUCPZiqBWj00NgNZqA7XGHewdzYa8EFq5/qUEeInQQDpNRqx5qLgpK74H 4DYjpKDBzlC37OiIe2PZjLZULp0qBZ+bYO5D9G6GHrxPVJUlg0eIQD7Y3ZUCEIM3qz/B aoI0Yf4+FW/c+McTM54SyqWaXdIioa6d7M9kuRmlOjz/Onjr9kb/yO/QblNU/l9AWnYz IFxJWGnhN7bsmwKX1AroVC8PwGFshFmnh/jyLBle8MgyEKeX3zcf+grkMBGP5+CM8k5X CabKxmMmd47caTYdcrqzNy7JF1v5ddwCxzrkrPoa6O2dERyXoHrE8VhP/lk+BEZvPQoj 5Bog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MYhRHqxCkUHKTTrVS6ypQppPy8pN9/E8VMnKemjP0yE=; b=rRSDC/X0aXDvptwNU6LHynrOcNOHlsaLnrsqHt4YG7/Bmg9lJnhWkHRdQt7nCjZ5A7 6t2umUS4A+fGJMS1QhsgcpYRZa38pwAGiGHoR1k/t1/eadNLrUZcPnxtSA8fwlnHO2Qc m3xQvCXY0cJVeaMl2dSaH//1IjVITaLqJfmlz2eUjyy0/mL+dl6Ib2xywwOkkFkWrEom waQuzLQfVw9V23Hfs5h3EJfSXJebkFTNIbLsVa+A+AWDz5+IN0zCnG4GE9lr/8MwcssM Y0noskOgMhgnLTxaLbln/sZZ7aKH/u4yD1BaNsiNF4FZXQYgwXQzj7B62DhIkvgqdsFp iAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PCQuNQJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21si760708ejq.466.2022.02.07.09.00.34; Mon, 07 Feb 2022 09:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PCQuNQJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243308AbiBFVuE (ORCPT + 99 others); Sun, 6 Feb 2022 16:50:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241378AbiBFVuC (ORCPT ); Sun, 6 Feb 2022 16:50:02 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC80C06173B; Sun, 6 Feb 2022 13:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MYhRHqxCkUHKTTrVS6ypQppPy8pN9/E8VMnKemjP0yE=; b=PCQuNQJZFJc/hohvYN3oMbB7c4 Bd7Q7Zp+Lu+UTf0+6YAgQ+afo6/qgHLrVKNgI//8DbWLYldG4CBLlyjr8Btr+ab22cPjiwFuzjazH GazIGv4hzFjSjHU2QjnIcO7L8zcxjAplIirtEifXxOv70IgJrqSyY7PDQ8xITLEeE9PEXpXpqMlEl NRGbhTNrZu6evhmOoR1CNy1rNG7qy6i2kq+iBYir0oEM/toP02c74Oy5/ggctJQPDV8gN00/Ofva/ kNBXYTdcR5BlE33ZbE8AHMK2+Ggh0MJB1FpoZcYJlvlTYFfmPK3izDoA69l0zQCV2DaWeAak1e742 sHmKiJUQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGpPi-00FjsC-0h; Sun, 06 Feb 2022 21:49:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7D0FB300470; Sun, 6 Feb 2022 22:49:40 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 588002B37BEDA; Sun, 6 Feb 2022 22:49:40 +0100 (CET) Date: Sun, 6 Feb 2022 22:49:40 +0100 From: Peter Zijlstra To: Mathieu Desnoyers Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@aculab.com, carlos@redhat.com, Peter Oskolkov , libc-coord@lists.openwall.com Subject: Re: [RFC PATCH 1/3] rseq: Introduce feature size and alignment ELF auxiliary vector entries Message-ID: References: <20220203193853.21511-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220203193853.21511-1-mathieu.desnoyers@efficios.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 02:38:51PM -0500, Mathieu Desnoyers wrote: > @@ -286,6 +287,10 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, > if (bprm->have_execfd) { > NEW_AUX_ENT(AT_EXECFD, bprm->execfd); > } > +#ifdef CONFIG_RSEQ > + NEW_AUX_ENT(AT_RSEQ_FEATURE_SIZE, offsetof(struct rseq, end)); I've gotta ask, what's up with offsetof(, end) vs sizeof() ? > + NEW_AUX_ENT(AT_RSEQ_ALIGN, __alignof__(struct rseq)); > +#endif