[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-12-17 Thread Matt Zuba
I had this problem occur recently and was able to work with one of my
System Administrators to narrow it down.  I saw the floppy text in the
output so I asked my Sys Admin to connect the Floppy Drive in VCenter to
the VMs that were having this issue (3 new 18.04 installs) and the issue
is now resolved on all of them.  blkid, mdadm, nor fdisk hang anymore;
they all work as they should.  Not sure where the issue exactly lies,
but connecting a floppy helped resolve it for now.  I have a lot of
other 16.04 servers that do not have this issue, for what it's worth.

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  967.815561]  ? _cond_resched+0x19/0x30
  [  967.815563]  __x64_sys_openat+0x20/0x30
  [  967.815566]  do_syscall_64+0x5a/0x110
  [  967.815567]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.815568] RIP: 0033:0x7faa36406cce
  [  967.815572] Code: Bad RIP value.
  [  967.815573] RSP: 002b:7ffedb663f80 EFLAGS: 0246 ORIG_RAX: 
0101
  [  967.815574] RAX: ffda RBX: 4000 RCX: 
7faa36406cce
  [  967.815575] RDX: 4000 RSI: 564df70257b0 RDI: 
ff9c
  [  967.815576] RBP: 564df70257b0 R08: 564df70257b0 R09: 

  [  967.815576] R10:  R11: 0246 R12: 
7ffedb664240
  [  967.815577] R13:  R14: 0001 R15: 
564df7023e00

  [  967.799227] INFO: task mkfs.btrfs:3767 blocked for more than 120 seconds.
  [  967.803509]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.807192] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.810235] mkfs.btrfs  D0  3767   1866 0x
  [  967.810239] Call Trace:
  [  967.810251]  __schedule+0x2d0/0x840
  [  967.810254]  ? __switch_to_asm+0x34/0x70
  [  967.810256]  ? __switch_to_asm+0x40/0x70
  [  967.810258]  schedule+0x2c/0x70
  [  967.810260]  schedule_timeout+0x258/0x360
  [  967.810277]  wait_for_completion+0xb7/0x140
  [  967.810281]  ? wake_up_q+0x80/0x80
  [  967.810293]  __floppy_read_block_0+0x138/0x190 [floppy]
  [  967.810298]  ? floppy_cmos_show+0x30/0x30 [floppy]
  [  967.810302]  floppy_revalidate+0xf8/0x230 [floppy]
  [  967.810307]  check_disk_change+0x62/0x70
  [  967.810309]  floppy_open+0x2ae/0x380 [floppy]
  [  967.810311]  __blkdev_get+0xe5/0x550
  [  967.810313]  ? bd_acquire+0xd0/0xd0
  [  967.810315]  blkdev_get+0x10c/0x330
  [  967.810316]  ? bd_acquire+0xd0/0xd0
  [  967.810318]  blkdev_open+0x92/0x100
  [  967.810321]  do_dentry_open+0x143/0x3a0
  [  967.810323]  vfs_open+0x2d/0x30
  [  967.810326]  path_openat+0x2d4/0x16d0
  [  967.810328]  ? filename_lookup.part.60+0xe0/0x170
  [  967.810332]  ? strncpy_from_user+0x56/0x1b0
  [  967.810333]  do_filp_open+0x93/0x100
  [  967.810353]  ? strncpy_from_user+0x56/0x1b0
  [  967.810358]  ? __alloc_fd+0x46/0x140
  [  967.810360]  

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-11-05 Thread eresquigal
Same on physical HW (Medion with QuadCore)

This seems to happen during mdadm run, every time a new initrd is being
built.

lsblk doesn't hag.
blkid hangs.
mdadm hangs.

In this ps output, mdadm has been hung for almos two hours.

jpc@quad:~$ ps -ft pts/4 ; date
UIDPID  PPID  C STIME TTY  TIME CMD
root  7969 28631  0 20:29 pts/400:00:00 /bin/sh 
/var/lib/dpkg/info/linux-image-5.3.0-19-generic.postinst triggered l
root  7970  7969  0 20:29 pts/400:00:00 sh 
/usr/lib/linux/triggers/5.3.0-19-generic
root  7971  7970  0 20:29 pts/400:00:00 run-parts --report 
--exit-on-error --arg=5.3.0-19-generic --arg=/boot/vmlinu
root  8047  7971  0 20:30 pts/400:00:00 /bin/sh -e 
/etc/kernel/postinst.d/initramfs-tools 5.3.0-19-generic /boot/vml
root  8049  8047  0 20:30 pts/400:00:00 /bin/sh 
/usr/sbin/update-initramfs -c -k 5.3.0-19-generic -b /boot
root  8051  8049  0 20:30 pts/400:00:00 /bin/sh /usr/sbin/mkinitramfs 
-o /boot/initrd.img-5.3.0-19-generic.new 5.3.0
root 18519  8051  0 20:30 pts/400:00:00 /bin/sh 
/usr/share/initramfs-tools/hooks/mdadm
root 18642 18519  0 20:30 pts/400:00:00 /bin/sh /usr/share/mdadm/mkconf
root 18648 18642  0 20:30 pts/400:00:00 /sbin/mdadm --examine --scan 
--config=partitions
root 28631 17100  0 20:29 pts/400:00:00 /usr/bin/dpkg --force-overwrite 
--status-fd 112 --configure --pending


