Re: [PATCH 05/12] usb: usblp: use irqsave() in USB's complete callback

2018-06-25 Thread Pete Zaitcev
rrect, addresses the stated problem, no forgotten parts found left to fix. Acked-by: Pete Zaitcev -- P -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 05/22] USB: mon: no need to check return value of debugfs_create functions

2018-05-29 Thread Pete Zaitcev
ode works, surprisingly, even when the debugfs is disabled (well, according to my review). I just have one question - wouldn't it be cleaner to deprecate and remove the text API altogether? -- Pete -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of

[PATCH] usb: Read text within supplied buffer size

2018-03-08 Thread Pete Zaitcev
This change fixes buffer overflows and silent data corruption with the usbmon device driver text file read operations. Signed-off-by: Fredrik Noring <nor...@nocrew.org> Signed-off-by: Pete Zaitcev <zait...@redhat.com> --- diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_

Re: [PATCH 2/6] USB: move many drivers to use DEVICE_ATTR_RO

2018-01-23 Thread Pete Zaitcev
mplements it. Now, you have to know the foo_show convention. But if you think it's worth being a bit more explicit about "this is intended to be a RO attribute", then okay. Acked-by: Pete Zaitcev <zait...@redhat.com> -- P -- To unsubscribe from this list: send the line "

[PATCH] The usbmon triggers a BUG in ./include/linux/mm.h

2018-01-08 Thread Pete Zaitcev
Automated tests triggered this by opening usbmon and accessing the mmap while simultaneously resizing the buffers. This bug was with us since 2006, because typically applications only size the buffers once and thus avoid racing. Reported by Kirill A. Shutemov. Signed-off-by: Pete Zaitcev <z

Re: kernel BUG at ./include/linux/mm.h:LINE! (3)

2018-01-08 Thread Pete Zaitcev
lock fixes it. That said, your test suite may be more comprehensive, or you may have a device that generates enough USB traffic with associated monitoring callbacks. But I don't see it. At this point, I'm going to post the patch with a Signed-Off-By. -- Pete (this reproduces very quickly) /* *

Re: kernel BUG at ./include/linux/mm.h:LINE! (3)

2018-01-07 Thread Pete Zaitcev
ed to make a smaller test for this, but was unsuccessful so far. I'll poke a bit at it later, but it may take me some time. -- Pete -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: kernel BUG at ./include/linux/mm.h:LINE! (3)

2018-01-03 Thread Pete Zaitcev
return VM_FAULT_SIGBUS; > > chunk_idx = offset / CHUNK_SIZE; > > missing braces ... maybe you'd rather a 'goto sigbus' approach? Thanks. What a way to return to kernel programming for me. I'm going to test it anyway, already started to unpacking a PC, but yeah... -- Pe

Re: kernel BUG at ./include/linux/mm.h:LINE! (3)

2018-01-03 Thread Pete Zaitcev
break; case MON_IOCT_RING_SIZE: @@ -1231,12 +1233,15 @@ static int mon_bin_vma_fault(struct vm_fault *vmf) unsigned long offset, chunk_idx; struct page *pageptr; + mutex_lock(>fetch_lock); offset = vmf->pgoff << PAGE_SHIFT; if (of

Re: kernel BUG at ./include/linux/mm.h:LINE! (3)

2018-01-02 Thread Pete Zaitcev
ers. By defintion it's not covering things that are related to re-allocation. Now, the re-allocation itself grabs it, because it resets indexes into the new buffer, but does not appear to apply here, does it now? -- Pete -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/3] USB: serial: mct_u232: fix big-endian baud-rate handling

2017-05-11 Thread Pete Zaitcev
t_baud_rate(struct tty_struct *tty, > divisor = mct_u232_calculate_baud_rate(serial, value, ); > - put_unaligned_le32(cpu_to_le32(divisor), buf); > + put_unaligned_le32(divisor, buf); > rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), Acked

USB wifi bug with Ubuntu16.04 LTS 4.4.0-64 kernel

2017-03-07 Thread pete
computer and continue with the -62 version for now :) Best regards, Pete Here's the info I assume you'll need: uname -a Linux pete 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux cat /proc/version_signature Ubuntu 4.4.0-62.83-generic 4.4.40

Re: [PATCH 1/1] usblp: do not set TASK_INTERRUPTIBLE before lock

2015-11-11 Thread Pete Zaitcev
her missed that mutex_lock_interruptible() can set the state, or it didn't do it back then (it was in 2007), and the 7f477358e introduced the existing code. Acked-By: Pete Zaitcev <zait...@yahoo.com> -- Pete -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] usb: class: Use USB_CLASS_PRINTER instead of number 7

2015-06-19 Thread Pete Zaitcev
[] = { - { USB_INTERFACE_INFO(7, 1, 3) }, + { USB_INTERFACE_INFO(USB_CLASS_PRINTER, 1, 3) }, { USB_DEVICE(0x04b8, 0x0202) }, /* Seiko Epson Receipt Printer M129C */ If you're concerned about grepping, then fix all other places like usblp_select_alts(), too. -- Pete -- To unsubscribe

Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Pete Batard
Hi Jens, On 2014.01.27 12:25, Jens Bauer wrote: On Sun, 26 Jan 2014 17:07:42 +, Pete Batard wrote: I, and many others, happen to think users of libusb deserve more than one release in 4 years, even more so as continuous major development has been going on. I disagree. If libusb works

Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Pete Batard
On 2014.01.27 20:44, Jens Bauer wrote: Pete, you are young Not a good start. What if I told you I started programming in the mid 80s? Do I still qualify? But you have a problem. You feel attacked whenever anyone says something that you do not agree with. Yes, I tend to be annoyed when

