[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian bug:883345] vhci-hcd: kernel oops when attaching a mass storage on client side of usbip



On 12/5/17, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Tue, Dec 05, 2017 at 10:17:08AM +0200, borissh1983@gmail.com wrote:
>> On Tuesday, 5 December 2017 9:39:33 IST Greg KH wrote:
>> > On Mon, Dec 04, 2017 at 10:05:45PM +0200, borissh1983@gmail.com wrote:
>> > > Hi ,
>> > >
>> > > vhci-hcd kernel oops when attaching a mass storage on 4.13.13.
>> > >
>> > > When I try to attach a mass storage device to a vhci-hcd, it generates
>> > > an
>> > > oops. no problem with other devices.
>> > >
>> > > A second user had also confirmed on a different hardware ( https://
>> > > bugs.debian.org/cgi-bin/bugreport.cgi?bug=878866)
>> > > debian's bug report attached bellow.
>> > >
>> > > steps to reproduce with debian :
>> > >
>> > > On server (debian stable running kernel 4.9) :
>> > >
>> > > modprobe usbip-core
>> > > modprobe usbip-host
>> > > usbipd -D
>> > > usbip bind -b bus
>> > >
>> > > On client (debian sid running kernel 4.13):
>> > > modprobe usbip-core
>> > > modprobe vhci-hcd
>> > > usbsip attach -b bus -r serverip
>> > >
>> > > config values :
>> > >
>> > > CONFIG_USBIP_CORE=m
>> > > CONFIG_USBIP_VHCI_HCD=m
>> > > CONFIG_USBIP_VHCI_HC_PORTS=4
>> > > CONFIG_USBIP_VHCI_NR_HCS=8
>> > > CONFIG_USBIP_HOST=m
>> > > CONFIG_USBIP_VUDC=m
>> >
>> > A number of vhci bug fixes have recently been posted to the linux-usb
>> > mailing list and will be merged into Linus's tree soon.  Any chance you
>> > could test those out to see if it solves your problem or not?
>> >
>>
>> Yes , I would gladly check it, just need to understand what I should build
>> and
>> with what options.
>>
>> We are talking about
>> git://git.kernel.org/pub/scm/linux/kernel/git/stable/
>> linux-stable.git correct ?
>
> No, that does not have the patches in it yet.  If you use the usb.git
> tree, in the usb-linus branch, the patches are all there.
>
> Heck, I've just attached them here, as I already have them around, just
> try these on top of 4.14.
>
>> And are these usbip config setting correct (should work ) ?
>
> No idea :)
>
> thanks,
>
> greg k-h
>

Thank you , and sorry for the delay.

Using an updated kernel with a specially crafted config values removed
the oops on mass storage devices (debian bugs 878866 and 883345) .

I took usb-linus branch (up to  7a3c296ae08f), I checkedout
git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git and built.
build was done using make deb-config LOCALVERSION=-khan
DEB_PKGVERSION=$(make kernelversion)-1

uname -a
Linux pc 4.15.0-rc3-khan #1 SMP Sun Dec 17 21:00:45 IST 2017 x86_64 GNU/Linux

my usbip config settings are :

grep USBIP /boot/config-4.15.0-rc3-khan
CONFIG_USBIP_CORE=m
CONFIG_USBIP_VHCI_HCD=m
CONFIG_USBIP_VHCI_HC_PORTS=4
CONFIG_USBIP_VHCI_NR_HCS=8
CONFIG_USBIP_HOST=m
CONFIG_USBIP_VUDC=m

Thanks !


Reply to: