From nobody Wed Nov 27 10:29:47 2024 Received: from out187-22.us.a.mail.aliyun.com (out187-22.us.a.mail.aliyun.com [47.90.187.22]) (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 0414B1F9401 for ; Fri, 11 Oct 2024 04:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619825; cv=none; b=tAFoFXIcc8JIkoh7gKQ415Jt6yXQeNpT2fyPLmm0PUVc5NHHNdHPhCWgayhEeXvxUQj2QDv1dmzDJxY5FgX78Irsb5IISZ7MGKFhQSWe4CqIb7qxoOROn1XeRCq+F1QsSybp65wkXSCiMJR0THFFgyBI5sPTzMrTYmHoQi2zN5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619825; c=relaxed/simple; bh=H4AbiP3Ka6rFdbupztUl5i9FuHWB54gnrajmy+wHWew=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oiU+X6w6BtCzG+xueKJCikhpYKzRfxvbvwVioFNESzdF5g7XYKyLOSt35dxDfqvZiyxAgD1KpugDGteOCW1NUpaVqaDI+Lo6X7ozf55mCwNapqJqCIBftkasL6sxf8ko3GbYO6AkkoDsusLM6uV0IUQnaP33dV3O4FnLdE3dDQ0= 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=Av0JZc5u; arc=none smtp.client-ip=47.90.187.22 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="Av0JZc5u" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728619811; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=WZ7paHUzaVY/odtQMce80h9D0+PTfQEqps5tmCXYmKg=; b=Av0JZc5u/E8i7ImYDeg/GN8+VHG9ptWvg821Fj58+uua4ewCWbv8Gb/TwQ6tXKR2k4gqvrdLyfyeKI+p6HpuViOSjRL+GDsPuXkZqnWjTkplq16VQKyXZtrMyzkcwbpkn58xKu3hbRnJrjKdKMOvIV4laf8QbsL+qowdIW73aSU= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tvP_1728619490) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:54 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 1/9] um: Remove UML specific debug parameter Date: Fri, 11 Oct 2024 12:04:33 +0800 Message-Id: <20241011040441.1586345-2-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" It does nothing but emit a warning when 'debug' is provided in the kernel command line. It can be a bit annoying, as 'debug' is also a valid kernel parameter to enable kernel debugging. Signed-off-by: Tiwei Bie --- arch/um/kernel/um_arch.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 38cbb41a64bc..6d755a37d5c4 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -167,19 +167,6 @@ __uml_setup("root=3D", uml_root_setup, " root=3D/dev/ubd5\n\n" ); =20 -static int __init no_skas_debug_setup(char *line, int *add) -{ - os_warn("'debug' is not necessary to gdb UML in skas mode - run\n"); - os_warn("'gdb linux'\n"); - - return 0; -} - -__uml_setup("debug", no_skas_debug_setup, -"debug\n" -" this flag is not needed to run gdb on UML in skas mode\n\n" -); - static int __init uml_console_setup(char *line, int *add) { have_console =3D 1; --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out0-217.mail.aliyun.com (out0-217.mail.aliyun.com [140.205.0.217]) (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 627FE1922C4 for ; Fri, 11 Oct 2024 04:35:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.217 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728621352; cv=none; b=gEaROaU5W0ROvK2vpDXU98WWKG5ZPe19MYwUQwvDqDWFZ76hp9BPgXjuC85y3jktOBO+iudMtJjACqTMkXd25ZlvZN/hD4DfZZFnH8Q3hBzl+YOwbk/tMu5A0hPJWUyqk6QMG1sjZS8lEw8z8SnF++V/EZ0k8EAQe+iJqdtk/Rc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728621352; c=relaxed/simple; bh=J42O+doOhRUx/QZLvUwQVDtcDtTfzW0HZYmzwTsySnQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SYt0vlSqvxmm04pSG+3ixIWn6/Mmz7xv0TdZ+h4J3Z9UiKIMXC+4NQpJ0HkXBzI7q3x9srMkH9HMc3C8NX+rBbNqHl6/kns68B4u7o2ZPt46NmeKqJ6mdPoY9dlx3M5MRQcwhIGCxAeGHJ6/FQI+gUIB1wueIVtow2bAvrKI8wE= 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=CUsYi+Uk; arc=none smtp.client-ip=140.205.0.217 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="CUsYi+Uk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728621345; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=r4f8uaoElW6Tz/MJWwXbPIXXxPfOt+tP+zCNiNmUVAs=; b=CUsYi+UklyUIP0M+Su34jPv53GcstmnSCbVVTgU6rhPrCGeHWyQmQz+DHvl+UoYxXg7y6cDkt8UWzao3NmRS+CnIJ9oWBctoGuxGrhPY7AAvu6pebBLpKyp68xWirzZtOLyC2wO2DS5VX0rNjN/nQq1uu3taC8eItrQDGfycpyc= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33ty8_1728619494) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:54 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 2/9] um: Do not propagate mem parameter to kernel Date: Fri, 11 Oct 2024 12:04:34 +0800 Message-Id: <20241011040441.1586345-3-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 will be passed to user space as an environment option by kernel with a warning like: Unknown kernel command line parameters "mem=3D2G", will be passed to user s= pace. Signed-off-by: Tiwei Bie --- arch/um/kernel/physmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index 636830fe00f2..d60df3626727 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c @@ -139,6 +139,8 @@ EXPORT_SYMBOL(phys_mapping); static int __init uml_mem_setup(char *line, int *add) { char *retptr; + + *add =3D 0; physmem_size =3D memparse(line,&retptr); return 0; } --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out187-15.us.a.mail.aliyun.com (out187-15.us.a.mail.aliyun.com [47.90.187.15]) (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 48A061F940E for ; Fri, 11 Oct 2024 04:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619826; cv=none; b=XFGOpPu7Y+DOldZCjr7ezgmV8dmN9JRE+syp+TUqkCa2vwCDo2pS39CancOKX3lRaw0RiV5c4eUIQmuBvYrmNqGU66Csu2eRaxxzLYyREx6+bu9OePqLG9ilDSTj7ca2YVXTzuRoekUynyzwFLbdMCN3snMV7m9ZultSe5gUxtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619826; c=relaxed/simple; bh=0Jdr0XE4NDl4Y6NZ4WrezwZHEAp3bvLB6qoaxEIk4SA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cqN7HdZy/ZvCBrkvFCV1L55i6nYXZFJ9IgRYTmBwpdhItGD6rZ/y21agBpt+G2veEomjYr+GCoCPzzV8vcYeSAewkhkR9IKUh6XOjtmD0Y5jDpJtkk7mus5oHBAODk14bdz+IRobt27X6xmDcxP4VEdRpATB5zkDvr4TB9Y/Ssk= 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=0zMdrGMF; arc=none smtp.client-ip=47.90.187.15 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="0zMdrGMF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728619812; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=JqBp18vUFTJ52DrJam+hRUvSyDLMH764FRvn01AkcTQ=; b=0zMdrGMFfdjFZC+6W4CBO15v9HGSDRJM9mNyhNoenWXEVXLtXsPyTv6cHgL8fBmt9dHrBHloYzbRSaBqBMi16Zoi9Fs7fVlzD9+nUy45MCM15c+XxEqsgHtqkdYyWGSkLwihszFXG9anfACol4J/iTbD0VigQ8NX0u/PF16nKpM= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tyR_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 3/9] um: Do not propagate uml_dir parameter to kernel Date: Fri, 11 Oct 2024 12:04:35 +0800 Message-Id: <20241011040441.1586345-4-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 will be passed to user space as an environment option by kernel with a warning like: Unknown kernel command line parameters "uml_dir=3D/foo", will be passed to = user space. Signed-off-by: Tiwei Bie --- arch/um/os-Linux/umid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c index e09d65b05d1c..eb523ab1e218 100644 --- a/arch/um/os-Linux/umid.c +++ b/arch/um/os-Linux/umid.c @@ -358,6 +358,8 @@ char *get_umid(void) =20 static int __init set_uml_dir(char *name, int *add) { + *add =3D 0; + if (*name =3D=3D '\0') { os_warn("uml_dir can't be an empty string\n"); return 0; --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out0-204.mail.aliyun.com (out0-204.mail.aliyun.com [140.205.0.204]) (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 5C7741C57AA for ; Fri, 11 Oct 2024 04:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.204 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620434; cv=none; b=MXnF0nVPYucu300+3RIc18wHvPRq+du1Vn0JEsqX/AEI29/OpgSxRq3yFGIlh5aYkrXao7zGNRtkRGrrWLP0Mtwpk1DdysNRn0OADwjExw6118XVO3Jget2Eb/pTBoOXw0jg7piYfu6j7I8aZ0bKjC8YhtuWl5FAK1VID3GoTZQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620434; c=relaxed/simple; bh=ZsYo2T/bqu4tq9UIJopEojPy3JaHqKnJRWbfZ5DyoZ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=niKTe3xiDxYO7lxI848K/9UqUAdfjpbd0WNWuLouWmOAJ/9ysu6UnQUWYufZ+ZceBfDb2LFK2B9gkt3MD43FLZCEM/7EOiGRhb/DDIWaC+Qcot0hL9657uA3ifwVOdmJjcGtUHzDm4RcpYhb6lYnLrjViplg8O+R/Tv4AWwNeUQ= 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=f013Btbg; arc=none smtp.client-ip=140.205.0.204 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="f013Btbg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728620428; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=5FGxvE++JZaYDMBJ9FqjCNXnX4zxFosLHXSH+gJCOYg=; b=f013BtbgWyZZKRAVpbsIa8TvrbKeYBNJvdx34oM6qjweQ7pTvetVskdbeFJ8M7d0zT7rkDyhKgvbsSRA5Ek7JNEO2CrWthjE7OinS0V3zEPgKk/zOSnKlywunswbb4Lc9YTXssWygrw0eXIrf2ZTW6Lzc/YUFiCdcQ59LZKXiNI= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tyg_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 4/9] um: Do not propagate dtb parameter to kernel Date: Fri, 11 Oct 2024 12:04:36 +0800 Message-Id: <20241011040441.1586345-5-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 will be passed to user space as an environment option by kernel with a warning like: Unknown kernel command line parameters "dtb=3D/foo", will be passed to user= space. Signed-off-by: Tiwei Bie --- arch/um/kernel/dtb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/kernel/dtb.c b/arch/um/kernel/dtb.c index 4954188a6a09..73369446ed1e 100644 --- a/arch/um/kernel/dtb.c +++ b/arch/um/kernel/dtb.c @@ -31,6 +31,7 @@ void uml_dtb_init(void) =20 static int __init uml_dtb_setup(char *line, int *add) { + *add =3D 0; dtb =3D line; return 0; } --=20 2.34.1 From nobody Wed Nov 27 10:29:47 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 From nobody Wed Nov 27 10:29:47 2024 Received: from out187-16.us.a.mail.aliyun.com (out187-16.us.a.mail.aliyun.com [47.90.187.16]) (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 1CE531F4727 for ; Fri, 11 Oct 2024 04:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620444; cv=none; b=Umd6cLASMdJE88oNlFu/6DqMgN2eUMWCZ0XZjMbfelBaWhyVa92rE1SCt7m27E1W1mmYNNb5xgEXpQW4TBMILaC4VatbqpcqwOgIeLYFHFdetnPaDjFe8cCHlCl3WCE6HgRLoDVGrs7+XxbTp3FM0yj5bv88OCxmw2HPafCf3lg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620444; c=relaxed/simple; bh=q6oEOvXjndHKLCB747YvVogEwXAdlcOdo8EPjxEMY1M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fi4wMkGn2LntG4QCTtTyfFcDWoI5ViadvLl5WoxHd7e4SI81O2eXFdSmOJhiYvTJ3bPnBq5tnuSKzo9/EsI0gm0XLNK5FuJd0YDxyFnxs0v/c5tUHF30mnhr/WS4kUqvmjXzghhvNRdC75b0BQGgQHL+ALStRY4pxa62wFM5HFc= 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=BR20f3zc; arc=none smtp.client-ip=47.90.187.16 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="BR20f3zc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728620429; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=XWQ1ddR8ZcAwD91UZmRnhbCLLnJTKTAUdU8I9wrCZOA=; b=BR20f3zcHEKtuGO3mxDeGl/PsbMOWjl7oJKtuxxrhnrdm1IcjWOqqtdMnsx9PPeAQ0BWHHMdNSaiRNhvJU8VMr4iWKVRt8f5u6KHhkwXVLpqUE0WpnZy93vNOs4TNkch02mTk9pfdePk0lrUndZg3ji9aI627vPTdD5qnkfgpBg= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tz8_1728619495) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 6/9] hostfs: Do not propagate hostfs parameter to kernel Date: Fri, 11 Oct 2024 12:04:38 +0800 Message-Id: <20241011040441.1586345-7-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 will be passed to user space as an environment option by kernel with a warning like: Unknown kernel command line parameters "hostfs=3D/foo", will be passed to u= ser space. Signed-off-by: Tiwei Bie --- fs/hostfs/hostfs_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 6d1cf2436ead..8d47c6b70c9f 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -57,6 +57,7 @@ static int __init hostfs_args(char *options, int *add) { char *ptr; =20 + *add =3D 0; ptr =3D strchr(options, ','); if (ptr !=3D NULL) *ptr++ =3D '\0'; --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out0-212.mail.aliyun.com (out0-212.mail.aliyun.com [140.205.0.212]) (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 5CF821CB506 for ; Fri, 11 Oct 2024 04:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.212 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620435; cv=none; b=P3/aKDsnyPfqguefTiaOcLv02SWUCecPhUWgPmpPNzLL0oYZ1Rm540uT4g3+JBCUIytrkEfMkW6xDyz5EaNtnvHgOQLWER3hGMyclcOQa4h3qe6tR0bTCARpKndTP+d8Inq5iXlRHF7Q+eeZuAm7nH9vxNkMe375bVHUd2PKzVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620435; c=relaxed/simple; bh=5OY7ba4GM2/2WjdXlxbfOLZAwD1fHx6NpTVCi4QXJkk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TlZOsQKjL326rxi2ZXrCnccnktt8X8fa71hv6XulBd+YPWQ46KMRgzUy9QXHfIh00j0Wlq97nXcQFXCgGXz7ze2O0+35L+YcLP6QZCGX9MV1wpZ6UI3PushcYI84VjPBxF9lXnSXGTAP6wSYFKZaiL6YlTcIASYp35RsED+S1Xo= 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=Mxw7QSxy; arc=none smtp.client-ip=140.205.0.212 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="Mxw7QSxy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728620429; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=JxRiuypZIeLXCZKlxLO86zep9YFX8spIesFp4LrNwoE=; b=Mxw7QSxy4LUIj01+i/48UVUUNgmVl6Nsyneejv1t71aoSYuyrI0bhxD+moyZk5o+w99DT2Hh/eOUU5bbpxkG7rM1AfJ4nuS+qmh7KlpsPnrlf1iym4+3AhHkp6b0nFj+s/ISiiCrO1tjmUs4spyu5gNMnMSDq7xjhQ6XPJwVkoE= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tzT_1728619496) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 7/9] um: hostaudio: Do not propagate dsp parameter to kernel Date: Fri, 11 Oct 2024 12:04:39 +0800 Message-Id: <20241011040441.1586345-8-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 will trigger a warning and be passed to user space as an environment option. Signed-off-by: Tiwei Bie --- arch/um/drivers/hostaudio_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_k= ern.c index 9d228878cea2..09af903b75ae 100644 --- a/arch/um/drivers/hostaudio_kern.c +++ b/arch/um/drivers/hostaudio_kern.c @@ -48,6 +48,7 @@ MODULE_PARM_DESC(mixer, MIXER_HELP); #ifndef MODULE static int set_dsp(char *name, int *add) { + *add =3D 0; dsp =3D name; return 0; } --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out187-2.us.a.mail.aliyun.com (out187-2.us.a.mail.aliyun.com [47.90.187.2]) (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 40BE51CB506 for ; Fri, 11 Oct 2024 04:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620443; cv=none; b=ptS4RdQG6YQsQ4sWSB7JpHO6BembgyMV0XdZKnBfXeLfc/NTq2Yc8drq1Q2vvneFyb2ksc+aOATvHTjo2fWQiNDRDht+L5v/MWqXiqHKtAyRztpmUmwEtMhp5QGx0OFCcSoNTv8nKAjyULyRu43ps2ZVuUdAnVDmI8P68XZsnOg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728620443; c=relaxed/simple; bh=Jq4jzYqKznKhRX0mWI0FKN2O5bHda7cDEW5QY8QlSSI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CSiON2pkh8C+uDc0XRRyajwH6JTxID3H1GXGwp47PwCQ+ZFnC9K+We/UoAeIErkxhNYwVh6vSeEgTKtd/JKmMLOrDUO5miiwgu1cuC6OTZ01eRWKCH4noV1IaKFoPXqGZl1ZKMyYsx21B3QjH9NdMu7Qn/5MekRr/oOzPw9Baa0= 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=W7Td8R8E; arc=none smtp.client-ip=47.90.187.2 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="W7Td8R8E" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728620429; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=UXivylKKVZoaavgHJDWP6Lp6p/IoGhjIDtQtnWzg12U=; b=W7Td8R8EOtSGSUXkhdkxVtYKLq6g1Ca3h/VBz+GdV3Az/5BzXFa07DD7Ve70J+Ofn9iEd+4m66COonaSaU1ULTHa71HantfSEP11wtTEl7JrqjMt2dq9fNwmSol2FgeIGakO7XarzgpzXSES1Xpc5gNIuUzP9UMwT51SH8gjt7g= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tzj_1728619496) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 8/9] um: hostaudio: Do not propagate mixer parameter to kernel Date: Fri, 11 Oct 2024 12:04:40 +0800 Message-Id: <20241011040441.1586345-9-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 will trigger a warning and be passed to user space as an environment option. Signed-off-by: Tiwei Bie --- arch/um/drivers/hostaudio_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_k= ern.c index 09af903b75ae..0ac149de1ac0 100644 --- a/arch/um/drivers/hostaudio_kern.c +++ b/arch/um/drivers/hostaudio_kern.c @@ -57,6 +57,7 @@ __uml_setup("dsp=3D", set_dsp, "dsp=3D\n" DSP= _HELP); =20 static int set_mixer(char *name, int *add) { + *add =3D 0; mixer =3D name; return 0; } --=20 2.34.1 From nobody Wed Nov 27 10:29:47 2024 Received: from out187-16.us.a.mail.aliyun.com (out187-16.us.a.mail.aliyun.com [47.90.187.16]) (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 294511F942F for ; Fri, 11 Oct 2024 04:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619827; cv=none; b=WmV5HWeAn9qHVLdBkyw8m7a0w1sCJl5Zr0nCOdRTTYBtwUnwBXzRDqhUFVnWTlOGFwnoM70XCdX3JjSw2HaYc+EhDsG+VYRd04k3bb9A8JpmGPhfegRKb+N5CSJKHYNXIOAX2LR90S4ksuqtLEv1GIilGHU4cANlLQbj0edvgtw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728619827; c=relaxed/simple; bh=An5b94vrzHbchvof/Mqn7OCFdkkGopWJZjOtSg3ivn8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LJxkrJ4z5Hx5SG3b2MilZHOec3wtGpbZGdzGxj5FAaB5pXk4T9Ec+eAfVcWRMztZ8D1F0HXtMM22Xy7RP2qkiKZNjJo0T1OO9ZFMCaYwvtEHVsLsrcYV5Y8+AXd3UiQfKgp+YvIAvgkzBCLmwSzlpo9MvTEGr8yegobUSgg3MZc= 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=SwHu3Eqv; arc=none smtp.client-ip=47.90.187.16 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="SwHu3Eqv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1728619814; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Se+HDEpWKr4lq3f8uBsVRYaVltXK6GKDvy+iKLq80QQ=; b=SwHu3EqvxJuJRkSuqbkUve/qZ7dD/7KLRwmkJE8TD95dAj+IM5IWpadFWluM3V4y927se/E1hhoqbkpJ2+xsSY5tgclIqLrAa/lwGeWyKnd/QJ7G4B716zyb919BN1yD0kL54zXgjybKYoMTvJFyVHLt8xJNcuKiOnKofscGb5k= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Ze33tzx_1728619496) by smtp.aliyun-inc.com; Fri, 11 Oct 2024 12:04:57 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 9/9] um: Do not propagate initrd parameter to kernel Date: Fri, 11 Oct 2024 12:04:41 +0800 Message-Id: <20241011040441.1586345-10-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. It specifies the name of the file containing the initrd image, which is unknown to kernel. Signed-off-by: Tiwei Bie --- arch/um/kernel/initrd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/kernel/initrd.c b/arch/um/kernel/initrd.c index 47b8cb1a1156..99dba827461c 100644 --- a/arch/um/kernel/initrd.c +++ b/arch/um/kernel/initrd.c @@ -34,6 +34,7 @@ int __init read_initrd(void) =20 static int __init uml_initrd_setup(char *line, int *add) { + *add =3D 0; initrd =3D line; return 0; } --=20 2.34.1