From nobody Thu Jan 02 09:05:46 2025 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YP15T2xVnz5j17H for ; Thu, 02 Jan 2025 09:05:49 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YP15T2P6Mz3xy4; Thu, 2 Jan 2025 09:05:49 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735808749; 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=8APtcIggMk3wvXS1lJukUcYcCL4Km1PEGonFJuQaQc4=; b=Xbm66gQ7L8mhq8ZZ5KBa4bMiiSPBSq/naZ/Xgw9mEgRtGvY6D3+w/ceHjXEQW8jZ+ypbvz xhnYD9SeK/Ng7vcNcWqtgW++NYYkDbIBl2vhELbrc4rIr7hVkQiBrTko1hVMSae1a8rqos CnWXSxOBmOPeZa5z3rHI88gxpxlrk8vYLgEVO8sFwnR0Gh733r66sus4KDjCfxO+ppiYYN jGArDo+1jLPnHYDeXxO/M9EqxYaGJyyD26CvAM/5dOibZk7bGHbXQpfkKyfALlWJ6t519l EnSDoyBySeRJyJYBVGajqSgtj2mkdoCn30qsrkHHhbasmH26nl3Y9SoNs2OINw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735808749; 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=8APtcIggMk3wvXS1lJukUcYcCL4Km1PEGonFJuQaQc4=; b=e/c/gMjwWCPa4ToYbxyxGpmCPJsv3quSB/cnQ53k6XzTLkW+iCdUbjlEA8FvA32egCDGx1 1TrUIeM3qbh1Cy+4TS+iIEtXBthLkKEWdhbdJLK5W1WAQ5rB6jDhblydiA0aZCRMK1f3j7 aGwK3/2SwPTHV4KoQF1hQ9fCDjMwpga6vsHDM7mG9Ay1qx6YRb/ZYy33SSNcVpLXIctHvt +oyh1a//hF36S2XaZshOmUSPcnUhJYeXBJkgqqGnkDqa1nzhEBsGhjnDvR4PFG3PzVVB/h qyTZdw/WgXtS9eUaDRJ+QmcKQXOEKBE4SyF2q86FBgFn6Efn9qVFVkckvUsf2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735808749; a=rsa-sha256; cv=none; b=yfQIMbAkU7sx37/E//jQTkZeVFkK6fs3RtFqzY/eJ+LCOvUXbzg+nHLvKfXgWpZDAoDRjB AEiW/pd8wqN9djBHsXLk/uOcNbOZr4lPHwKEPlUj2RAuThNH5dP1QZBvYjbOSMQu0YaZKp jv3JSm2Q9Ytt7LyJJw1fX6FxgM2GlQhQ0P/KhnCStpNBF5ntPWksuT1o5ICB7GdUbELCKK vFTcor0U2Ev4ZkCpdnXTfzI6b4NPxMrA8jaJ1eeQ7jko+2QEWHLPgOKDGUFSDlhYjE8sOp f7BG9iMPieY9aoTVnDzBrP6X2Yr0ktIgRpoMCv3+9ncPmBwRfmuGRysL02pwJg== Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YP15T1FxYz10q7; Thu, 2 Jan 2025 09:05:49 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 0131C607D8; Thu, 02 Jan 2025 10:05:46 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Zhenlei Huang Cc: Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD-STABLE Mailing List Subject: Re: Should kernel modules be executable? In-Reply-To: <10B8CED2-104F-4047-AED0-2B270CECB258@FreeBSD.org> (Zhenlei Huang's message of "Thu, 2 Jan 2025 10:35:59 +0800") References: <5120eb91-86c1-4c60-8d73-cbc46689669a@quip.cz> <10B8CED2-104F-4047-AED0-2B270CECB258@FreeBSD.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 02 Jan 2025 10:05:46 +0100 Message-ID: <8634i1r3f9.fsf@ltc.des.dev> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Zhenlei Huang writes: > Miroslav Lachman <000.fbsd@quip.cz> writes: > > Previously there were about 25 files with permission r-xr-xr-x and > > 871 with other permissions (mainly -r--r--r--). > > But on the FreeBSD 14.2 (upgraded by freebsd-update), there are 809 > > files with r-xr-xr-x permission and only 66 with other permissions > > (63 with r--r--r--) > Yes, indeed. The permission of kernel modules was changed from 555 to > KMODMODE ( NOBINMODE, 444 ). See https://reviews.freebsd.org/D42768 > for more context. And yet the observed change is the opposite. Looking at a 14.2 kernel tarball, the modules are not executable, but on a 14.2 system updated from an earlier release using freebsd-update, they are. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org