[1499890.437313] INFO: task mdadm:18648 blocked for more than 120 seconds.
[1499890.437318]   Not tainted 5.0.0-31-generic #33-Ubuntu
[1499890.437320] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
[1499890.437322] mdadm   D0 18648  18642 0x0080
[1499890.437325] Call Trace:
[1499890.437335]  __schedule+0x2d0/0x840
[1499890.437338]  ? __switch_to_asm+0x41/0x70
[1499890.437340]  ? __switch_to_asm+0x35/0x70
[1499890.437342]  schedule+0x2c/0x70
[1499890.437344]  schedule_timeout+0x258/0x360
[1499890.437346]  wait_for_completion+0xb7/0x140
[1499890.437350]  ? wake_up_q+0x80/0x80
[1499890.437358]  __floppy_read_block_0+0x138/0x190 [floppy]
[1499890.437362]  ? floppy_cmos_show+0x30/0x30 [floppy]
[1499890.437367]  floppy_revalidate+0xf8/0x230 [floppy]
[1499890.437370]  check_disk_change+0x62/0x70
[1499890.437374]  floppy_open+0x2ae/0x380 [floppy]
[1499890.437376]  __blkdev_get+0xe5/0x550
[1499890.437378]  ? bd_acquire+0xd0/0xd0
[1499890.437380]  blkdev_get+0x10c/0x330
[1499890.437382]  ? bd_acquire+0xd0/0xd0
[1499890.437384]  blkdev_open+0x92/0x100
[1499890.437386]  do_dentry_open+0x143/0x3a0
[1499890.437389]  vfs_open+0x2d/0x30
[1499890.437391]  path_openat+0x2bf/0x1570
[1499890.437394]  ? put_device+0x17/0x20
[1499890.437397]  ? scsi_device_put+0x2b/0x30
[1499890.437400]  do_filp_open+0x93/0x100
[1499890.437403]  ? strncpy_from_user+0x57/0x1c0
[1499890.437405]  ? __alloc_fd+0x46/0x150
[1499890.437407]  do_sys_open+0x177/0x280
[1499890.437409]  ? _cond_resched+0x19/0x30
[1499890.437412]  __x64_sys_openat+0x20/0x30
[1499890.437415]  do_syscall_64+0x5a/0x110
[1499890.437417]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[1499890.437419] RIP: 0033:0x7f84b3cc8fdb
[1499890.437426] Code: Bad RIP value.
[1499890.437427] RSP: 002b:7ffd8cb8fed0 EFLAGS: 0246 ORIG_RAX: 
0101
[1499890.437429] RAX: ffda RBX: 4000 RCX: 
7f84b3cc8fdb
[1499890.437431] RDX: 4000 RSI: 5563a1618b80 RDI: 
ff9c
[1499890.437432] RBP: 5563a1618b80 R08: 1999 R09: 

