Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp563127rwr; Fri, 5 May 2023 01:14:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HxZHbJc94tgK+kPnk9AS6NA/VJUEOb6HpMCLRsyCTpiOA8NVZ8PFrolp3gFl2WGhbosSm X-Received: by 2002:a17:90b:400a:b0:24e:1c3d:e624 with SMTP id ie10-20020a17090b400a00b0024e1c3de624mr656107pjb.25.1683274457358; Fri, 05 May 2023 01:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683274457; cv=none; d=google.com; s=arc-20160816; b=XqAs9y53N/XYifOdQHocr9ehu2eXlzcpa+wxmOora4je6a77AZc7jRe717k4iVf0WY lvO9hrLIrmjbhXKvbnoF/z+vY6ogutRGbVFG3DmmedpgHK2412HELXaOJkYXPRRfdGpM nvFbIC+n9cvHvVLnP7LZ1uwIYeWN9Fj6x+sv+d4PCj+g5D/zfZolbtYKCLK9x3L1ug67 ckOJPWnlv7XsbYemNAdWe+9C6v0ZRjdAVKvw6Y/gc4XW/roVUZX3TfxII/3+cogFRiPH mJDRDlI+o7pzuxQCfIhyYKplLv4bfhqrBrah65x2gsY3pbmPMNewL9Xj1QE379XwrOjb 4nJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=v1CDos4xXpfX0yUzIH2R6tkwubXHkIXYBoy2gEXH5JA=; b=w5SQaxHrM4vAqw2pS21B/gsc/bcGyU8lVw8VdFvaiNtvF+twBsUSTZ1iy9bb4/qIKc oBV1vp2z6N+8hpHHB/kWXaMWuG0k4bsilvP6AE4xtrG523mAMRkcGLm6dXhQqIl86bFS 7hXGF5IQEuDR3BborMcJrQRXc0ak4dnfIMA0m8qURG1LZIwnotuBUWaiQfzkNLQYMGvX 3PvD3Q8rlejCNB4YGunjKS2an7lvZaTlzDkgpdwztWaeO+Ujo5BrRuBmvrq9v/uglLTR etwC/QtyuP7QSEWYG1gJFo8DFTSmsqdzvWzbqzUutdeAjWk8N2gS06VZOO0fg5O7Xqzq MKyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ulu1OIJv; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a17090aad8a00b002498408b1c5si5962475pjq.39.2023.05.05.01.14.02; Fri, 05 May 2023 01:14:17 -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=@redhat.com header.s=mimecast20190719 header.b=Ulu1OIJv; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbjEEHg4 (ORCPT + 99 others); Fri, 5 May 2023 03:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjEEHgy (ORCPT ); Fri, 5 May 2023 03:36:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6804118153 for ; Fri, 5 May 2023 00:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683272163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v1CDos4xXpfX0yUzIH2R6tkwubXHkIXYBoy2gEXH5JA=; b=Ulu1OIJv+F5PRIiVh/+oSWmT47A8tnohcll3b6MIOvPvGoXJ4oTI/pvuYX0hOoc6eyP/qV BoVNt4/dLOGV62nGPxxh/ilaxgUFqzdD5KUovqWrCiJZfK+Ps9hgk86kpDaAB2ySQ69Gr8 uMDP8vjVXwzRUrwJvwWe2jPii4PfuP4= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-28-uM2D1bRJPYmiaR17oxBnYA-1; Fri, 05 May 2023 03:36:02 -0400 X-MC-Unique: uM2D1bRJPYmiaR17oxBnYA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3f173bd0d1bso9394385e9.3 for ; Fri, 05 May 2023 00:36:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683272161; x=1685864161; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v1CDos4xXpfX0yUzIH2R6tkwubXHkIXYBoy2gEXH5JA=; b=PpBfKcJsWYK8lAtHwYYioom7ZtRnyeM2nvC5F/9nLD19qV3Wm1133rL4jmlXP1/jjD oLVsjnSGScg2QqiB+fM46UQ0p50HJzd8wUXSz87YF8Hw1EkISbV0UHvK7RrW+OtxWegN AgBYXMn9k+Gkdw4jXufrGYh/CoEDPzqHqdI/WCyCWcrChqC6TyB0iuvouTkkGgidj7KV snh/cPoqdP1bpqD+qVYhyjo5tJEDzfSKPairqjzlrMH7Xp6w2tFBCQ8Nzq+iMmQAEw19 ooeaFUGRdTJpDRUyD0vjo4H2W869jTneCTqedJ6pgRi9oTM6qLiVk0dyEBCDlQMrrTWi LuNQ== X-Gm-Message-State: AC+VfDzHSqoNpnrj7rtetT0yd9pxa3r5mEY6CQIx+Ngm5dAAgNzFoIcr G/Oi5XNgrLwSfgiJBKb63nZRzHc8PBUZBSqsDrk9wgr36yrg2Nn1ylym4YMKcaic8j1oRiBlOAx oj3Ko+aVTkcXpSDueOE2xE9/Y X-Received: by 2002:a1c:f60a:0:b0:3f2:5920:e198 with SMTP id w10-20020a1cf60a000000b003f25920e198mr327460wmc.34.1683272161232; Fri, 05 May 2023 00:36:01 -0700 (PDT) X-Received: by 2002:a1c:f60a:0:b0:3f2:5920:e198 with SMTP id w10-20020a1cf60a000000b003f25920e198mr327446wmc.34.1683272160847; Fri, 05 May 2023 00:36:00 -0700 (PDT) Received: from ?IPV6:2003:cb:c71f:6900:2b25:fc69:599e:3986? (p200300cbc71f69002b25fc69599e3986.dip0.t-ipconnect.de. [2003:cb:c71f:6900:2b25:fc69:599e:3986]) by smtp.gmail.com with ESMTPSA id 16-20020a05600c021000b003f1940fe278sm7185780wmi.7.2023.05.05.00.35.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 00:36:00 -0700 (PDT) Message-ID: Date: Fri, 5 May 2023 09:35:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] sysctl: add config to make randomize_va_space RO To: Michael McCracken , linux-kernel@vger.kernel.org Cc: kernel-hardening@lists.openwall.com, serge@hallyn.com, tycho@tycho.pizza, Luis Chamberlain , Kees Cook , Iurii Zaikin , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org References: <20230504213002.56803-1-michael.mccracken@gmail.com> Content-Language: en-US From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230504213002.56803-1-michael.mccracken@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 04.05.23 23:30, Michael McCracken wrote: > Add config RO_RANDMAP_SYSCTL to set the mode of the randomize_va_space > sysctl to 0444 to disallow all runtime changes. This will prevent > accidental changing of this value by a root service. > > The config is disabled by default to avoid surprises. Can you elaborate why we care about "accidental changing of this value by a root service"? We cannot really stop root from doing a lot of stupid things (e.g., erase the root fs), so why do we particularly care here? -- Thanks, David / dhildenb