From nobody Wed Nov 27 12:36:49 2024 Received: from out0-216.mail.aliyun.com (out0-216.mail.aliyun.com [140.205.0.216]) (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 46FC42FB2 for ; Fri, 11 Oct 2024 04:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619819; cv=none; b=YMt/Wuu9B5G5vxcWK4GUS2OeG0xS/CcxKVF5KC2pU0W+KfFXwNuof/OMls/UztX23tp+8oKygwhEMXUb/+nJ5RNc+ZjWRrQmME2axJ9aOXbz86ZxeaIMEyYjFCbBiDCAKQGbn+QakBn5EzCT0LySSucED9k00XRIMZs5jtEAIqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619819; c=relaxed/simple; bh=LUR8oA2I+CYugPR0HaQau2Ssqs86RtunwupGj/abuuE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ADkXgPPTRQCmLx681QTZ0XaBNgZlUwZWKrCQ2RqyjRlzJZ1MwPMihq6Uu86ElxkZ9Xtni4pAEKye+zW4QcbZkv+a5VvqkUXYbFZbUBCB79iVl14S5oyVzd7QlCDAp6DOlWlgRf3NTQ0P+bqWZtdcnCYmj6hk1wHcAFcXbS28qb0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=FbqFCNmM; arc=none smtp.client-ip=140.205.0.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="FbqFCNmM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728619813; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=KsXLx7unjaR1Z1JlqwiOWIQ7xIjntSghjwdL0iHHK+U=; b=FbqFCNmM7Nm4OsFhS6VPgOijbnShUB2Rrs4OOLdTd/jwueMHROIJJCf03Kb8vuZLKy6MBKcVEAw0jwzAb8KgVqTgZvOmk/xZkaP7p3+gbfO3yu7RUoymN6IOv6UQ4+GjBELIr+XZetOwJHYrA1f7gK7Yp6rXkogRZsBNBHl3aZU= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tyt_1728619495) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:55 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 5/9] um: Do not propagate noreboot parameter to kernel Date: Fri, 11 Oct 2024 12:04:37 +0800 Message-Id: <20241011040441.1586345-6-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011040441.1586345-1-tiwei.btw@antgroup.com> References: <20241011040441.1586345-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This parameter is UML specific and is unknown to kernel. It should not be propagated to kernel, otherwise it could be passed to user space as a command line option by kernel with a warning like: Unknown kernel command line parameters "noreboot", will be passed to user s= pace. Signed-off-by: Tiwei Bie --- arch/um/os-Linux/skas/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/proces= s.c index 2286486bb0f3..8b328eb9d1f7 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c @@ -622,6 +622,7 @@ static bool noreboot; =20 static int __init noreboot_cmd_param(char *str, int *add) { + *add =3D 0; noreboot =3D true; return 0; } --=20 2.34.1