[1499890.437433] R10:  R11: 0246 R12: 
4000
[1499890.437434] R13:  R14: 0001 R15: 
5563a1612a00

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-10-10 Thread Harry Coin
I see the same thing related to slowness in a old-style parallel port device 
passed to a VM. Shortly after there's traffic related to the parallel port the 
task will hang forever, eventually locking up the VM entirely.
This has happened on two SuperMicro servers, the problem did not exist in 
Xenial and began with the upgrade to bionic and remains in eoan.
Oct  9 03:43:40 noc2 kernel: [48455.643616] INFO: task CPU 0/KVM:18338 blocked 
for more than 845 seconds.
Oct  9 03:43:40 noc2 kernel: [48455.643624]   Tainted: P   O  
5.3.0-13-generic #14-Ubuntu
Oct  9 03:43:40 noc2 kernel: [48455.643625] "echo 0 > 
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Oct  9 03:43:40 noc2 kernel: [48455.643627] CPU 0/KVM   D0 18338  1 
0x0100
Oct  9 03:43:40 noc2 kernel: [48455.643630] Call Trace:
Oct  9 03:43:40 noc2 kernel: [48455.643643]  __schedule+0x2b9/0x6c0
Oct  9 03:43:40 noc2 kernel: [48455.643655]  ? handle_io+0x4c/0xc0 [kvm_intel]
Oct  9 03:43:40 noc2 kernel: [48455.643659]  schedule+0x42/0xb0
Oct  9 03:43:40 noc2 kernel: [48455.643661]  schedule_preempt_disabled+0xe/0x10
Oct  9 03:43:40 noc2 kernel: [48455.643663]  __mutex_lock.isra.0+0x182/0x4f0
Oct  9 03:43:40 noc2 kernel: [48455.643712]  ? kvm_arch_vcpu_put+0xe4/0xf0 [kvm]
Oct  9 03:43:40 noc2 kernel: [48455.643731]  ? 
kvm_arch_vcpu_ioctl_run+0x37a/0x590 [kvm]
Oct  9 03:43:40 noc2 kernel: [48455.643733]  __mutex_lock_slowpath+0x13/0x20
Oct  9 03:43:40 noc2 kernel: [48455.643735]  mutex_lock+0x2e/0x40
Oct  9 03:43:40 noc2 kernel: [48455.643738]  pp_ioctl+0x25/0x50 [ppdev]
Oct  9 03:43:40 noc2 kernel: [48455.643741]  do_vfs_ioctl+0x407/0x670
Oct  9 03:43:40 noc2 kernel: [48455.643745]  ? __secure_computing+0x42/0xe0
Oct  9 03:43:40 noc2 kernel: [48455.643747]  ksys_ioctl+0x67/0x90
Oct  9 03:43:40 noc2 kernel: [48455.643748]  __x64_sys_ioctl+0x1a/0x20
Oct  9 03:43:40 noc2 kernel: [48455.643752]  do_syscall_64+0x5a/0x130
Oct  9 03:43:40 noc2 kernel: [48455.643754]  
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Oct  9 03:43:40 noc2 kernel: [48455.643756] RIP: 0033:0x7fb9e75b167b
Oct  9 03:43:40 noc2 kernel: [48455.643764] Code: Bad RIP value.
Oct  9 03:43:40 noc2 kernel: [48455.643765] RSP: 002b:7fb9e4d743a8 EFLAGS: 
0246 ORIG_RAX: 0010
Oct  9 03:43:40 noc2 kernel: [48455.643767] RAX: ffda RBX: 
0004 RCX: 7fb9e75b167b
Oct  9 03:43:40 noc2 kernel: [48455.643768] RDX: 7fb9e4d743b7 RSI: 
40017086 RDI: 000a
Oct  9 03:43:40 noc2 kernel: [48455.643769] RBP: 000a R08: 
55a2756817e8 R09: 55a275289de0
Oct  9 03:43:40 noc2 kernel: [48455.643770] R10: 0001 R11: 
0246 R12: 7fb9e4d743ef
Oct  9 03:43:40 noc2 kernel: [48455.643771] R13:  R14: 
0001 R15: 55a276e69010

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-08-13 Thread lilideng
Same thing happen in HyperV, when run apt-get install -yq linux-
azure/disco, it hung in some rate. Like upgrade 3 VMs, 1 VM hung.

VM configuration - 3584 memory, 2 Virtual processors

