Thread (2 messages) 2 messages, 2 authors, 2019-07-31

Re: [PATCH v2] isdn: hfcsusb: Fix mISDN driver crash caused by transfer buffer on the stack

From: David Miller <davem@davemloft.net>
Date: 2019-07-31 15:54:27

From: Juliana Rodrigueiro <redacted>
Date: Wed, 31 Jul 2019 15:17:23 +0200
Since linux 4.9 it is not possible to use buffers on the stack for DMA transfers.

During usb probe the driver crashes with "transfer buffer is on stack" message.

This fix k-allocates a buffer to be used on "read_reg_atomic", which is a macro
that calls "usb_control_msg" under the hood.

Kernel 4.19 backtrace:
 ...
Signed-off-by: Juliana Rodrigueiro <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help