Re: [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-26 Thread Pete Batard
On 2014.01.26 07:47, Peter Stuge wrote: I've removed the libusbx-devel list since Pete Batard banned[1] me after I wrote that I considered the libusbx code to have a bug[2]. Here we go again. Well, we've been through that quite a few times already. In the thread you pointed, I explained why

Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-25 Thread Pete Batard
will be as short lived as possible. You are invited to visit http://libusb.info, which contains all the links that are mentioned above, as well as additional information. Thank you, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord

Re: I: Sierra.c USB Serial Driver FAQ/Feature Request

2013-08-26 Thread pete
Quoting Dan Williams d...@redhat.com: On Sat, 2013-08-17 at 18:05 -0400, Peter Hyman wrote: snip Maybe this will move the ball. We'll see. Thank you. Yes, I was given that document by Sierra a couple years ago. No, it doesn't help, because it only covers basic CDMA/EVDO stuff and does not

Re: [PATCH v1 05/49] USB: usblp: prepare for enabling irq in complete()

2013-08-17 Thread Pete Zaitcev
On Sun, 18 Aug 2013 00:24:30 +0800 Ming Lei ming@canonical.com wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Signed-off-by: Pete Zaitcev zait...@kotori.zaitcev.us Signed-off-by: Ming Lei ming@canonical.com Still looks good. -- P

Re: [PATCH 03/50] USB: usblp: spin_lock in complete() cleanup

2013-07-11 Thread Pete Zaitcev
On Thu, 11 Jul 2013 17:05:26 +0800 Ming Lei ming@canonical.com wrote: Complete() will be run with interrupt enabled, so change to spin_lock_irqsave(). Cc: Pete Zaitcev zait...@redhat.com Signed-off-by: Ming Lei ming@canonical.com Signed-off-by: Pete Zaitcev zait

libusbx v1.0.15 has been released

2013-04-15 Thread Pete Batard
git log at: https://github.com/libusbx/libusbx/commits/master For additional info, please visit: http://libusbx.org Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [Libusbx-devel] libusbx v1.0.15-rc2 is now available for testing

2013-04-09 Thread Pete Batard
the static library and DLL, for MSVC and MinGW. In related news, the MSCV DLLs now include the .pdb, as was recently requested. Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [Libusbx-devel] libusbx v1.0.15-rc2 is now available for testing

2013-04-04 Thread Pete Batard
://sourceforge.net/projects/libusbx/files/releases/1.0.15/source/ Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

libusbx v1.0.15-rc2 is now available for testing

2013-04-03 Thread Pete Batard
visit http://libusbx.org Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] USB: prevent overlapping access by usb-storage and usbfs

2013-01-18 Thread Pete Zaitcev
On Mon, 14 Jan 2013 12:23:05 -0800 Greg KH gre...@linuxfoundation.org wrote: Forgot to mention the side effect of the patch: one can't submit read and write URB simultaneously via USBDEVFS_BULK ioctl(). That has been dealt in 2.4 by later patch by Pete, which I can try to port

libusbx-1.0.14 has been released

2012-09-25 Thread Pete Batard
a.k.a. 1.0.13, we hardly knew ye. * Reverts the previous API change with regards to bMaxPower. * Note that LIBUSBX_API_VERSION is *decreased* to 0x01FF and the previous guidelines with regards to concurrent use of MaxPower/bMaxPower still apply. Regards, /Pete -- To unsubscribe from

Re: libusbx-1.0.13 has been released

2012-09-24 Thread Pete Batard
it will be even more painful to leave that for later. Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Libusbx-devel] libusbx-1.0.13 has been released

2012-09-24 Thread Pete Batard
then. Regards, /Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Libusbx-devel] libusbx-1.0.13 has been released

2012-09-24 Thread Pete Batard
have a look at the release note that was posted on this list? We did our best to ensure the possibility of breakage featured prominently. The full content of the post is replicated below. Regards, /Pete On 2012.09.20 22:42, Pete Batard wrote: Hi, It with pleasure that I would like

libusbx-1.0.13 has been released

2012-09-20 Thread Pete Batard
controllers on Windows * Harmonize the device number for root hubs across platforms * Other bug fixes and improvements Release archives can be obtained from: https://sourceforge.net/projects/libusbx/files/releases/1.0.13/ For more information, please visit: http://libusbx.org Regards, /Pete