[  485.023123] INFO: task mdadm:11824 blocked for more than 120 seconds.
[  485.029485]   Not tainted 5.0.0-15-generic #16-Ubuntu
[  485.034818] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this 
message.
[  485.042754] mdadm   D0 11824  11818 0x
[  485.042758] Call Trace:
[  485.042768]  __schedule+0x2d0/0x840
[  485.042770]  ? __switch_to_asm+0x34/0x70
[  485.042771]  ? __switch_to_asm+0x40/0x70
[  485.042774]  schedule+0x2c/0x70
[  485.042776]  schedule_timeout+0x258/0x360
[  485.042780]  wait_for_completion+0xb7/0x140
[  485.042784]  ? wake_up_q+0x80/0x80
[  485.042790]  __floppy_read_block_0+0x138/0x190 [floppy]
[  485.042793]  ? floppy_cmos_show+0x30/0x30 [floppy]
[  485.042797]  floppy_revalidate+0xf8/0x230 [floppy]
[  485.042800]  check_disk_change+0x62/0x70
[  485.042803]  floppy_open+0x2ae/0x380 [floppy]
[  485.042805]  __blkdev_get+0xe5/0x550
[  485.042807]  ? bd_acquire+0xd0/0xd0
[  485.042809]  blkdev_get+0x10c/0x330
[  485.042811]  ? bd_acquire+0xd0/0xd0
[  485.042812]  blkdev_open+0x92/0x100
[  485.042815]  do_dentry_open+0x143/0x3a0
[  485.042818]  vfs_open+0x2d/0x30
[  485.042820]  path_openat+0x2d4/0x16d0
[  485.042825]  ? put_device+0x17/0x20
[  485.042828]  ? scsi_device_put+0x2b/0x30
[  485.042831]  do_filp_open+0x93/0x100
[  485.042835]  ? strncpy_from_user+0x56/0x1b0
[  485.042839]  ? __alloc_fd+0xb2/0x140
[  485.042841]  do_sys_open+0x177/0x280
[  485.042844]  __x64_sys_openat+0x20/0x30
[  485.042847]  do_syscall_64+0x5a/0x110
[  485.042849]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  485.042851] RIP: 0033:0x7f6cda22dcce
[  485.042856] Code: Bad RIP value.
[  485.042857] RSP: 002b:7ffedec2d0e0 EFLAGS: 0246 ORIG_RAX: 
0101
[  485.042859] RAX: ffda RBX: 4000 RCX: 7f6cda22dcce
[  485.042860] RDX: 4000 RSI: 55be36cfd870 RDI: ff9c
[  485.042861] RBP: 55be36cfd870 R08: 55be36cfd870 R09: 
[  485.042862] R10:  R11: 0246 R12: 7ffedec2d3a0
[  485.042863] R13:  R14: 0001 R15: 55be36cfcbb0
[  495.386112] kauditd_printk_skb: 1 callbacks suppressed
[  495.386114] audit: type=1400 audit(1565682010.026:62): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.activate" 
pid=15020 comm="apparmor_parser"
[  495.386659] audit: type=1400 audit(1565682010.026:63): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.benchmark" 
pid=15021 comm="apparmor_parser"
[  495.516297] audit: type=1400 audit(1565682010.158:64): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.buginfo" 
pid=15022 comm="apparmor_parser"
[  495.516773] audit: type=1400 audit(1565682010.158:65): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.check-kernel" 
pid=15023 comm="apparmor_parser"
[  495.663497] audit: type=1400 audit(1565682010.306:66): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.hook.configure" 
pid=15025 comm="apparmor_parser"
[  495.721415] audit: type=1400 audit(1565682010.362:67): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.daemon" 
pid=15024 comm="apparmor_parser"
[  495.741053] audit: type=1400 audit(1565682010.382:68): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.hook.install" 
pid=15026 comm="apparmor_parser"
[  495.847228] audit: type=1400 audit(1565682010.490:69): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.lxc" pid=15027 
comm="apparmor_parser"
[  495.859690] audit: type=1400 audit(1565682010.502:70): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.lxd" pid=15028 
comm="apparmor_parser"
[  495.924648] audit: type=1400 audit(1565682010.566:71): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" name="snap.lxd.migrate" 
pid=15029 comm="apparmor_parser"
[  605.855134] INFO: task mdadm:11824 blocked for more than 120 seconds.
[  605.861358]   Not tainted 5.0.0-15-generic #16-Ubuntu
[  605.866526] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this 
message.
[  605.874078] mdadm   D0 11824  11818 0x
[  605.874082] Call Trace:
[  605.874091]  __schedule+0x2d0/0x840
[  605.874093]  ? __switch_to_asm+0x34/0x70
[  605.874094]  ? __switch_to_asm+0x40/0x70
[  605.874096]  schedule+0x2c/0x70
[  605.874098]  schedule_timeout+0x258/0x360
[  605.874101]  wait_for_completion+0xb7/0x140
[  605.874104]  ? wake_up_q+0x80/0x80
[  605.874108]  __floppy_read_block_0+0x138/0x190 [floppy]
[  605.874110]  ? floppy_cmos_show+0x30/0x30 [floppy]
[  605.874113]  floppy_revalidate+0xf8/0x230 

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-05-06 Thread Ryan Harper
Sorry, I missed responding.

This were run in separate VMs, this is under our curtin vmtest
integration testing.

Yes, let me get the q35 trace; it doesn't happen as often.

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  967.815561]  ? _cond_resched+0x19/0x30
  [  967.815563]  __x64_sys_openat+0x20/0x30
  [  967.815566]  do_syscall_64+0x5a/0x110
  [  967.815567]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.815568] RIP: 0033:0x7faa36406cce
  [  967.815572] Code: Bad RIP value.
  [  967.815573] RSP: 002b:7ffedb663f80 EFLAGS: 0246 ORIG_RAX: 
0101
  [  967.815574] RAX: ffda RBX: 4000 RCX: 
7faa36406cce
  [  967.815575] RDX: 4000 RSI: 564df70257b0 RDI: 
ff9c
  [  967.815576] RBP: 564df70257b0 R08: 564df70257b0 R09: 

  [  967.815576] R10:  R11: 0246 R12: 
7ffedb664240
  [  967.815577] R13:  R14: 0001 R15: 
