[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-06-09 Thread Launchpad Bug Tracker
[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

** Changed in: linux (Ubuntu)
   Status: Incomplete => Expired

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Expired
Status in linux source package in Bionic:
  Expired

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  484.045934]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  484.045936] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  484.045939] fdisk   D0  1798   1728 0x
  [  484.045942] Call Trace:
  [  484.045950]  __schedule+0x297/0x8b0
  [  484.045954]  ? fdatawait_one_bdev+0x20/0x20
  [  484.045956]  schedule+0x2c/0x80
  [  484.045959]  io_schedule+0x16/0x40
  [  484.045962]  wait_on_page_bit_common+0xd8/0x160
  [  484.045965]  ? page_cache_tree_insert+0xe0/0xe0
  [  484.045967]  __filemap_fdatawait_range+0xfa/0x160
  [  484.045970]  ? __filemap_fdatawrite_range+0xc1/0x100

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-06-09 Thread Launchpad Bug Tracker
[Expired for linux (Ubuntu Bionic) because there has been no activity
for 60 days.]

** Changed in: linux (Ubuntu Bionic)
   Status: Incomplete => Expired

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Expired
Status in linux source package in Bionic:
  Expired

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  484.045934]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  484.045936] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  484.045939] fdisk   D0  1798   1728 0x
  [  484.045942] Call Trace:
  [  484.045950]  __schedule+0x297/0x8b0
  [  484.045954]  ? fdatawait_one_bdev+0x20/0x20
  [  484.045956]  schedule+0x2c/0x80
  [  484.045959]  io_schedule+0x16/0x40
  [  484.045962]  wait_on_page_bit_common+0xd8/0x160
  [  484.045965]  ? page_cache_tree_insert+0xe0/0xe0
  [  484.045967]  __filemap_fdatawait_range+0xfa/0x160
  [  484.045970]  ? 

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-04-10 Thread LGB [Gábor Lénárt]
Removing the scsi_mod.use_blk_mq=1 from /etc/default/grub and the
mentioned udev rule file, and regenerating initial ramdisk + reboot
seems to do the trick, now everything works with default (cfq) I/O
scheduler.

Before this comment, and the problem:

# cat /sys/block/sda/queue/scheduler 
[bfq] none
# cat /sys/block/sdb/queue/scheduler 
[none] bfq 

After I removed the BFQ specific stuffs and everything worked again:

# cat /sys/block/sda/queue/scheduler 
noop deadline [cfq] 
# cat /sys/block/sdb/queue/scheduler 
noop deadline [cfq] 

So, sorry about the noise, maybe it was my fault ... Interestingly, this
setup of mine with BFQ worked in 17.10 on other machines with that
kernel parameter and udev rule I mentioned in the previous comment.

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Bionic:
  Incomplete

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  484.045934]   Tainted: G   

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-04-10 Thread LGB [Gábor Lénárt]
Ok, I will investigate as soon as I have time. By the way, I am
wondering if using BFQ as I/O scheduler can be the problem, ie:

# cat /etc/udev/rules.d/60-schedulers.rules 
## set noop scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", 
ATTR{queue/scheduler}="noop"
## set bfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", 
ATTR{queue/scheduler}="bfq"

# cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-4.15.0-15-generic 
root=UUID=d203063e-78c0-425a-bee2-0e3ecb4ea74c ro quiet splash 
scsi_mod.use_blk_mq=1 vt.handoff=1

I guess, I try to remove BFQ specific stuffs as well to see if this
fixes the problem.

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Bionic:
  Incomplete

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  484.045934]   Tainted: G   OE4.15.0-15-generic 

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-04-10 Thread Joseph Salisbury
Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.16 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16


** Changed in: linux (Ubuntu)
   Importance: Undecided => High

** Also affects: linux (Ubuntu Bionic)
   Importance: High
   Status: Confirmed

** Tags added: kernel-da-key

** Changed in: linux (Ubuntu Bionic)
   Status: Confirmed => Incomplete

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Bionic:
  Incomplete

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-04-10 Thread LGB [Gábor Lénárt]
[22596.884250] sysrq: SysRq : This sysrq operation is disabled.

