Files
linux/drivers
Jia-Ju Bai e7d5fa96ef rxe: Fix a sleep-in-atomic bug in post_one_send
[ Upstream commit 07d432bb97 ]

The driver may sleep under a spin lock, and the function call path is:
post_one_send (acquire the lock by spin_lock_irqsave)
  init_send_wqe
    copy_from_user --> may sleep

There is no flow that makes "qp->is_user" true, and copy_from_user may
cause bug when a non-user pointer is used. So the lines of copy_from_user
and check of "qp->is_user" are removed.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:42:46 -08:00
..
2018-07-22 14:27:36 +02:00
2018-02-25 11:05:55 +01:00
2018-08-22 07:47:14 +02:00
2017-09-09 17:39:41 +02:00
2018-08-24 13:12:32 +02:00
2016-09-20 20:57:12 +10:00
2018-07-25 11:24:01 +02:00
2018-10-03 17:01:42 -07:00