564df7023e00

  [  967.799227] INFO: task mkfs.btrfs:3767 blocked for more than 120 seconds.
  [  967.803509]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.807192] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.810235] mkfs.btrfs  D0  3767   1866 0x
  [  967.810239] Call Trace:
  [  967.810251]  __schedule+0x2d0/0x840
  [  967.810254]  ? __switch_to_asm+0x34/0x70
  [  967.810256]  ? __switch_to_asm+0x40/0x70
  [  967.810258]  schedule+0x2c/0x70
  [  967.810260]  schedule_timeout+0x258/0x360
  [  967.810277]  wait_for_completion+0xb7/0x140
  [  967.810281]  ? wake_up_q+0x80/0x80
  [  967.810293]  __floppy_read_block_0+0x138/0x190 [floppy]
  [  967.810298]  ? floppy_cmos_show+0x30/0x30 [floppy]
  [  967.810302]  floppy_revalidate+0xf8/0x230 [floppy]
  [  967.810307]  check_disk_change+0x62/0x70
  [  967.810309]  floppy_open+0x2ae/0x380 [floppy]
  [  967.810311]  __blkdev_get+0xe5/0x550
  [  967.810313]  ? bd_acquire+0xd0/0xd0
  [  967.810315]  blkdev_get+0x10c/0x330
  [  967.810316]  ? bd_acquire+0xd0/0xd0
  [  967.810318]  blkdev_open+0x92/0x100
  [  967.810321]  do_dentry_open+0x143/0x3a0
  [  967.810323]  vfs_open+0x2d/0x30
  [  967.810326]  path_openat+0x2d4/0x16d0
  [  967.810328]  ? filename_lookup.part.60+0xe0/0x170
  [  967.810332]  ? strncpy_from_user+0x56/0x1b0
  [  967.810333]  do_filp_open+0x93/0x100
  [  967.810353]  ? strncpy_from_user+0x56/0x1b0
  [  967.810358]  ? __alloc_fd+0x46/0x140
  [  967.810360]  do_sys_open+0x177/0x280
  [  967.810362]  ? _cond_resched+0x19/0x30
  [  967.810364]  __x64_sys_openat+0x20/0x30
  [  967.810368]  do_syscall_64+0x5a/0x110
  [  967.810369]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.810372] RIP: 0033:0x7f46b99374db
  [  967.810377] Code: Bad RIP value.
  [  967.810378] RSP: 002b:7ffc9e849d70 EFLAGS: 0246 ORIG_RAX: 
0101
  [  

Re: [Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-04-22 Thread Seth Forshee
On Mon, Apr 22, 2019 at 08:20:30PM -, Ryan Harper wrote:
> Hi Seth,
> 
> notice only one of the stack tracks have the floppy, the mdadm one does
> not.  I've also recreated this on a qemu q35 machine type which does not
> include the floppy device.

I looked at the madm stack trace, and I was assuming that it occurred
during the same boot as the other one. I suppose I shouldn't have, but
it would make sense. mdadm appears to be blocked on a block device's
bd_mutex, so the cause is probably something else that has hung while
holding that mutex. The mkfs stack trace would be just the kind of thing
to create the mdadm stack trace, if it were trying to open the same
device.

So, were those traces from a single boot or from different boots?

Can you provide stack trace(s) from the q35 machine type for comparison?
Thanks!

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  967.815561]  ? _cond_resched+0x19/0x30
  [  967.815563]  __x64_sys_openat+0x20/0x30
  [  967.815566]  do_syscall_64+0x5a/0x110
  [  967.815567]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.815568] RIP: 0033:0x7faa36406cce
  [  967.815572] Code: Bad RIP value.
  [  967.815573] RSP: 002b:7ffedb663f80 EFLAGS: 0246 ORIG_RAX: 
0101
  [  967.815574] RAX: ffda RBX: 4000 RCX: 
7faa36406cce
  [  967.815575] RDX: 4000 RSI: 564df70257b0 RDI: 
ff9c
  [  967.815576] RBP: 564df70257b0 R08: 564df70257b0 R09: 

  [  967.815576] R10:  R11: 0246 R12: 
7ffedb664240
  [  967.815577] R13:  R14: 0001 R15: 
