Re: [PATCH] Avoid that scsi_exit_rq() triggers a use-after-free

Bart Van Assche
2017-05-03T16:12:10Z

On Tue, 2017-05-02 at 17:00 -0600, Scott Bauer wrote:
> I've applied this on-top of Jens' For-Linus and re-ran the test. I get the following scheduling
> while atomic BUG() splat:
>
> [ 35.753764] BUG: scheduling while atomic: swapper/0/0/0x00000100
> [ 35.754333] [ ... ]
> [ 35.765844] scsi_host_dev_release+0xe7/0x430
> [ 35.766155] [ ... ]
> [ 35.769636] rcu_process_callbacks+0x831/0xfb0

Hello Scott,

Thanks for testing. It's weird that I had not hit this with my own tests.
Anyway, I will post a v2.

Bart.