focal/azure: The console log of ARM64 Ubuntu 18.04 has duplicate output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-azure (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Tim Gardner |
Bug Description
SRU Justification
[Impact]
There is duplicate output on the console . LSG team identify the root cause and suggested to apply two patches below.
https:/
https:/
What we are hitting is exactly in the second commit's log. Ubuntu kernel also needs the following diff:
diff --git a/kernel/
index f07367100ece.
--- a/kernel/
+++ b/kernel/
@@ -2203,7 +2203,7 @@ static int __init console_setup(char *str)
* for exacly this purpose.
*/
if (str[0] == 0 || strcmp(str, "null") == 0) {
- __add_preferred
+ __add_preferred
return 1;
}
Linux kernel: 5.4.0-1078-azure
Tested in Azure
Host version: 22477.1101-1-0
Image: Canonical 0002-com-
From Azure Serial Console, we can see duplicate output.
Such as:
[ 3.109140] Platform Keyring initialized
[ 3.109140] Platform Keyring initialized
[ 3.117148] Key type asymmetric registered
[ 3.117148] Key type asymmetric registered
[ 3.122303] Asymmetric key parser 'x509' registered
[ 3.122303] Asymmetric key parser 'x509' registered
[Test Plan]
Microsoft tested
[Where things could go wrong]
The kernel log could get corrupted.
[Other Info]
SF: #00338148
CVE References
affects: | linux (Ubuntu) → linux-azure (Ubuntu) |
Changed in linux-azure (Ubuntu): | |
status: | New → Fix Released |
Changed in linux-azure (Ubuntu Focal): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux-azure (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Patch submitted: https:/ /lists. ubuntu. com/archives/ kernel- team/2022- May/130776. html