From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 63035C433E6 for ; Wed, 2 Sep 2020 08:09:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B8D22087D for ; Wed, 2 Sep 2020 08:09:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbgIBIJP (ORCPT ); Wed, 2 Sep 2020 04:09:15 -0400 Received: from verein.lst.de ([213.95.11.211]:58217 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgIBIJO (ORCPT ); Wed, 2 Sep 2020 04:09:14 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E8A9467373; Wed, 2 Sep 2020 10:09:11 +0200 (CEST) Date: Wed, 2 Sep 2020 10:09:11 +0200 From: Christoph Hellwig To: Kees Cook Cc: Christoph Hellwig , Linus Torvalds , Al Viro , Michael Ellerman , the arch/x86 maintainers , Linux Kernel Mailing List , linux-fsdevel , linux-arch , linuxppc-dev Subject: Re: [PATCH 05/10] lkdtm: disable set_fs-based tests for !CONFIG_SET_FS Message-ID: <20200902080911.GA26677@lst.de> References: <20200827150030.282762-1-hch@lst.de> <20200827150030.282762-6-hch@lst.de> <20200829092406.GB8833@lst.de> <202009011156.0F49882@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202009011156.0F49882@keescook> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-arch-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Tue, Sep 01, 2020 at 11:57:37AM -0700, Kees Cook wrote: > On Sat, Aug 29, 2020 at 11:24:06AM +0200, Christoph Hellwig wrote: > > On Thu, Aug 27, 2020 at 11:06:28AM -0700, Linus Torvalds wrote: > > > On Thu, Aug 27, 2020 at 8:00 AM Christoph Hellwig wrote: > > > > > > > > Once we can't manipulate the address limit, we also can't test what > > > > happens when the manipulation is abused. > > > > > > Just remove these tests entirely. > > > > > > Once set_fs() doesn't exist on x86, the tests no longer make any sense > > > what-so-ever, because test coverage will be basically zero. > > > > > > So don't make the code uglier just to maintain a fiction that > > > something is tested when it isn't really. > > > > Sure fine with me unless Kees screams. > > To clarify: if any of x86, arm64, arm, powerpc, riscv, and s390 are > using set_fs(), I want to keep this test. "ugly" is fine in lkdtm. :) And Linus wants them gone entirely, so I'll need a stage fight between the two of you. At least for this merge window I'm only planning on x86 and power, plus maybe riscv if I get the work done in time. Although helper from the maintainers would be welcome. s390 has a driver that still uses set_fs that will need some surgery, although it shouldn't be too bad, but arm will be a piece of work. Unless I get help it will take a while.