564df7023e00

  [  967.799227] INFO: task mkfs.btrfs:3767 blocked for more than 120 seconds.
  [  967.803509]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.807192] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.810235] mkfs.btrfs  D0  3767   1866 0x
  [  967.810239] Call Trace:
  [  967.810251]  __schedule+0x2d0/0x840
  [  967.810254]  ? __switch_to_asm+0x34/0x70
  [  967.810256]  ? __switch_to_asm+0x40/0x70
  [  967.810258]  schedule+0x2c/0x70
  [  967.810260]  schedule_timeout+0x258/0x360
  [  967.810277]  wait_for_completion+0xb7/0x140
  [  967.810281]  ? wake_up_q+0x80/0x80
  [  967.810293]  __floppy_read_block_0+0x138/0x190 [floppy]
  [  967.810298]  ? floppy_cmos_show+0x30/0x30 [floppy]
  [  967.810302]  floppy_revalidate+0xf8/0x230 [floppy]
  [  967.810307]  check_disk_change+0x62/0x70
  [  967.810309]  floppy_open+0x2ae/0x380 [floppy]
  [  967.810311]  __blkdev_get+0xe5/0x550
  [  967.810313]  ? bd_acquire+0xd0/0xd0
  [  967.810315]  blkdev_get+0x10c/0x330
  [  967.810316]  ? bd_acquire+0xd0/0xd0
  [  967.810318]  blkdev_open+0x92/0x100
  [  967.810321]  do_dentry_open+0x143/0x3a0
  [  967.810323]  vfs_open+0x2d/0x30
  [  967.810326]  

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-04-22 Thread Ryan Harper
Hi Seth,

notice only one of the stack tracks have the floppy, the mdadm one does
not.  I've also recreated this on a qemu q35 machine type which does not
include the floppy device.

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  967.815561]  ? _cond_resched+0x19/0x30
  [  967.815563]  __x64_sys_openat+0x20/0x30
  [  967.815566]  do_syscall_64+0x5a/0x110
  [  967.815567]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.815568] RIP: 0033:0x7faa36406cce
  [  967.815572] Code: Bad RIP value.
  [  967.815573] RSP: 002b:7ffedb663f80 EFLAGS: 0246 ORIG_RAX: 
0101
  [  967.815574] RAX: ffda RBX: 4000 RCX: 
7faa36406cce
  [  967.815575] RDX: 4000 RSI: 564df70257b0 RDI: 
ff9c
  [  967.815576] RBP: 564df70257b0 R08: 564df70257b0 R09: 

  [  967.815576] R10:  R11: 0246 R12: 
7ffedb664240
  [  967.815577] R13:  R14: 0001 R15: 
564df7023e00

  [  967.799227] INFO: task mkfs.btrfs:3767 blocked for more than 120 seconds.
  [  967.803509]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.807192] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.810235] mkfs.btrfs  D0  3767   1866 0x
  [  967.810239] Call Trace:
  [  967.810251]  __schedule+0x2d0/0x840
  [  967.810254]  ? __switch_to_asm+0x34/0x70
  [  967.810256]  ? __switch_to_asm+0x40/0x70
  [  967.810258]  schedule+0x2c/0x70
  [  967.810260]  schedule_timeout+0x258/0x360
  [  967.810277]  wait_for_completion+0xb7/0x140
  [  967.810281]  ? wake_up_q+0x80/0x80
  [  967.810293]  __floppy_read_block_0+0x138/0x190 [floppy]
  [  967.810298]  ? floppy_cmos_show+0x30/0x30 [floppy]
  [  967.810302]  floppy_revalidate+0xf8/0x230 [floppy]
  [  967.810307]  check_disk_change+0x62/0x70
  [  967.810309]  floppy_open+0x2ae/0x380 [floppy]
  [  967.810311]  __blkdev_get+0xe5/0x550
  [  967.810313]  ? bd_acquire+0xd0/0xd0
  [  967.810315]  blkdev_get+0x10c/0x330
  [  967.810316]  ? bd_acquire+0xd0/0xd0
  [  967.810318]  blkdev_open+0x92/0x100
  [  967.810321]  do_dentry_open+0x143/0x3a0
  [  967.810323]  vfs_open+0x2d/0x30
  [  967.810326]  path_openat+0x2d4/0x16d0
  [  967.810328]  ? filename_lookup.part.60+0xe0/0x170
  [  967.810332]  ? strncpy_from_user+0x56/0x1b0
  [  967.810333]  do_filp_open+0x93/0x100
  [  967.810353]  ? strncpy_from_user+0x56/0x1b0
  [  967.810358]  ? __alloc_fd+0x46/0x140
  [  967.810360]  do_sys_open+0x177/0x280
  [  967.810362]  ? _cond_resched+0x19/0x30
  [  967.810364]  __x64_sys_openat+0x20/0x30
  [  967.810368]  do_syscall_64+0x5a/0x110
  [  967.810369]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.810372] RIP: 0033:0x7f46b99374db
  [  967.810377] Code: Bad RIP value.
  [  967.810378] RSP: 002b:7ffc9e849d70 EFLAGS: 0246 ORIG_RAX: 
