[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-07-02 Thread Andrea Righi
*** This bug is a duplicate of bug 1830433 ***
https://bugs.launchpad.net/bugs/1830433

I think this one is a duplicate of #1830433 (and the fix has been
already applied to bionic).

** This bug has been marked a duplicate of bug 1830433
   32-bit x86 kernel 4.15.0-50 crash in vmalloc_sync_all

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  New

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? fbcon_cursor+0x1b0/0x1b0
  [  546.117782]  do_unblank_screen+0xaa/0x1b0
  [  546.117784]  vt_ioctl+0x4e3/0x11e0
  [  546.117786]  ? complete_change_console+0xe0/0xe0
  [  546.117788]  tty_ioctl+0xec/0x910
  [  546.117793]  ? jbd2_journal_stop+0xd7/0x3e0
  [  546.117797]  ? ext4_free_inode+0x3c7/0x560
  [  546.117798]  ? 

[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-05-14 Thread Juerg Haefliger
Thanks Steve, but I'm still not able to reproduce the kernel crash. If I
start netbeans, the current session is killed and I'm thrown back to the
login screen. If I do this multiple times the VM eventually simply dies.
But no kernel crash.

kernel: 4.15.0-49-generic
netbeans: 10.0-3~18.04.1ubuntu1
openjdk-11-jre: 11.0.3+7-1ubuntu2~18.04.1

qemu-system-x86_64: /build/qemu-VBsewI/qemu-3.1+dfsg/hw/display/qxl.c:1230: 
qxl_check_state: Assertion `!spice_display_running || 
SPICE_RING_IS_EMPTY(>cmd_ring)' failed.
2019-05-14 07:32:36.996+: shutting down, reason=crashed

I'm on a Disco host, are you running on Bionic?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  New

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? 

[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-05-13 Thread Steve Beattie
dom xml is attached. netbeans is the version in bionic-
updates/-security, 10.0-3~18.04.1ubuntu1.

I should note that the jvmjre used is 11.0.3+7-1ubuntu2~18.04.1, which
is not in the archive yet (but will be soon), as it's a security update
for openjdk that I'm testing in the vm.

** Attachment added: "dom xml description"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1828632/+attachment/5263472/+files/sec-bionic-i386.xml

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  New

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? fbcon_cursor+0x1b0/0x1b0
  [  546.117782]  do_unblank_screen+0xaa/0x1b0
  [  546.117784]  vt_ioctl+0x4e3/0x11e0
  [  546.117786]  ? complete_change_console+0xe0/0xe0
  [  546.117788]  

[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-05-13 Thread Juerg Haefliger
I'm unable to reproduce this issue. Can you share your libvirt domain
xml? And what version of netbeans are you using?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  New

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? fbcon_cursor+0x1b0/0x1b0
  [  546.117782]  do_unblank_screen+0xaa/0x1b0
  [  546.117784]  vt_ioctl+0x4e3/0x11e0
  [  546.117786]  ? complete_change_console+0xe0/0xe0
  [  546.117788]  tty_ioctl+0xec/0x910
  [  546.117793]  ? jbd2_journal_stop+0xd7/0x3e0
  [  546.117797]  ? ext4_free_inode+0x3c7/0x560
  [  546.117798]  ? ext4_free_inode+0x1f2/0x560
  [  546.117812]  ? intel_pmu_lbr_init_atom+0x46/0x50
  [  546.117819]  ? call_rcu_sched+0x14/0x20
  [  546.117821]  ? tty_vhangup+0x20/0x20
  [  

[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-05-13 Thread Juerg Haefliger
** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Bionic)
 Assignee: (unassigned) => Juerg Haefliger (juergh)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  New

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? fbcon_cursor+0x1b0/0x1b0
  [  546.117782]  do_unblank_screen+0xaa/0x1b0
  [  546.117784]  vt_ioctl+0x4e3/0x11e0
  [  546.117786]  ? complete_change_console+0xe0/0xe0
  [  546.117788]  tty_ioctl+0xec/0x910
  [  546.117793]  ? jbd2_journal_stop+0xd7/0x3e0
  [  546.117797]  ? ext4_free_inode+0x3c7/0x560
  [  546.117798]  ? ext4_free_inode+0x1f2/0x560
  [  546.117812]  ? intel_pmu_lbr_init_atom+0x46/0x50
  [  546.117819]  ? 

[Kernel-packages] [Bug 1828632] Re: bionic i386 kernel crashes in memory pressure situations

2019-05-10 Thread Steve Beattie
In discussing this with Tyler Hicks, he noted that is a somewhat similar
i386 PTI failure report:
https://lore.kernel.org/lkml/14206a19d597881b2490eb3fea47ee97be17ca93.ca...@sympatico.ca/
and that the response to it needs fixes from the tip/x86/mm branch. Is
it possible that the bionic PTI i386 backports are missing some
additional fixes?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1828632

Title:
  bionic i386 kernel crashes in memory pressure situations

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  The linux-image-4.15.0-49-generic (currently in bionic-proposed) can
  be made to crash in a kvm guest with memory pressure. The reproducer
  used is to attempt to run netbeans with openjdk-8-jre installed as the
  only jvm. It will fail to run, and when it fails, it also causes
  gnome-shell to crash. After 3 to 5 repeats of this, the kernel will
  crash with the following oops in dmesg:

  [  545.926175] rfkill: input handler enabled
  [  546.117550] [ cut here ]
  [  546.117552] kernel BUG at 
/build/linux-S9wgEU/linux-4.15.0/arch/x86/mm/fault.c:268!
  [  546.117564] invalid opcode:  [#1] SMP PTI
  [  546.117565] Modules linked in: snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hda_core snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi 
snd_seq_midi_e
  vent snd_rawmidi irqbypass snd_seq snd_seq_device input_leds joydev snd_timer 
serio_raw snd soundcore qemu_fw_cfg mac_hid binfmt_misc sch_fq_codel ib_iser r
  dma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi 
scsi_transport_iscsi parport_pc ppdev lp parport ip_tables x_tables autofs4 
btrfs zstd_compress r
  aid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pc
  lmul pcbc qxl ttm drm_kms_helper syscopyarea aesni_intel aes_i586 sysfillrect 
sysimgblt crypto_simd cryptd fb_sys_fops psmouse virtio_blk virtio_net floppy
  drm pata_acpi i2c_piix4
  [  546.117600] CPU: 0 PID: 1335 Comm: Xorg Not tainted 4.15.0-49-generic 
#53-Ubuntu
  [  546.117600] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.10.2-1ubuntu1 04/01/2014
  [  546.117618] EIP: vmalloc_fault+0x229/0x240
  [  546.117618] EFLAGS: 00010086 CPU: 0
  [  546.117619] EAX: 026c EBX: c3e20c50 ECX: f8eb EDX: 
  [  546.117620] ESI: f140 EDI: f800 EBP: eddc1934 ESP: eddc1918
  [  546.117621]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117621] CR0: 80050033 CR2: f140 CR3: 25f16000 CR4: 001406f0
  [  546.117624] Call Trace:
  [  546.117637]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117638]  __do_page_fault+0x39d/0x510
  [  546.117640]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117641]  do_page_fault+0x27/0xf0
  [  546.117644]  ? kvm_async_pf_task_wait+0x1b0/0x1b0
  [  546.117645]  do_async_page_fault+0x55/0x90
  [  546.117655]  common_exception+0x130/0x136
  [  546.117659] EIP: qxl_image_init+0x338/0x390 [qxl]
  [  546.117659] EFLAGS: 00010286 CPU: 0
  [  546.117660] EAX: fffbb000 EBX: 0fec ECX: fffbb014 EDX: 0030
  [  546.117661] ESI: f140 EDI: fffbb018 EBP: eddc1a18 ESP: eddc19e4
  [  546.117661]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  [  546.117663]  ? ioremap_nocache+0x12/0x20
  [  546.117665]  qxl_draw_dirty_fb+0x1cd/0x3d0 [qxl]
  [  546.117668]  qxl_primary_atomic_update+0x159/0x2c0 [qxl]
  [  546.117680]  drm_atomic_helper_commit_planes+0xe8/0x240 [drm_kms_helper]
  [  546.117684]  drm_atomic_helper_commit_tail+0x23/0x50 [drm_kms_helper]
  [  546.117688]  commit_tail+0x5d/0x60 [drm_kms_helper]
  [  546.117691]  drm_atomic_helper_commit+0xf7/0x100 [drm_kms_helper]
  [  546.117695]  ? drm_atomic_helper_setup_commit+0x3f0/0x3f0 [drm_kms_helper]
  [  546.117715]  drm_atomic_commit+0x3f/0x50 [drm]
  [  546.117719]  restore_fbdev_mode_atomic+0x16b/0x1c0 [drm_kms_helper]
  [  546.117723]  restore_fbdev_mode+0x2c/0x150 [drm_kms_helper]
  [  546.117725]  ? _cond_resched+0x17/0x40
  [  546.117729]  drm_fb_helper_restore_fbdev_mode_unlocked.part.32+0x21/0x70 
[drm_kms_helper]
  [  546.117732]  drm_fb_helper_set_par+0x45/0x80 [drm_kms_helper]
  [  546.117743]  fb_set_var+0x1a9/0x440
  [  546.117750]  ? wakeup_preempt_entity+0x73/0x80
  [  546.117752]  ? check_preempt_wakeup+0x108/0x230
  [  546.117753]  ? check_cfs_rq_runtime+0x70/0x70
  [  546.117755]  ? check_preempt_curr+0x27/0x80
  [  546.117757]  ? ttwu_do_wakeup+0x17/0x190
  [  546.117760]  fbcon_blank+0x29e/0x370
  [  546.117772]  ? __switch_to_asm+0x27/0x4c
  [  546.117774]  ? fbcon_cursor+0x1b0/0x1b0
  [  546.117782]  do_unblank_screen+0xaa/0x1b0
  [  546.117784]  vt_ioctl+0x4e3/0x11e0
  [  546.117786]  ? complete_change_console+0xe0/0xe0
  [  546.117788]  tty_ioctl+0xec/0x910
  [  546.117793]  ? jbd2_journal_stop+0xd7/0x3e0
  [  546.117797]  ? ext4_free_inode+0x3c7/0x560
  [  546.117798]  ?