]> Git Repo - qemu.git/commit
syscall: fixed mincore(2) not failing with ENOMEM
authorFranklin \"Snaipe\" Mathieu <[email protected]>
Fri, 17 Feb 2017 08:58:00 +0000 (08:58 +0000)
committerLaurent Vivier <[email protected]>
Mon, 27 Feb 2017 22:10:02 +0000 (23:10 +0100)
commit98a3331a552f6e033da10bd07b14ccdd81d05e61
tree08fe11e2a1fc3d9c3b614ec25627bcbb9664d412
parent59ebb6e451ffe5d4ccb5a62ee6646ed418361ef0
syscall: fixed mincore(2) not failing with ENOMEM

The current implementation of the mincore(2) syscall sets errno to
EFAULT when the region identified by the first two parameters is
invalid.

This goes against the man page specification, where mincore(2) should
only fail with EFAULT when the third parameter is an invalid address;
and fail with ENOMEM when the checked region does not point to mapped
memory.

Signed-off-by: Franklin "Snaipe" Mathieu <[email protected]>
Cc: Riku Voipio <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Message-Id: <20170217085800[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
linux-user/syscall.c
This page took 0.026004 seconds and 4 git commands to generate.