Fix committed to stress-ng:

http://kernel.ubuntu.com/git/cking/stress-
ng.git/commit/?id=53e5a98cd58d3b146cf8ffe52540722ff410a5ad

FIBMAP on a block device is plainly wrong, it should only be applied to
a file. The FIBMAP ioctl to a scsi block device is the same as the
SCSI_IOCTL_SEND_COMMAND ioctl that requires a scsi_ioctl_command struct.
As it stands, we are passing an int with stack garbage as this struct
which is passing garbage to the ioctl. The deprecated SCSI ioctl creates
a scsi_request from the garbage and this causes the kernel to correctly
warn with a usercopy_abort that the structure is bogos. Fix this by not
calling FIBMAP on a raw SCSI device.


** Changed in: stress-ng
       Status: New => Fix Committed

** Changed in: stress-ng
   Importance: Undecided => High

** Changed in: stress-ng
     Assignee: (unassigned) => Colin Ian King (colin-king)

** Changed in: linux (Ubuntu)
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1800609

Title:
  dev test in ubuntu_stress_smoke_tests will hang on s390x Ubuntu on
  LPAR

To manage notifications about this bug go to:
https://bugs.launchpad.net/stress-ng/+bug/1800609/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to