Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04877C433E0 for ; Sun, 21 Feb 2021 04:29:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BEA8364F06 for ; Sun, 21 Feb 2021 04:29:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbhBUE2y (ORCPT ); Sat, 20 Feb 2021 23:28:54 -0500 Received: from mail108.syd.optusnet.com.au ([211.29.132.59]:48442 "EHLO mail108.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbhBUE2y (ORCPT ); Sat, 20 Feb 2021 23:28:54 -0500 Received: from dread.disaster.area (pa49-179-130-210.pa.nsw.optusnet.com.au [49.179.130.210]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 85CA21AD9DE; Sun, 21 Feb 2021 15:28:10 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1lDgLp-00EaVE-Hs; Sun, 21 Feb 2021 15:28:09 +1100 Date: Sun, 21 Feb 2021 15:28:09 +1100 From: Dave Chinner To: Dimitri John Ledkov Cc: Bastian Germann , linux-xfs@vger.kernel.org, Dimitri John Ledkov Subject: Re: NACK Re: [PATCH 2/4] debian: Enable CET on amd64 Message-ID: <20210221042809.GM4662@dread.disaster.area> References: <20210220121610.3982-1-bastiangermann@fishpost.de> <20210220121610.3982-3-bastiangermann@fishpost.de> <20210221035943.GJ4662@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=Tu+Yewfh c=1 sm=1 tr=0 cx=a_idp_d a=JD06eNgDs9tuHP7JIKoLzw==:117 a=JD06eNgDs9tuHP7JIKoLzw==:17 a=kj9zAlcOel0A:10 a=qa6Q16uM49sA:10 a=7-415B0cAAAA:8 a=sx7RX4dEAmHzUYr8zh0A:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Sun, Feb 21, 2021 at 04:02:55AM +0000, Dimitri John Ledkov wrote: > The patch in question is specific to Ubuntu and was not submitted by > me to neither Debian or Upstream. > > Indeed, this is very distro specific, because of all the other things > that we turn on by default in our toolchain, dpkg build flags, and all > other packages. > > This patch if taken at face value, will not enable CET. And will make > the package start failing to build from source, when using older > toolchains that don't support said flag. Yes, that is exactly what I said when pointing out how to *support this properly* so it doesn't break builds in environments that do not support such functionality. Having it as a configure option allows the configure script to -test whether the toolchain supports it- and then either fail (enable=yes) or not use it (enable=probe) and continue the build without it. > It should not go upstream nor into debian. There is no reason it cannot be implemented as a build option in the upstream package. Then you can get rid of all your nasty hacks and simply add --enable-cf-protections to your distro's configure options. And other distros that also support all this functionality can use it to. Please play nice with others and do things the right way instead of making silly claims about how "nobody else can use this" when it's clear that they can if they also tick all the necessary boxes. Cheers, Dave. -- Dave Chinner david@fromorbit.com