no console when starting VM from cloud image

Bug #1438585 reported by Ming Lei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Trusty
Fix Released
Undecided
Ming Lei
Utopic
Fix Released
Medium
Ming Lei
Vivid
Fix Released
Medium
Unassigned

Bug Description

In current arm64 utopic cloud image, the 'console=' parameter has been removed from grub config, and always resort to 'stdout' DT property which is setup from QEMU.

Unfortunately parsing 'stdout' DT property is just merged to 3.19 kernel, so there is no console usable any more for arm64 utopic VM when booting via uefi/grub.

SRU Justification:
Impact: No console if arm64 Utopic based VM is booted from the cloud image.
Fix: backport stdout enablement patches from 3.19. 5 of these 6 patches are cherry picked from 3.19 to Utopic, and the other one is backported by just dropping the dt self-test code, and with these 6 patches, arm64 utopic VM can be booted with console.
Testcase: Boot one arm64 Utopic VM via uefi/grub.

5ba2ee8 of: support passing console options with stdout-path
5c64126 of: add optional options parameter to of_find_node_by_path()
7507839 of: Add bindings for chosen node, stdout-path
54e15d7 of: correct of_console_check()'s return value
4f2b1f0 of: Enable console on serial ports specified by /chosen/stdout-path
a699dfd of: Create of_console_check() for selecting a console specified in /chosen

CVE References

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1438585

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: utopic
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Ming Lei (tom-leiming) wrote : Re: no console when starting VM from utopic cloud image

The following LP entry is the one which has removed 'console=' parameter from grub in
the utopic cloud image.

http://bugs.launchpad.net/bugs/1419952

The direct effect is that there isn't console any more when booting utopic VM via
grub.

The fix is to backport the 'stdout' DT patches to utopic kernel, then utopic kernel
can choose the console automatically from the 'stdout' DT property which is setup
from QEMU automatically.

http://kernel.ubuntu.com/git?p=ming/ubuntu-utopic.git;a=shortlog;h=refs/heads/console-fix_stdout

Thanks,

Stefan Bader (smb)
description: updated
Changed in linux (Ubuntu Utopic):
importance: Undecided → Medium
status: New → Triaged
Changed in linux (Ubuntu):
status: Triaged → Fix Released
description: updated
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Utopic):
status: Triaged → Fix Committed
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Utopic):
assignee: nobody → Ming Lei (tom-leiming)
dann frazier (dannf)
Changed in linux (Ubuntu Trusty):
status: New → Confirmed
dann frazier (dannf)
summary: - no console when starting VM from utopic cloud image
+ no console when starting VM from cloud image
Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-utopic' to 'verification-done-utopic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-utopic
Revision history for this message
dann frazier (dannf) wrote :
tags: added: verification-done-utopic
removed: verification-needed-utopic
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (15.5 KiB)

This bug was fixed in the package linux - 3.16.0-36.48

---------------
linux (3.16.0-36.48) utopic; urgency=low

  [ Luis Henriques ]

  * Release Tracking Bug
    - LP: #1443946
  * Merged back Ubuntu-3.16.0-34.47 security release

