[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190731.085425.835225391467422617.davem@davemloft.net>
Date: Wed, 31 Jul 2019 08:54:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: juliana.rodrigueiro@...ra2net.com
Cc: isdn@...ux-pingi.de, netdev@...r.kernel.org,
thomas.jarosch@...ra2net.com
Subject: Re: [PATCH v2] isdn: hfcsusb: Fix mISDN driver crash caused by
transfer buffer on the stack
From: Juliana Rodrigueiro <juliana.rodrigueiro@...ra2net.com>
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 <juliana.rodrigueiro@...ra2net.com>
Applied.
Powered by blists - more mailing lists