* [PATCH 0/3 V3] usb: usbtmc: Fix erroneous ioctl returns
@ 2025-04-27 7:47 Dave Penkler
2025-05-01 15:26 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Dave Penkler @ 2025-04-27 7:47 UTC (permalink / raw)
To: gregkh, linux-usb; +Cc: guido.kiener, stable, Dave Penkler
Recent tests with timeouts > INT_MAX produced random error returns
with usbtmc_get_stb. This was caused by assigning the return value
of wait_event_interruptible_timeout to an int which overflowed to
negative values. Also return value on success was the remaining
number of jiffies instead of 0.
These patches fix all the cases where the return of
wait_event_interruptible_timeout was assigned to an int and
the case of the remaining jiffies return in usbtmc_get_stb.
Patch 1: Fixes usbtmc_get_stb
Patch 2: Fixes usbtmc488_ioctl_wait_srq
Patch 3: Fixes usbtmc_generic_read
Dave Penkler (3):
usb: usbtmc: Fix erroneous get_stb ioctl error returns
usb: usbtmc: Fix erroneous wait_srq ioctl return
usb: usbtmc: Fix erroneous generic_read ioctl return
drivers/usb/class/usbtmc.c | 53 ++++++++++++++++++++++----------------
1 file changed, 31 insertions(+), 22 deletions(-)
--
Changes V1 => V2 Add cc to stable line
V2 => V3 Add susbsystem to cover letter
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/3 V3] usb: usbtmc: Fix erroneous ioctl returns
2025-04-27 7:47 [PATCH 0/3 V3] usb: usbtmc: Fix erroneous ioctl returns Dave Penkler
@ 2025-05-01 15:26 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2025-05-01 15:26 UTC (permalink / raw)
To: Dave Penkler; +Cc: linux-usb, guido.kiener, stable
On Sun, Apr 27, 2025 at 09:47:50AM +0200, Dave Penkler wrote:
> Recent tests with timeouts > INT_MAX produced random error returns
> with usbtmc_get_stb. This was caused by assigning the return value
> of wait_event_interruptible_timeout to an int which overflowed to
> negative values. Also return value on success was the remaining
> number of jiffies instead of 0.
>
> These patches fix all the cases where the return of
> wait_event_interruptible_timeout was assigned to an int and
> the case of the remaining jiffies return in usbtmc_get_stb.
>
> Patch 1: Fixes usbtmc_get_stb
> Patch 2: Fixes usbtmc488_ioctl_wait_srq
> Patch 3: Fixes usbtmc_generic_read
>
> Dave Penkler (3):
> usb: usbtmc: Fix erroneous get_stb ioctl error returns
> usb: usbtmc: Fix erroneous wait_srq ioctl return
> usb: usbtmc: Fix erroneous generic_read ioctl return
>
> drivers/usb/class/usbtmc.c | 53 ++++++++++++++++++++++----------------
> 1 file changed, 31 insertions(+), 22 deletions(-)
>
> --
> Changes V1 => V2 Add cc to stable line
> V2 => V3 Add susbsystem to cover letter
> 2.49.0
>
>
I'm confused, I don't see a full v3 set of patches here. Look at what
ended up on the list:
https://lore.kernel.org/all/20250427074750.26447-1-dpenkler@gmail.com/
That's just the cover letter?
Can you try again? Something seems to have gotten lost.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 0/3 V3] usb: usbtmc: Fix erroneous ioctl returns
@ 2025-05-02 7:09 Dave Penkler
0 siblings, 0 replies; 3+ messages in thread
From: Dave Penkler @ 2025-05-02 7:09 UTC (permalink / raw)
To: gregkh, linux-usb; +Cc: guido.kiener, stable, Dave Penkler
Recent tests with timeouts > INT_MAX produced random error returns
with usbtmc_get_stb. This was caused by assigning the return value
of wait_event_interruptible_timeout to an int which overflowed to
negative values. Also return value on success was the remaining
number of jiffies instead of 0.
These patches fix all the cases where the return of
wait_event_interruptible_timeout was assigned to an int and
the case of the remaining jiffies return in usbtmc_get_stb.
Patch 1: Fixes usbtmc_get_stb
Patch 2: Fixes usbtmc488_ioctl_wait_srq
Patch 3: Fixes usbtmc_generic_read
Dave Penkler (3):
usb: usbtmc: Fix erroneous get_stb ioctl error returns
usb: usbtmc: Fix erroneous wait_srq ioctl return
usb: usbtmc: Fix erroneous generic_read ioctl return
drivers/usb/class/usbtmc.c | 53 ++++++++++++++++++++++----------------
1 file changed, 31 insertions(+), 22 deletions(-)
--
Changes V1 => V2 Add cc to stable line
V2 => V3 Add susbsystem to cover letter
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-02 7:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27 7:47 [PATCH 0/3 V3] usb: usbtmc: Fix erroneous ioctl returns Dave Penkler
2025-05-01 15:26 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2025-05-02 7:09 Dave Penkler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox