Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2152643rdb; Sun, 21 Jan 2024 09:34:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz7f2WVyoV9FekBHfsT57azn9vNNGTW2NF7lX2G2YpbqA/NIDGyEPBCwKUxcwVmImqlS3i X-Received: by 2002:ac8:5a88:0:b0:42a:31b6:2aee with SMTP id c8-20020ac85a88000000b0042a31b62aeemr3679541qtc.43.1705858478517; Sun, 21 Jan 2024 09:34:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705858478; cv=pass; d=google.com; s=arc-20160816; b=GaQ8Chi0SbHB12P6+x76J2Wg1GK8lmWlZeMWARB7igMgJBjXuHiLB2DaYsGZq6q3xm i3BYMMj8pC7sN9vbYUP3ht4zGGohnRWKpz2EAQEld3+Euf2TEQtKQrCDZRVOOVcZzEyg UXUKqhTjtwzExE+rxxBWtEKVlpmDpc8jIAP77YkZNflkz7SmwJBxk06fcBZ5u+ZVor3f uwj8KlmTTFuvhn8vad7GktvrdFSnfNLZUr/EY1ojvFyRfROl81UCqCKOmA5HzFIf5gHy W+sd+M6W383Kd10wHMkqKvD3PdyCh9omGX0qJvQJJp32pqnCMyeGSaBaO1tlapLl7Isl yIKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=OD8Ruv5Z6/0dUrzR7pwmB6jzMRqOWFs8d2TNmfSltsI=; fh=ofMv7648eDAg50Gcz4oju0zXK1WTx9dRqZb9P7bUfjU=; b=ew209XS70kyktGPqBzheF8Wog882aS9qtSPgBM88lJO/CYQDLW9AeRQPF5Nj8vTppV N7AplMGwbbZ7ttkFwBBleCNoZARLRTQ8lOcA7NiDhKzqMQnpSjBm+UG44HsATQVI+WMa gAj1iic+I58tYl6ECH4VSEUdCS1im6iBFth77KfcQCxKZFpiPTesnluoshaFrTMRZ6Vb Nk/FiKAeapCOOxR9Ujd0gI2J6ZymfZHsuAiSAOT4gunuKum3jIX+RD+vwoZtkzS9rT/M 7B/bI05aW997nvfWmfbViBFOnD8dkZJ4wKDXGo9KIbuLa8cVvR3fJqVwePjKHgDza1g4 H0+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nF0aQ3+O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p20-20020a05622a049400b0042a2ec106dfsi3958287qtx.669.2024.01.21.09.34.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 09:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nF0aQ3+O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 484281C20B57 for ; Sun, 21 Jan 2024 17:34:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 411D7381CE; Sun, 21 Jan 2024 17:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nF0aQ3+O" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65CF237713; Sun, 21 Jan 2024 17:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705858470; cv=none; b=QqlKE5NNnX5naxSS8vNuSg3wZNm1GuVMwTOT9jXTV/g9eUeTgKKDONPPFJFyEfSVigIx4I48JrFbBkVSi7tNqur2EjHLwd7veGtLRH8K/ae2FvIQUew6+1A/p8BodEsH95QaJeGey497UuJ3vfd6stTkwD+3BOOt1yRaxLuXWak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705858470; c=relaxed/simple; bh=OD8Ruv5Z6/0dUrzR7pwmB6jzMRqOWFs8d2TNmfSltsI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=d9FSx1wwwJN66J6YlYqwKw2Ej/lsgvNb0k1zaSrvlnZdPI2aVAxSdYnGvPIYf1WK5s777rR+9d8hW6XCss57wdtTTx5nB3hhzWt/g+8bQ0MKw5Vw7o0Oqqi/9klobSO2eOx+s8toli77Z86ylNcwi6I5GqyaXCbiVNKGmG/Wc6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nF0aQ3+O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36B7CC433A6; Sun, 21 Jan 2024 17:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705858470; bh=OD8Ruv5Z6/0dUrzR7pwmB6jzMRqOWFs8d2TNmfSltsI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nF0aQ3+O6diulmjit0YiMdoN31lohxZwj1sUzQEqfPc/9MKsckJUPKtyxQBawWPks qUFBT68qRJzq4WJ257Gj8fdqvEJ9pKfUrtcfbDcIselG7gdAM4QWdqe9MqiGwMY8hg pa9fOgHTk3/BbMRRB7OIm5KJtjlS01o8monAaZeHOJCvM+58A1EE1GzKwzkQoSHK8L TufX9IX9mnFjZbznoqadjo25nNjTdYb4N5e4PYpSf4FzU64FukRkQG9AzTpm4FWX3w Idn7Mqap1yVSbU5YU4g0+DkevLsSy2rWk1M9i8mzDg9UB7Sn82z+Da5B1eobxxerLS 3r9sqz0XdkV0A== Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-204f50f305cso1616388fac.3; Sun, 21 Jan 2024 09:34:30 -0800 (PST) X-Gm-Message-State: AOJu0YywVynnpyqbCGURwdTspb6eaobAxhonNQaYQf/kN7KatMih+0Ar uJB2hM1j50hgRV2RGzAiFJFbbVppQ0lXbHh0CIxL7HcnvPCq0z3tZIjnefRzsSkUYlqHAkhX90v z4zgy+oenvk79DQgaHvldfxYsGYo= X-Received: by 2002:a05:6870:b489:b0:203:f3b8:411f with SMTP id y9-20020a056870b48900b00203f3b8411fmr2826580oap.20.1705858469601; Sun, 21 Jan 2024 09:34:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240118141246.370272-1-jtornosm@redhat.com> In-Reply-To: <20240118141246.370272-1-jtornosm@redhat.com> From: Masahiro Yamada Date: Mon, 22 Jan 2024 02:33:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V5 2/2] rpm-pkg: avoid install/remove the running kernel To: Jose Ignacio Tornos Martinez Cc: dcavalca@meta.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2024 at 11:12=E2=80=AFPM Jose Ignacio Tornos Martinez wrote: > > > What is the problem with this? > In my opinion, it is risky to remove the kernel that is running, that is > the reason why I am trying to protect this. > If you try to remove or update (and the running kernel is removed), if th= e > kernel and modules are already preloaded in memory, it could not happen > anything but some extra action could be necessary or automatically starte= d, > and even the new kernel could not boot. > Fedora and others are taking this into account with upper tools and decla= re > the running kernel as protected avoinding this action. But others > (i.e. openSUSE Tumbleweed) allow this behavior. As I replied in 1/2, I see an error like this: vagrant@opensuse-tumbleweed20231218:~> sudo rpm -i kernel-6.7.0_12924_g660a5f4a53e7-4.x86_64.rpm file /lib/modules/6.7.0-12924-g660a5f4a53e7/vmlinuz from install of kernel-6.7.0_12924_g660a5f4a53e7-4.x86_64 conflicts with file from package kernel-6.7.0_12924_g660a5f4a53e7-3.x86_64 You can proceed with 'rpm -i --force', but that is the user's responsibility if something bad happens. > It may only be a safety measure but it can also be beneficial to avoid > problems, just in case. > Besides, in this way, all the tested distributions would have the same > behavior. > > If it is ok, I will create a following version patch describing the probl= em > better and using indentation as you suggested for the other patch. No, not OK. > > Thanks > > Best regards > Jos=C3=A9 Ignacio > -- Best Regards Masahiro Yamada