linux (3.16.0-35.46) utopic; urgency=low

  [ Brad Figg ]

  * Release Tracking Bug
    - LP: #1442324

  [ Andy Whitcroft ]

  * [Config] CONFIG_DEFAULT_MMAP_MIN_ADDR needs to match on armhf and arm64
    - LP: #1418140

  [ Chris J Arges ]

  * [Config] CONFIG_PCIEASPM_DEBUG=y
    - LP: #1398544

  [ dann frazier ]

  * [Config] CONFIG_RTC_DRV_EFI=y on arm64
    - LP: #1441291

  [ Upstream Kernel Changes ]

  * Revert "USB: serial: make bulk_out_size a lower limit"
    - LP: #1441317
  * Revert "i2c: core: Dispose OF IRQ mapping at client removal time"
    - LP: #1441317
  * Revert "net: cx82310_eth: use common match macro"
    - LP: #1441317
  * KEYS: request_key() should reget expired keys rather than give
    EKEYEXPIRED
    - LP: #1124250
  * drm/i915/bdw: 3D_CHICKEN3 has write mask bits
    - LP: #1374389
  * drm/i915: call lpt_init_clock_gating on BDW too
    - LP: #1374389
  * drm/i915/bdw: Apply workarounds in render ring init function
    - LP: #1374389
  * drm/i915/bdw: Cleanup pre prod workarounds
    - LP: #1374389
  * drm/i915: Refactor Broadwell PIPE_CONTROL emission into a helper.
    - LP: #1374389
  * drm/i915: Add the WaCsStallBeforeStateCacheInvalidate:bdw workaround.
    - LP: #1374389
  * drm/i915/bdw: Remove BDW preproduction W/As until C stepping.
    - LP: #1374389
  * drm/i915: Rework GPU reset sequence to match driver load & thaw
    - LP: #1384469
  * drm/ast: switch to using CACHED by default for sysram
    - LP: #1420627
  * drm/ast: Add missing entry to dclk_table[]
    - LP: #1420627
  * drm/ast: Add reduced blanking modes for wide screen mode
    - LP: #1420627
  * drm/ast: Try to use MMIO registers when PIO isn't supported
    - LP: #1420627
  * drm/ast: POST chip at probe time if VGA not enabled
    - LP: #1420627
  * drm/ast: Properly initialize P2A base before using it in
    ast_init_3rdtx()
    - LP: #1420627
  * drm/ast: Don't assume DVO enabled means SIL164 on uninitialized chips
    - LP: #1420627
  * drm/ast: Cleanup analog init code path
    - LP: #1420627
  * audit: correctly record file names with different path name types
    - LP: #1439441
  * of: Create of_console_check() for selecting a console specified in
    /chosen
    - LP: #1438585
  * of: Enable console on serial ports specified by /chosen/stdout-path
    - LP: #1438585
  * of: correct of_console_check()'s return value
    - LP: #1438585
  * of: Add bindings for chosen node, stdout-path
    - LP: #1438585
  * of: add optional options parameter to of_find_node_by_path()
    - LP: #1438585
  * of: support passing console options with stdout-path
    - LP: #1438585
  * netfilter: nf_tables: disable preemption when restoring chain counters
    - LP: #1441317
  * netfilter: nf_tables: fix leaks in error path of nf_tables_newchain()
    - LP: #1441317
  * ipvs: rerouting to local clients is not needed anymore
    - LP: #1441317
  * netfilter: nft_compat: fix module refcount underflow
    - LP: #1441317
  * netf...

Changed in linux (Ubuntu Utopic):
status: Fix Committed → Fix Released
Ming Lei (tom-leiming)
Changed in linux (Ubuntu Trusty):
assignee: nobody → Ming Lei (tom-leiming)
Brad Figg (brad-figg)
Changed in linux (Ubuntu Trusty):
status: Confirmed → Fix Committed
Revision history for this message
Luis Henriques (henrix) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-trusty' to 'verification-done-trusty'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-trusty
Revision history for this message
Ming Lei (tom-leiming) wrote :

[tom@vm-test]$vim arm64-qemu
[tom@vm-test]$./arm64-qemu
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.13.11-ckt20+ (tom@tom-T450) (gcc version 4.8.2 20140110 (prerelease) [ibm/gcc-4_8-branch merged from gcc-4_8-branch, revision 205847] (Ubuntu/Linaro 4.8.2-13ubuntu1) ) #181 SMP PREEMPT Mon Jun 1 17:48:14 CST 2015 ()
[ 0.000000] CPU: AArch64 Processor [411fd070] revision 0
[ 0.000000] Memory limited to 1024MB
[ 0.000000] efi: Getting parameters from FDT:
[ 0.000000] efi: Can't find System Table in device tree!
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] DMA32 zone: 3584 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 262144 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] PERCPU: Embedded 10 pages/cpu @ffffffc03ffda000 s10880 r8192 d21888 u40960
[ 0.000000] pcpu-alloc: s10880 r8192 d21888 u40960 alloc=10*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560
[ 0.000000] Kernel command line: mem=1024M rootfstype=ext4 root=/dev/vda rw loglevel=9 no_console_suspend ip=dhcp
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] software IO TLB [mem 0x7b000000-0x7f000000] (64MB) mapped at [ffffffc03b000000-ffffffc03effffff]
[ 0.000000] Memory: 938804K/1048576K available (3508K kernel code, 249K rwdata, 1324K rodata, 194K init, 1180K bss, 109772K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000 (245759 MB)
[ 0.000000] vmemmap : 0xffffffbc00e00000 - 0xffffffbc01c00000 ( 14 MB)
[ 0.000000] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc040000000 ( 1024 MB)
[ 0.000000] .init : 0xffffffc00053a000 - 0xffffffc00056aa80 ( 195 kB)
[ 0.000000] .text : 0xffffffc000080000 - 0xffffffc000539154 ( 4837 kB)
[ 0.000000] .data : 0xffffffc00056b000 - 0xffffffc0005a94e0 ( 250 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] Architected cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 2199023255552ns
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.004477] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=625000)

tags: removed: verification-needed-trusty
tags: added: verification-done-trusty
Changed in linux (Ubuntu Trusty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.