All of lore.kernel.org
 help / color / mirror / Atom feed
* mbind() fails to fail with EIO
@ 2019-03-15 16:01 ` Cyril Hrubis
  0 siblings, 0 replies; 24+ messages in thread
From: Cyril Hrubis @ 2019-03-15 16:01 UTC (permalink / raw)
  To: linux-mm, linux-api; +Cc: ltp, Vlastimil Babka

Hi!
I've started to write tests for mbind() and found out that mbind() does
not work as described in manual page in a case that page has been
faulted on different node that we are asking it to bind to. Looks like
this is working fine on older kernels. On my testing machine with 3.0
mbind() fails correctly with EIO but succeeds unexpectedly on newer
kernels such as 4.12.

What the test does is:

* mmap() private mapping
* fault it
* find out on which node it is faulted on
* mbind() it to a different node with MPOL_BIND and MPOL_MF_STRICT and
  expects to get EIO

The test code can be seen and compiled from:

https://github.com/metan-ucw/ltp/blob/master/testcases/kernel/syscalls/mbind/mbind02.c

-- 
Cyril Hrubis
chrubis@suse.cz


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-03-19 16:30 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15 16:01 mbind() fails to fail with EIO Cyril Hrubis
2019-03-15 16:01 ` [LTP] " Cyril Hrubis
2019-03-18 16:08 ` Qian Cai
2019-03-18 16:08   ` [LTP] " Qian Cai
2019-03-19 12:59   ` Cyril Hrubis
2019-03-19 12:59     ` [LTP] " Cyril Hrubis
2019-03-18 18:12 ` Yang Shi
2019-03-18 18:12   ` [LTP] " Yang Shi
2019-03-19 13:27   ` Oscar Salvador
2019-03-19 13:27     ` [LTP] " Oscar Salvador
2019-03-19 14:26     ` Kirill A. Shutemov
2019-03-19 14:26       ` [LTP] " Kirill A. Shutemov
2019-03-19 14:30       ` Cyril Hrubis
2019-03-19 14:30         ` [LTP] " Cyril Hrubis
2019-03-19 14:41       ` Oscar Salvador
2019-03-19 14:41         ` [LTP] " Oscar Salvador
2019-03-19 14:52         ` Kirill A. Shutemov
2019-03-19 14:52           ` [LTP] " Kirill A. Shutemov
2019-03-19 15:10           ` Oscar Salvador
2019-03-19 15:10             ` [LTP] " Oscar Salvador
2019-03-19 16:29             ` Yang Shi
2019-03-19 16:29               ` [LTP] " Yang Shi
2019-03-19 16:25           ` Yang Shi
2019-03-19 16:25             ` [LTP] " Yang Shi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.