Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp57660pxb; Tue, 12 Apr 2022 16:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3Mm0Z21cNyNp24+KnS04NkJDS6ZaTHBEMLAmEPMIryh7aqJGcU3Y1LxYuYlCDKH2muc0w X-Received: by 2002:a17:907:961d:b0:6e7:eefa:ddd0 with SMTP id gb29-20020a170907961d00b006e7eefaddd0mr36326510ejc.321.1649807024922; Tue, 12 Apr 2022 16:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807024; cv=none; d=google.com; s=arc-20160816; b=d1tK6wNTOFrYlkSZTw1VyC2WlAJls2eLhGrJFuHROgG6LwOEzKDZnPsT2uW65XZnJw ekxz88Q8sWZ8AGfAKSjuO7urBsaw/lQhfvfx6Uhh04cMEiVXA9NgvgL7oYLvMUdQJR3K HjKmklxMsY3kwTrkd0KU18FAoN4NQLtVo9NUpEtT5Nihr79Jr3SZCaQLvvBrgzYBdGwh jy17BGMj5n6jD8siqeWWdj4WoylOdaHPi47YPqKtmvQ771Motu4HhB+rOxBnmYlzUbhN IJE/Jc8kb33qgkKspl/9M9S58GayD196Dy8Sl6lw9TIC0d/aJewMk9h15PuOOjZQxqF7 iqEw== 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=3EPCsRCE/XV4krFSoHdHi8c5CnGgkHZ8TMb2QGOhqsI=; b=yBYpMI8BTao+qNdZv7qbPVqZHNk7rVbppiDRet3qyw0+psvaa92yNxUA1mHIbx6/Ug Wnw1LIqXkyuEROYkDZpyJ9l+vMcQsfdnEz6Vopx6kryweyaXo17tqo3E2/Hifb13qtR8 6dSk9GMKT9GV9fABKqgOjj6J6LJ981UU+r8qtm8FafHqr+soIPFlF9KB5M5KZT7pfGUN lrgSGHPtfmby7fj2nNdqZEt1RxS5fB+jaHFjHJrJ9BKjYs3Mqtab3SB8YUJP6JBElX6M W3cmFRd6g94l+DCdBg68gByK4tUlC5VPsZ/gNpqoxy37xDxqyZjbsZe2HHnXqtbvRK0m sORA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ibyqs9v6; 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 ew7-20020a170907950700b006e8a4dc2851si3270653ejc.0.2022.04.12.16.43.18; Tue, 12 Apr 2022 16:43: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=@kernel.org header.s=k20201202 header.b=Ibyqs9v6; 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 S230079AbiDLX06 (ORCPT + 99 others); Tue, 12 Apr 2022 19:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbiDLX00 (ORCPT ); Tue, 12 Apr 2022 19:26:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99322D111B; Tue, 12 Apr 2022 15:12:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8334D61C33; Tue, 12 Apr 2022 21:48:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69FC0C385A5; Tue, 12 Apr 2022 21:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649800120; bh=e0KhySr/UtVkziqmjJzUDp0PRfv9k6FipuSZSV+okHk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ibyqs9v6j63iFgpc/JkvmS94m1mI+LGZvtxl9CNeQUfnJZ9YtGZVZv2bC9LEhmhJS 3mipIKZoiUbkwS+aI4+zyyGzRsPH6D3XIGs/UYbrmGYqW4dDuqYUPz7uA7/1q11p3m oPq3dqCzmFQAQGOIwbYBBDMp+x+B1y87gDEw8Vlnj0WB1uKoESmySEXNPHya1yDMXF rugicO7BoTsdP2yGShAJuUqfsOJjsdjzReXIWd4i+/SgOnXBg4M6ouptd8lzk7aqj1 kqMpPlqJ+cyNgh1caK3O7i7F11r46F3Jv529Y4m0a9lwFS0cMLxAs40qgg/ClrCq9W umDphqHnoOjLA== Date: Tue, 12 Apr 2022 14:48:38 -0700 From: Nathan Chancellor To: Kees Cook Cc: Andrew Morton , Masahiro Yamada , x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] init/Kconfig: Remove USELIB syscall by default Message-ID: References: <20220412212519.4113845-1-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412212519.4113845-1-keescook@chromium.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Tue, Apr 12, 2022 at 02:25:20PM -0700, Kees Cook wrote: > The uselib syscall has been long deprecated. There's no need to keep > this enabled by default under X86_32. > > Signed-off-by: Kees Cook The 'bool "" + def_bool' was weird and I had to look up what libc5 even was :) Reviewed-by: Nathan Chancellor > --- > init/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/init/Kconfig b/init/Kconfig > index ddcbefe535e9..5cddb9ba0eef 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -435,8 +435,8 @@ config CROSS_MEMORY_ATTACH > See the man page for more details. > > config USELIB > - bool "uselib syscall" > - def_bool ALPHA || M68K || SPARC || X86_32 || IA32_EMULATION > + bool "uselib syscall (for libc5 and earlier)" > + default ALPHA || M68K || SPARC > help > This option enables the uselib syscall, a system call used in the > dynamic linker from libc5 and earlier. glibc does not use this > -- > 2.32.0 >