Version Signature
Ubuntu 4.4.0-109.132-generic 4.4.98
Attached is source code for sending a scsi command block to a sg device. When this is executed it causes a a seg fault with the stack dump that can been seen in the dmesg logs(see Below). The code worked until 4.4.0-98. It also continues to work on newer versions of ubuntu, such as Ubuntu 17.10 with the most up to date kernel 4.13.0.25. Please let me know if there is anything else information wise I can do help clarify this error. I have been able to replicate this on multiple hardware scenarios so I hope that the attached source code should be enough for you to do the same.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-109-generic 4.4.0-109.132
ProcVersionSignature: Ubuntu 4.4.0-109.132-generic 4.4.98
Uname: Linux 4.4.0-109-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDesktop: Unity
Date: Wed Jan 17 12:34:22 2018
HibernationDevice: RESUME=/dev/mapper/pc17--vg-swap_1
InstallationDate: Installed on 2018-01-17 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
IwConfig:
lo no wireless extensions.
ens192 no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-109-generic root=/dev/mapper/hostname--vg-root ro
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
linux-restricted-modules-4.4.0-109-generic N/A
linux-backports-modules-4.4.0-109-generic N/A
linux-firmware 1.157.14
RfKill:
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/14/2014
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd04/14/2014:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: VMware Virtual Platform
dmi.product.version: None
dmi.sys.vendor: VMware, Inc.
Version Signature 132-generic 4.4.98
Ubuntu 4.4.0-109.
Attached is source code for sending a scsi command block to a sg device. When this is executed it causes a a seg fault with the stack dump that can been seen in the dmesg logs(see Below). The code worked until 4.4.0-98. It also continues to work on newer versions of ubuntu, such as Ubuntu 17.10 with the most up to date kernel 4.13.0.25. Please let me know if there is anything else information wise I can do help clarify this error. I have been able to replicate this on multiple hardware scenarios so I hope that the attached source code should be enough for you to do the same.
[ 107.963701] Call Trace: b03>] dump_stack+ 0x63/0x90 e52>] warn_slowpath_ common+ 0x82/0xc0 f9a>] warn_slowpath_ null+0x1a/ 0x20 c9e>] sg_rq_end_ io+0x24e/ 0x340 33e>] ? add_timer_ randomness+ 0xde/0x100 592>] blk_finish_ request+ 0x62/0xf0 d76>] scsi_end_ request+ 0x106/0x1d0 3d6>] scsi_io_ completion+ 0x1b6/0x690 fff>] scsi_finish_ command+ 0xcf/0x120 7c5>] scsi_eh_ flush_done_ q+0xf5/ 0x140 bc9>] ata_scsi_ port_error_ handler+ 0x599/0x770 5ad>] ? ata_scsi_ cmd_error_ handler+ 0x11d/0x150 e40>] ata_scsi_ error+0xa0/ 0xe0 cfb>] scsi_error_ handler+ 0xdb/0x8a0 010>] ? __schedule+ 0x310/0x7b0 c20>] ? scsi_eh_ get_sense+ 0x240/0x240 845>] kthread+0xe5/0x100 760>] ? kthread_ create_ on_node+ 0x1e0/0x1e0 a0f>] ret_from_ fork+0x3f/ 0x70 760>] ? kthread_ create_ on_node+ 0x1e0/0x1e0
[ 107.963715] [<ffffffff813fb
[ 107.963727] [<ffffffff81081
[ 107.963729] [<ffffffff81081
[ 107.963731] [<ffffffff815dc
[ 107.963741] [<ffffffff8152b
[ 107.963745] [<ffffffff813cc
[ 107.963748] [<ffffffff815c5
[ 107.963750] [<ffffffff815c9
[ 107.963752] [<ffffffff815bf
[ 107.963754] [<ffffffff815c4
[ 107.963760] [<ffffffff815f2
[ 107.963763] [<ffffffff815ed
[ 107.963765] [<ffffffff815f2
[ 107.963766] [<ffffffff815c4
[ 107.963779] [<ffffffff81840
[ 107.963781] [<ffffffff815c4
[ 107.963788] [<ffffffff810a1
[ 107.963790] [<ffffffff810a1
[ 107.963792] [<ffffffff81844
[ 107.963794] [<ffffffff810a1
[ 107.963795] ---[ end trace b723db66c786bceb ]---
ProblemType: Bug 4.4.0-109- generic 4.4.0-109.132 ature: Ubuntu 4.4.0-109. 132-generic 4.4.98 /dev/mapper/ pc17--vg- swap_1
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-109-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDesktop: Unity
Date: Wed Jan 17 12:34:22 2018
HibernationDevice: RESUME=
InstallationDate: Installed on 2018-01-17 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
IwConfig:
lo no wireless extensions.
ens192 no wireless extensions. /vmlinuz- 4.4.0-109- generic root=/dev/ mapper/ hostname- -vg-root ro ersions: restricted- modules- 4.4.0-109- generic N/A backports- modules- 4.4.0-109- generic N/A
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.157.14
RfKill:
SourcePackage: linux asset.tag: No Asset Tag version: N/A echnologiesLTD: bvr6.00: bd04/14/ 2014:svnVMware, Inc.:pnVMwareVi rtualPlatform: pvrNone: rvnIntelCorpora tion:rn440BXDes ktopReferencePl atform: rvrNone: cvnNoEnclosure: ct1:cvrN/ A: version: None
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/14/2014
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.