I got this, if I try to trigger those sysreq events by echoing t/m into
that procfs file. I'm anyway curious how sysreq stuffs can be
enabled/disabled, since I seldom use ALT-SYSREQ- combos as well, and
many of them just reports the same as with this procfs trigger:
operation is disabled.

One thing though:

If I attach the thumb drive, everything is fine, lsblk shows it, etc, I
can remove it, lsblk does not show it, no problem. The problem seems to
have after the first event when I try to write onto the device, then
whatever I try even remove thumb drive physically, lsblk still shows it,
all the "sync" commands (and anything which tries to write onto) stuck
and cannot be killed. So even shutdown of system is problematic at this
point. Now I've tried fdisk (btw, no partition on the thumb drive). Just
displaying, everything is OK. However after the "w" command the problems
begins. By checking the /proc entry for the PID of the fdisk, I see:

# cat /proc/11283/status 
Name:   fdisk
Umask:  0022
State:  D (disk sleep)
[...]


# cat /proc/11283/stat
11283 (fdisk) D 11084 11283 10324 34827 11283 4194560 673 0 4 0 0 1 0 0 20 0 1 
0 2254524 21024768 877 18446744073709551615 94293651558400 94293651671008 
140732927217664 0 0 0 0 0 0 1 0 0 17 1 0 0 16 0 0 94293653771504 94293653778500 
94293676326912 140732927223610 140732927223625 140732927223625 140732927225836 0

Full output of status file:

# cat /proc/11283/status 
Name:   fdisk
Umask:  0022
State:  D (disk sleep)
Tgid:   11283
Ngid:   0
Pid:11283
PPid:   11084
TracerPid:  0
Uid:0   0   0   0
Gid:0   0   0   0
FDSize: 256
Groups: 0 
NStgid: 11283
NSpid:  11283
NSpgid: 11283
NSsid:  10324
VmPeak:21568 kB
VmSize:20532 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM:  4176 kB
VmRSS:  3508 kB
RssAnon: 372 kB
RssFile:3136 kB
RssShmem:  0 kB
VmData:  284 kB
VmStk:   132 kB
VmExe:   112 kB
VmLib:  3144 kB
VmPTE:80 kB
VmSwap:0 kB
HugetlbPages:  0 kB
CoreDumping:0
Threads:1
SigQ:   0/13289
SigPnd: 
ShdPnd: 
SigBlk: 
SigIgn: 
SigCgt: 
CapInh: 
CapPrm: 003f
CapEff: 003f
CapBnd: 003f
CapAmb: 
NoNewPrivs: 0
Seccomp:0
Cpus_allowed:   f
Cpus_allowed_list:  0-3
Mems_allowed:   
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0001
Mems_allowed_list:  0
voluntary_ctxt_switches:73
nonvoluntary_ctxt_switches: 0

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] 

