]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/vmlogrdr: fix IUCV buffer allocation
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Mon, 21 Nov 2016 11:13:58 +0000 (12:13 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 13 Jan 2017 01:56:57 +0000 (20:56 -0500)
commitf8c36e2b98b7b5ea41a01c60349f70764a4e33e6
tree6fa8ac35c9e59cc3dfcd7d208111641f616e5a2d
parent0848a2672eb3a9be93b6eb0c28e7c161f465ca97
s390/vmlogrdr: fix IUCV buffer allocation

[ Upstream commit 5457e03de918f7a3e294eb9d26a608ab8a579976 ]

The buffer for iucv_message_receive() needs to be below 2 GB. In
__iucv_message_receive(), the buffer address is casted to an u32, which
would result in either memory corruption or an addressing exception when
using addresses >= 2 GB.

Fix this by using GFP_DMA for the buffer allocation.

Cc: stable@vger.kernel.org
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/s390/char/vmlogrdr.c