0101
  [  

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-04-19 Thread Seth Forshee
Looks like something going wrong with the floppy driver. From the
description this sounds like a race. I note that a bug with essentially
the same stack trace was fixed in 4.20, de7b75d82f70 "floppy: fix race
condition in __floppy_read_block_0()." We have that fix though, so not
sure what is causing it here.

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the kernel throws an 
oops and bad rip value.

  [  967.810391] INFO: task mdadm:12213 blocked for more than 120 seconds.
  [  967.811787]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.813330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.815500] mdadm   D0 12213  12207 0x
  [  967.815503] Call Trace:
  [  967.815509]  __schedule+0x2d0/0x840
  [  967.815511]  ? __switch_to_asm+0x40/0x70
  [  967.815512]  ? __switch_to_asm+0x34/0x70
  [  967.815514]  schedule+0x2c/0x70
  [  967.815516]  schedule_preempt_disabled+0xe/0x10
  [  967.815518]  __mutex_lock.isra.10+0x2e4/0x4c0
  [  967.815522]  ? exact_lock+0x11/0x20
  [  967.815524]  __mutex_lock_slowpath+0x13/0x20
  [  967.815528]  mutex_lock+0x2c/0x30
  [  967.815530]  __blkdev_get+0x7b/0x550
  [  967.815532]  ? bd_acquire+0xd0/0xd0
  [  967.815533]  blkdev_get+0x10c/0x330
  [  967.815535]  ? bd_acquire+0xd0/0xd0
  [  967.815537]  blkdev_open+0x92/0x100
  [  967.815539]  do_dentry_open+0x143/0x3a0
  [  967.815540]  vfs_open+0x2d/0x30
  [  967.815542]  path_openat+0x2d4/0x16d0
  [  967.815547]  ? put_device+0x17/0x20
  [  967.815552]  ? scsi_device_put+0x2b/0x30
  [  967.815553]  do_filp_open+0x93/0x100
  [  967.81]  ? strncpy_from_user+0x56/0x1b0
  [  967.815558]  ? __alloc_fd+0x46/0x140
  [  967.815560]  do_sys_open+0x177/0x280
  [  967.815561]  ? _cond_resched+0x19/0x30
  [  967.815563]  __x64_sys_openat+0x20/0x30
  [  967.815566]  do_syscall_64+0x5a/0x110
  [  967.815567]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.815568] RIP: 0033:0x7faa36406cce
  [  967.815572] Code: Bad RIP value.
  [  967.815573] RSP: 002b:7ffedb663f80 EFLAGS: 0246 ORIG_RAX: 
0101
  [  967.815574] RAX: ffda RBX: 4000 RCX: 
7faa36406cce
  [  967.815575] RDX: 4000 RSI: 564df70257b0 RDI: 
ff9c
  [  967.815576] RBP: 564df70257b0 R08: 564df70257b0 R09: 

  [  967.815576] R10:  R11: 0246 R12: 
7ffedb664240
  [  967.815577] R13:  R14: 0001 R15: 
564df7023e00

  [  967.799227] INFO: task mkfs.btrfs:3767 blocked for more than 120 seconds.
  [  967.803509]   Tainted: P   O  5.0.0-13-generic #14-Ubuntu
  [  967.807192] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  967.810235] mkfs.btrfs  D0  3767   1866 0x
  [  967.810239] Call Trace:
  [  967.810251]  __schedule+0x2d0/0x840
  [  967.810254]  ? __switch_to_asm+0x34/0x70
  [  967.810256]  ? __switch_to_asm+0x40/0x70
  [  967.810258]  schedule+0x2c/0x70
  [  967.810260]  schedule_timeout+0x258/0x360
  [  967.810277]  wait_for_completion+0xb7/0x140
  [  967.810281]  ? wake_up_q+0x80/0x80
  [  967.810293]  __floppy_read_block_0+0x138/0x190 [floppy]
  [  967.810298]  ? floppy_cmos_show+0x30/0x30 [floppy]
  [  967.810302]  floppy_revalidate+0xf8/0x230 [floppy]
  [  967.810307]  check_disk_change+0x62/0x70
  [  967.810309]  floppy_open+0x2ae/0x380 [floppy]
  [  967.810311]  __blkdev_get+0xe5/0x550
  [  967.810313]  ? bd_acquire+0xd0/0xd0
  [  967.810315]  blkdev_get+0x10c/0x330
  [  967.810316]  ? bd_acquire+0xd0/0xd0
  [  967.810318]  blkdev_open+0x92/0x100
  [  967.810321]  do_dentry_open+0x143/0x3a0
  [  967.810323]  vfs_open+0x2d/0x30
  [  967.810326]  path_openat+0x2d4/0x16d0
  [  967.810328]  ? filename_lookup.part.60+0xe0/0x170
  [  967.810332]  ? strncpy_from_user+0x56/0x1b0
  [  967.810333]  do_filp_open+0x93/0x100
  [  967.810353]  ? strncpy_from_user+0x56/0x1b0
  [  967.810358]  ? __alloc_fd+0x46/0x140
  [  967.810360]  do_sys_open+0x177/0x280
  [  967.810362]  ? _cond_resched+0x19/0x30
  [  967.810364]  __x64_sys_openat+0x20/0x30
  [  967.810368]  do_syscall_64+0x5a/0x110
  [  967.810369]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [  967.810372] RIP: 0033:0x7f46b99374db
  [ 

[Kernel-packages] [Bug 1825413] Re: mdadm, mkfs, other io commands hang, stuck task, bad rip

2019-04-18 Thread Ryan Harper
root@ubuntu:~# lspci -v -nn
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] 
[8086:1237] (rev 02)
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Flags: fast devsel