Re: [Patch v2] block: remove the deprecated ub driver

2012-08-27 Thread Pete Zaitcev
it in one go seems more self-consistent, but either way is fine by me. -- Pete -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Huawei E220 and usb storage

2008-02-25 Thread Pete Zaitcev
the issue (version 11.117.07.00.67). Probably they started to comply with the spec and return 12 bytes of sense according to the allocation length in the SCSI command. https://bugzilla.redhat.com/show_bug.cgi?id=253096#c51 -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb

Re: Huawei E220 and usb storage

2008-02-14 Thread Pete Zaitcev
to 0 the initialization works automatically. I may be able to test this. As you recall, Huawei people themselves suggested nonzero length, this is why we didn't want to change it. But perhaps they are mistaken about the operation of their own hardware. Stranger things happened... -- Pete

Re: Flushing URBs for small control URBs

2008-02-13 Thread Pete Zaitcev
it. Look at the traffic with usbmon, it provides you timestamps for (S)ubmission and (C)allback events. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Flushing URBs for small control URBs

2008-02-13 Thread Pete Zaitcev
out and from the time I call usb_submit_urb until the callback is 1 jiffie or less. In this case you don't need usbmon for timing, but still have a look, it might clear the picture by giving a more complete view. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb

Re: [patch]pm counter leak in usblp

2008-02-12 Thread Pete Zaitcev
On Tue, 12 Feb 2008 19:08:30 +0100, Oliver Neukum [EMAIL PROTECTED] wrote: Signed-off-by: Oliver Neukum [EMAIL PROTECTED] if (handle_bidir(usblp) 0) { + usb_autopm_put_interface(intf); usblp-used = 0; Signed-Off-By: Pete Zaitcev [EMAIL PROTECTED] -- Pete

Re: usbmon output to trace read/writes

2008-02-05 Thread Pete Zaitcev
to implement mon_dmapeek() for ARM, I'll be happy to include it. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS

2008-02-05 Thread Pete Zaitcev
in favour of usb-storage. If so, perhaps we should remove or disble ub.c? Actually I think it may be an argument for keeping ub, if ub exposes a bug in the __blk_end_request. I'll look at the head of the thread and see if Mr. Pinter has hit anything related to Mr. Ueda's work. -- Pete

Re: usbmon output to trace read/writes

2008-02-05 Thread Pete Zaitcev
is mapped and what is not have grown plenty complex already. I don't want to touch it unless we create a cleaned-up URB from scratch. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: How to debug EOVERFLOW errors

2008-02-04 Thread Pete Zaitcev
or get_free_page. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: request: patch for oracom mp3 stick -- usb-storage: unusual_devs.h

2008-02-01 Thread Pete Zaitcev
On Fri, 1 Feb 2008 11:59:56 -0500 (EST), Alan Stern [EMAIL PROTECTED] wrote: You missed the point. Windows does _not_ do it -- i.e., does not clear a halt on either bulk endpoint. Linux does so only because somebody (either Pete Zaitcev or Pat Lavarre, I can't remember which) pointed out

Re: [usb-storage] request: patch for oracom mp3 stick -- usb-storage: unusual_devs.h

2008-02-01 Thread Pete Zaitcev
On Fri, 1 Feb 2008 11:54:12 -0800, Matthew Dharm [EMAIL PROTECTED] wrote: There's no way to know until Robert tests with no clear-halt at all. Which is very easy to do: enable ub, run usbmon... voila. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body

Blackberry through a TT hub

2008-01-26 Thread Pete Zaitcev
?!) and supplies wrong descriptors. Then, berry_charge fails this: if ((udev-actconfig-desc.bMaxPower * 2) == 500) Cheers, -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

Re: Periodic USB failure

2008-01-18 Thread Pete Zaitcev
on the same bus makes me uncomfortable. It's a miracle your HCs scheduler manages to find bandwidth for them. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: WD My Book 500G external drive: error -110

2008-01-08 Thread Pete Zaitcev
/kernel-parameters.txt. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Kingston Datatraveler

2008-01-07 Thread Pete Zaitcev
provides a useful timestamp, especially on more modern systems with something like HPET timer. By comparing timestamps for the case of cat writing to serial port and to disk, one may be able to detect the difference and thus know where to add delays that Alan mentions above. -- Pete - To unsubscribe

Re: usblp not waiting for read data

2008-01-02 Thread Pete Zaitcev
not make any difference in view of the trace above, is there a box with something like 2.6.21 to try? -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Kingston Datatraveler

2007-12-30 Thread Pete Zaitcev
might want to throw that in and see if it sticks. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Kingston Datatraveler

2007-12-21 Thread Pete Zaitcev
:1 -84 0 I had major issues with the Kingston in the past because they do not like a halt clear while not halted, but nothing like this. Perhaps it's a new cheaper revision, buggier than before. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message

Re: Disabling interrupts during IRQ in ohci-hcd

2007-12-06 Thread Pete Zaitcev
unconvinced. -- Pete - To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html