[Kernel-packages] [Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command

2018-04-09 Thread Tetsuo Handa
I can't answer what is happening here. But can you obtain more information 
using SysRq-t
and SysRq-m as described at 
https://akari.osdn.jp/capturing-kernel-messages.html#Tips5 ?

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

Title:
  [18.04] writing on thumb drives causes hang for write op, shutdown and
  'sync' command

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I've upgraded to 18.04. Since then, it's impossible to use thumb-
  drives. If I try, on the first write operation, that operation hangs.
  Trying to issue a 'sync' command that hangs too. After a while (some
  minutes or so?) I see the following in kernel log / dmesg (see later).
  It's not even possible to cleanly shut the computer down, as it also
  hangs then.

  kernel is:

  4.15.0-15-generic
  Linux oxygene 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux
  $ dpkg -S /boot/vmlinuz-4.15.0-15-generic 
  linux-image-4.15.0-15-generic: /boot/vmlinuz-4.15.0-15-generic
  $ dpkg -l linux-image-4.15.0-15-generic
  ii  linux-image-4.15.0-15-generic4.15.0-15.16  amd64  
   Linux kernel image for version 4.15.0 on 64 bit x86 SMP

  dmesg:

  
  [  110.931501] usb 6-1: new high-speed USB device number 2 using xhci_hcd
  [  111.083432] usb 6-1: New USB device found, idVendor=13fe, idProduct=1d00
  [  111.083438] usb 6-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [  111.083441] usb 6-1: Product: DataTraveler 2.0
  [  111.083444] usb 6-1: Manufacturer: Kingston
  [  111.083447] usb 6-1: SerialNumber: 5B7402949950
  [  111.157729] usb-storage 6-1:1.0: USB Mass Storage device detected
  [  111.157882] scsi host6: usb-storage 6-1:1.0
  [  111.158826] usbcore: registered new interface driver usb-storage
  [  111.174387] usbcore: registered new interface driver uas
  [  112.172295] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP 
PQ: 0 ANSI: 0 CCS
  [  112.203451] sd 6:0:0:0: Attached scsi generic sg1 type 0
  [  112.443337] sd 6:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 
GB/1.92 GiB)
  [  112.443462] sd 6:0:0:0: [sdb] Write Protect is off
  [  112.443464] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
  [  112.443586] sd 6:0:0:0: [sdb] No Caching mode page found
  [  112.443591] sd 6:0:0:0: [sdb] Assuming drive cache: write through
  [  112.447045] sd 6:0:0:0: [sdb] Attached SCSI removable disk

  this was ok, the problem is from here:

  [  363.231738] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  363.231745]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  363.231747] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  363.231750] fdisk   D0  1798   1728 0x
  [  363.231754] Call Trace:
  [  363.231764]  __schedule+0x297/0x8b0
  [  363.231768]  ? fdatawait_one_bdev+0x20/0x20
  [  363.231771]  schedule+0x2c/0x80
  [  363.231775]  io_schedule+0x16/0x40
  [  363.231779]  wait_on_page_bit_common+0xd8/0x160
  [  363.231782]  ? page_cache_tree_insert+0xe0/0xe0
  [  363.231785]  __filemap_fdatawait_range+0xfa/0x160
  [  363.231788]  ? __filemap_fdatawrite_range+0xc1/0x100
  [  363.231791]  ? __filemap_fdatawrite_range+0xcd/0x100
  [  363.231794]  ? __sync_filesystem+0x60/0x60
  [  363.231797]  filemap_fdatawait_keep_errors+0x1e/0x40
  [  363.231799]  fdatawait_one_bdev+0x16/0x20
  [  363.231802]  iterate_bdevs+0xb7/0x160
  [  363.231805]  sys_sync+0x7e/0xb0
  [  363.231809]  do_syscall_64+0x73/0x130
  [  363.231813]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
  [  363.231816] RIP: 0033:0x7f2fcff17287
  [  363.231817] RSP: 002b:7fffbbea61a8 EFLAGS: 0202 ORIG_RAX: 
00a2
  [  363.231820] RAX: ffda RBX: 56096b767400 RCX: 
7f2fcff17287
  [  363.231821] RDX:  RSI: 56096b766018 RDI: 
56096b767400
  [  363.231823] RBP: 7fffbbea82d8 R08: 000a R09: 
7472617020656854
  [  363.231824] R10: 0008 R11: 0202 R12: 
56096a25b198
  [  363.231825] R13:  R14: 56096a25b198 R15: 

  [  484.045928] INFO: task fdisk:1798 blocked for more than 120 seconds.
  [  484.045934]   Tainted: G   OE4.15.0-15-generic #16-Ubuntu
  [  484.045936] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [  484.045939] fdisk   D0  1798   1728 0x
  [  484.045942] Call Trace:
  [  484.045950]  __schedule+0x297/0x8b0
  [  484.045954]  ? fdatawait_one_bdev+0x20/0x20
  [  484.045956]  schedule+0x2c/0x80
  [  484.045959]  io_schedule+0x16/0x40
  [  484.045962]  wait_on_page_bit_common+0xd8/0x160
  [  484.045965]  ? page_cache_tree_insert+0xe0/0xe0
  [  484.045967]  __filemap_fdatawait_range+0xfa/0x160
  [  484.045970]  ? __filemap_fdatawrite_range+0xc1/0x100
  [