Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2153874imn; Mon, 1 Aug 2022 13:13:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzdxRBnhBnheGTS4jq83Mr+CEAP1xJZomHyTSmuFZAS98FNxrvmCH9XKFSFvoZRnzy0VPe X-Received: by 2002:a17:907:1ca2:b0:730:db4:409e with SMTP id nb34-20020a1709071ca200b007300db4409emr13154638ejc.568.1659384824276; Mon, 01 Aug 2022 13:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659384824; cv=none; d=google.com; s=arc-20160816; b=cn68xOJ2bfF+7tVB2y+JCzRPeYdoORzqg+VIFfIJlnTbP1WwlvMxShF3VNT6SwjW+z s7elFQeame+uQuWiaJhjm4jl0i1X940x3Ag+Dm3lGWrbauljIjImw8ToC1y/cWC2mfyy tGtGFSoflml5C6ESk1cGusEx0fQfaD9I3yAsKerC7B0jVMMrE0+UjLr/Ih2G54pF4hmd 1gSxHv8VFuE3HWQ9Iy5H85moYUpCyJi/XBzytM4ALtNHfRjw/L1hB3cj5Cq9vPG6StPy pNlQxMI6gs7HLB+mxcBwPQYs7QXxV7+ZxUSxB/Qk7pnbs/tuu5TT46cZoIS+eV6xwiGD dGcQ== 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:sender:dkim-signature; bh=p68rKFvwaoybuf/oqm2qNNk2sii1+JQP9Px6zobKFXU=; b=tUdAK368PA3bbtbmS/SK+C78hu6Xlds1e5Z2h2FMNc4kIsGbP36tQq8cSfVD+TKqjo Gu7tRyPpvaSrmUOYnPhdG/3Woc4GC/z1qT33dJZLmus/BAiH0PYdtGTsuvz67Iyt+tlM 4kneJmi83vufyFCUQdgaznnVVkspUwDVl/YgnNyw0oXtXWpuHiCESrKcNj9lvkp3NksR 9uxn34zIzC7xA5YGPiDfezMMiP5TYgS9nupl8ozQxGTQ1EYr2L/dPOxQmdo4Sa7qxFLc fX4ztteUrPE547lM4SmjAu+AbshUvovcxUXVcXQDiVFGINigyhfMUz9wtZqYQhx3/OO0 GHQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eWKRDpCX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a1709067c4a00b0072fa13ddca0si10722981ejp.229.2022.08.01.13.13.18; Mon, 01 Aug 2022 13:13:44 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=eWKRDpCX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233686AbiHATkz (ORCPT + 99 others); Mon, 1 Aug 2022 15:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbiHATkx (ORCPT ); Mon, 1 Aug 2022 15:40:53 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 913F1CC4; Mon, 1 Aug 2022 12:40:52 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id k26so6520652ejx.5; Mon, 01 Aug 2022 12:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=p68rKFvwaoybuf/oqm2qNNk2sii1+JQP9Px6zobKFXU=; b=eWKRDpCXwREP9gNrZUUpuYoI2NseiEJMV7z+O5wS5aZP+5RszSVdigMy66lzgT4TyW u+7YoPyap+qVCqqpVVlv3UXh6XKuds2HPgHyG7Nsvf2e1gLqjWcJgL3xH6qiMY8nyyH7 sGv5KZgZ1B9i5nJP3GsihP9heks+5g10dCslOykAfMZ5Nmrelbspqjw1o5mxg/igilSC f+txWPe6IHpoJTyG9zFIbHbTvXppCSzre56J9YqYmzYd8LUL0T/XHcYtik9wr2Be0Aw5 7JSEM0s817wjzfAkg3ahd8e8I80P7HLPknQLYlzrRcCS5GtgyZ61GwtTIMnIphBV1agQ pdEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=p68rKFvwaoybuf/oqm2qNNk2sii1+JQP9Px6zobKFXU=; b=TvO8ihX9S3yRZqCpqMU7XqzjDcr2+OZ3UIUHkzHQSYey6dWpFJoUhN4c4FrSzKoF1n L2EaWQt6TkeG7xsrSV4ijwvkWy5FEEx9mPsW4YO0boUAGu4vYWMBo3DpwWE7WY0JGABC 6WGmmLmbOO1pu/stiukA+o7Rii2dgjyUM9Y1Ht+k+4WelgxNmByHeYMY8bEpMUeyiNfp WFzVDD6fius8sN7tVfidnQyhk912DrpqmoYcGu+ynsQXR4LwoAMZDkkzxRJMlGJCOfEh /tFK3jfJ1SQJbuS3GWqSTqkU6TMZEQtOh20vfowCULFX/xlWYL23G2v/eieYfKeoMJTR aDFA== X-Gm-Message-State: AJIora/yI1j+dJerQpENftm/xG8jSspXJ2Asz2eQIV/xoZ6KDZnw8FTl POx0JG3G6pRs4DYYjbAEk0Y= X-Received: by 2002:a17:907:7347:b0:72d:78bb:b0d7 with SMTP id dq7-20020a170907734700b0072d78bbb0d7mr13374107ejc.45.1659382851100; Mon, 01 Aug 2022 12:40:51 -0700 (PDT) Received: from gmail.com (84-236-113-167.pool.digikabel.hu. [84.236.113.167]) by smtp.gmail.com with ESMTPSA id q8-20020a170906a08800b006fe0abb00f0sm5466009ejy.209.2022.08.01.12.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 12:40:50 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 1 Aug 2022 21:40:48 +0200 From: Ingo Molnar To: Mathieu Desnoyers Cc: Peter Zijlstra , linux-kernel , Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H. Peter Anvin" , Paul Turner , linux-api , Peter Oskolkov , Florian Weimer , Carlos O'Donell Subject: Re: [PATCH 2/2] rseq: Kill process when unknown flags are encountered in ABI structures Message-ID: References: <20220622194617.1155957-1-mathieu.desnoyers@efficios.com> <20220622194617.1155957-2-mathieu.desnoyers@efficios.com> <1686554751.93506.1659364793386.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1686554751.93506.1659364793386.JavaMail.zimbra@efficios.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 * Mathieu Desnoyers wrote: > The projects I know about that use rseq at the moment don't rely on the > old ABI ignoring unset flags: > > - glibc initialize the rseq_abi()->flags to 0 and do not use rseq_abi()->rseq_cs->flags yet. > - tcmalloc initialize rseq_abi()->flags and rseq_abi()->rseq_cs->flags to 0. > - librseq (still only a master branch, no officially released public API yet) initialize > rseq_abi()->flags and rseq_abi()->rseq_cs->cs_flags to 0. > - the Linux kernel selftests initialize rseq_abi()->flags and rseq_abi()->rseq_cs->cs_flags > to 0. > - AFAIK DynamoRIO does not rely on the kernel ignoring unset flags bits. > - AFAIK CRIU does not rely on the kernel ignoring unset flags bits. Thanks - that's exhaustive enough. > If anyone else rely on rseq ignoring those unset flags, please yell now. Well, people are unlikely to see random lkml mails - but if gets reported as a regression then we need to revert. But I don't expect it to happen. Thanks, Ingo