Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

2017-12-04 Thread Gianluigi Tiesi

On 12/02/2017 07:30 PM, borissh1...@gmail.com wrote:

Hi,

I have noticed that when I used the suggested port number 4 , I'm getting an
oops on mass storage devices.

Does mass storage devices work on your setup with usbip (https://
bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?



It oops also on my box, I doubt it works with debian config, I suppose 
this driver is not much used/tested, it works fine for my with an usb 
serial device



--
Gianluigi Tiesi 
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?



Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

2017-12-04 Thread Gianluigi Tiesi

On 12/02/2017 07:30 PM, borissh1...@gmail.com wrote:

Hi,

I have noticed that when I used the suggested port number 4 , I'm getting an
oops on mass storage devices.

Does mass storage devices work on your setup with usbip (https://
bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?



more infos:

[ 1102.862905] kernel BUG at drivers/usb/usbip/vhci_hcd.c:683!
[ 1102.862925] invalid opcode:  [#1] SMP
[ 1102.862929] Modules linked in: uas usb_storage vhci_hcd usbip_core 
ctr ccm cpufreq_userspace cpufreq_powersave cpufreq_conservative 
pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) bnep 
bbswitch(O) binfmt_misc snd_hda_codec_conexant snd_hda_codec_generic 
fuse intel_rapl arc4 x86_pkg_temp_thermal intel_powerclamp iwldvm 
coretemp iTCO_wdt btusb mac80211 iTCO_vendor_support btrtl kvm_intel 
wmi_bmof uvcvideo btbcm kvm btintel cdc_mbim irqbypass bluetooth 
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 drbg videobuf2_core 
iwlwifi crct10dif_pclmul cdc_ncm snd_hda_intel crc32_pclmul videodev 
ansi_cprng snd_hda_codec cdc_acm cdc_wdm usbnet ghash_clmulni_intel 
media snd_hda_core ecdh_generic mii i915 snd_hwdep cfg80211 
thinkpad_acpi snd_pcm evdev intel_cstate nvram snd_timer drm_kms_helper 
joydev
[ 1102.863026]  intel_uncore mei_me snd drm lpc_ich intel_rapl_perf 
soundcore i2c_algo_bit pcspkr shpchp sg mei serio_raw mfd_core rfkill ac 
video battery wmi button tpm_rng rng_core tun loop nfsd firewire_sbp2 
auth_rpcgss nfs_acl lockd grace parport_pc sunrpc ppdev lp parport 
ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod 
dm_mirror dm_region_hash dm_log dm_mod sd_mod hid_logitech_hidpp 
hid_logitech_dj usbhid hid crc32c_intel ahci libahci aesni_intel 
aes_x86_64 crypto_simd cryptd glue_helper libata xhci_pci scsi_mod 
psmouse sdhci_pci ehci_pci xhci_hcd ehci_hcd sdhci i2c_i801 
firewire_ohci firewire_core mmc_core crc_itu_t e1000e usbcore ptp

[ 1102.863141]  usb_common pps_core thermal
[ 1102.863152] CPU: 6 PID: 2498 Comm: usb-storage Tainted: G   O 
   4.14.2 #1
[ 1102.863155] Hardware name: LENOVO 4276CTO/4276CTO, BIOS 8BET62WW 
(1.42 ) 07/26/2013

[ 1102.863160] task: 9317e66d1040 task.stack: aa39012fc000
[ 1102.863174] RIP: 0010:vhci_urb_enqueue+0x2e8/0x4c0 [vhci_hcd]
[ 1102.863178] RSP: 0018:aa39012ffb58 EFLAGS: 00010206
[ 1102.863183] RAX: 0024 RBX: 931830c35000 RCX: 
9317d8418098
[ 1102.863187] RDX: 0140 RSI: 93180eb28c00 RDI: 
931830c35000
[ 1102.863190] RBP: aa39012ffbb8 R08: 0024 R09: 

[ 1102.863193] R10:  R11: fa1108cd5060 R12: 
0001
[ 1102.863197] R13: 93173e8c7860 R14: 0001 R15: 
93180eb28c00
[ 1102.863201] FS:  () GS:93183e38() 
knlGS:

[ 1102.863205] CS:  0010 DS:  ES:  CR0: 80050033
[ 1102.863208] CR2: 7fc00e8ee020 CR3: 76e09006 CR4: 
000606e0

[ 1102.863213] Call Trace:
[ 1102.863229]  ? __schedule+0x296/0x880
[ 1102.863257]  usb_hcd_submit_urb+0xad/0xb50 [usbcore]
[ 1102.863265]  ? schedule+0x2c/0x80
[ 1102.863287]  usb_submit_urb+0x22d/0x560 [usbcore]
[ 1102.863306]  ? usb_alloc_urb+0x19/0x50 [usbcore]
[ 1102.863326]  usb_sg_wait+0xa0/0x190 [usbcore]
[ 1102.863336]  usb_stor_bulk_transfer_sglist.part.1+0x67/0xc0 [usb_storage]
[ 1102.863344]  usb_stor_bulk_srb+0x4b/0x80 [usb_storage]
[ 1102.863351]  usb_stor_Bulk_transport+0x175/0x400 [usb_storage]
[ 1102.863357]  ? schedule+0x2c/0x80
[ 1102.863365]  usb_stor_invoke_transport+0x3b/0x520 [usb_storage]
[ 1102.863374]  ? wait_for_completion_interruptible+0x175/0x1d0
[ 1102.863380]  ? wake_up_q+0x80/0x80
[ 1102.863388]  usb_stor_transparent_scsi_command+0xe/0x10 [usb_storage]
[ 1102.863395]  usb_stor_control_thread+0x1c7/0x280 [usb_storage]
[ 1102.863404]  kthread+0x125/0x140
[ 1102.863411]  ? usb_stor_disconnect+0xc0/0xc0 [usb_storage]
[ 1102.863418]  ? kthread_create_on_node+0x70/0x70
[ 1102.863424]  ret_from_fork+0x25/0x30
[ 1102.863429] Code: f1 48 89 fa 48 c7 c6 40 fe b3 c0 48 c7 c7 20 1e b4 
c0 e8 8c bf e6 c3 e9 6f fd ff ff 41 8b 87 88 00 00 00 85 c0 0f 84 79 fd 
ff ff <0f> 0b 48 8b 7d d0 48 c7 c6 76 ed b3 c0 e8 96 39 fa c3 4c 89 fe
[ 1102.863506] RIP: vhci_urb_enqueue+0x2e8/0x4c0 [vhci_hcd] RSP: 
aa39012ffb58

[ 1102.863513] ---[ end trace f9a5d6bac7cf5a83 ]---

the relevant source code:


/* patch to usb_sg_init() is in 2.5.60 */
BUG_ON(!urb->transfer_buffer && urb->transfer_buffer_length);




--
Gianluigi Tiesi 
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?



Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

2017-12-02 Thread borissh1983
Hi, 

I have noticed that when I used the suggested port number 4 , I'm getting an 
oops on mass storage devices.

Does mass storage devices work on your setup with usbip (https://
bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?