00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton 
II] [8086:7000]
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Flags: medium devsel

00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE 
[Natoma/Triton II] [8086:7010] (prog-if 80 [ISA Compatibility mode-only 
controller, supports bus mastering])
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Flags: bus master, medium devsel, latency 0
[virtual] Memory at 01f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 03f0 (type 3, non-prefetchable)
[virtual] Memory at 0170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 0370 (type 3, non-prefetchable)
I/O ports at c080 [size=16]
Kernel driver in use: ata_piix
Kernel modules: pata_acpi

00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] 
(rev 03)
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Flags: medium devsel, IRQ 9
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4

00:02.0 VGA compatible controller [0300]: Device [1234:] (rev 02) (prog-if 
00 [VGA controller])
Subsystem: Red Hat, Inc. Device [1af4:1100]
Flags: fast devsel
Memory at fd00 (32-bit, prefetchable) [size=16M]
Memory at feb9 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at 000c [disabled] [size=128K]
Kernel driver in use: bochs-drm
Kernel modules: bochs_drm

00:03.0 SCSI storage controller [0100]: Red Hat, Inc. Virtio SCSI [1af4:1004]
Subsystem: Red Hat, Inc. Virtio SCSI [1af4:0008]
Physical Slot: 3
Flags: bus master, fast devsel, latency 0, IRQ 11
I/O ports at c000 [size=64]
Memory at feb91000 (32-bit, non-prefetchable) [size=4K]
Memory at fe00 (64-bit, prefetchable) [size=16K]
Capabilities: [98] MSI-X: Enable+ Count=4 Masked-
Capabilities: [84] Vendor Specific Information: VirtIO: 
Capabilities: [70] Vendor Specific Information: VirtIO: Notify
Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg
Capabilities: [50] Vendor Specific Information: VirtIO: ISR
Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg
Kernel driver in use: virtio-pci

00:04.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG [1af4:1005]
Subsystem: Red Hat, Inc. Virtio RNG [1af4:0004]
Physical Slot: 4
Flags: bus master, fast devsel, latency 0, IRQ 10
I/O ports at c040 [size=32]
Memory at fe004000 (64-bit, prefetchable) [size=16K]
Capabilities: [84] Vendor Specific Information: VirtIO: 
Capabilities: [70] Vendor Specific Information: VirtIO: Notify
Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg
Capabilities: [50] Vendor Specific Information: VirtIO: ISR
Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg
Kernel driver in use: virtio-pci

00:05.0 Ethernet controller [0200]: Red Hat, Inc. Virtio network device 
[1af4:1000]
Subsystem: Red Hat, Inc. Virtio network device [1af4:0001]
Physical Slot: 5
Flags: bus master, fast devsel, latency 0, IRQ 10
I/O ports at c060 [size=32]
Memory at feb92000 (32-bit, non-prefetchable) [size=4K]
Memory at fe008000 (64-bit, prefetchable) [size=16K]
Expansion ROM at feb0 [disabled] [size=512K]
Capabilities: [98] MSI-X: Enable+ Count=3 Masked-
Capabilities: [84] Vendor Specific Information: VirtIO: 
Capabilities: [70] Vendor Specific Information: VirtIO: Notify
Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg
Capabilities: [50] Vendor Specific Information: VirtIO: ISR
Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg
Kernel driver in use: virtio-pci

-- 
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/1825413

Title:
  mdadm, mkfs, other io commands hang, stuck task, bad rip

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  
  1. disco
  2. # apt-cache policy linux-image-virtual
  linux-image-virtual:
Installed: 5.0.0.13.14
Candidate: 5.0.0.13.14
Version table:
   *** 5.0.0.13.14 500
  500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
  100 /var/lib/dpkg/status
  3. installation completes sucessfully
  4. Running an installation of Disco creating filesystems and probing things 
will hang (stuck task) every so often.  When it happens, the