Lines Matching full:wp
230 #define pagemap_check_wp(value, wp) do { \ argument
231 if (!!(value & PM_UFFD_WP) != wp) \
232 err("pagemap uffd-wp bit error: 0x%"PRIx64, value); \
336 * After fork(), we should handle uffd-wp bit differently: in pagemap_test_fork()
424 uffd_test_fail("Detected %s uffd-wp bit in child in present pte", in uffd_wp_fork_test_common()
451 /* Uffd-wp should persist even swapped out */ in uffd_wp_fork_test_common()
455 uffd_test_fail("Detected %s uffd-wp bit in child in zapped pte", in uffd_wp_fork_test_common()
514 uffd_test_fail("Detected %s uffd-wp bit in early CoW of fork()", in uffd_wp_fork_pin_test_common()
527 uffd_test_fail("Detected %s uffd-wp bit when RO pin", in uffd_wp_fork_pin_test_common()
571 * NOTE: MADV_COLLAPSE is not yet compatible with WP, so testing in uffd_minor_test_common()
577 /* NOTE! MADV_COLLAPSE may not work with uffd-wp */ in uffd_minor_test_common()
677 static int faulting_process(int signal_test, bool wp) in faulting_process() argument
712 if (copy_page(uffd, offset, wp)) in faulting_process()
715 /* This is a WP request */ in faulting_process()
773 static void uffd_sigbus_test_common(bool wp) in uffd_sigbus_test_common() argument
787 true, wp, false)) in uffd_sigbus_test_common()
790 if (faulting_process(1, wp)) in uffd_sigbus_test_common()
795 args.apply_wp = wp; in uffd_sigbus_test_common()
807 exit(faulting_process(2, wp)); in uffd_sigbus_test_common()
833 static void uffd_events_test_common(bool wp) in uffd_events_test_common() argument
845 true, wp, false)) in uffd_events_test_common()
848 args.apply_wp = wp; in uffd_events_test_common()
860 exit(faulting_process(0, wp)); in uffd_events_test_common()
1271 do_register_ioctls_test(uffd_test_args_t *args, bool miss, bool wp, bool minor) in do_register_ioctls_test() argument
1278 miss, wp, minor, &ioctls); in do_register_ioctls_test()
1288 (!miss && !wp && !minor)) { in do_register_ioctls_test()
1290 err("register (miss=%d, wp=%d, minor=%d) failed " in do_register_ioctls_test()
1291 "with wrong errno=%d", miss, wp, minor, ret); in do_register_ioctls_test()
1298 if (wp) in do_register_ioctls_test()
1305 "(miss=%d, wp=%d, minor=%d): expected=0x%"PRIx64", " in do_register_ioctls_test()
1306 "returned=0x%"PRIx64, miss, wp, minor, expected, ioctls); in do_register_ioctls_test()
1314 int miss, wp, minor; in uffd_register_ioctls_test() local
1317 for (wp = 0; wp <= 1; wp++) in uffd_register_ioctls_test()
1319 do_register_ioctls_test(args, miss, wp, minor); in uffd_register_ioctls_test()
1365 .name = "wp-fork",
1372 .name = "wp-fork-with-event",
1377 /* when set, child process should inherit uffd-wp bits */
1381 .name = "wp-fork-pin",
1388 .name = "wp-fork-pin-with-event",
1393 /* when set, child process should inherit uffd-wp bits */
1397 .name = "wp-unpopulated",
1411 .name = "minor-wp",
1440 .name = "sigbus-wp",
1455 .name = "events-wp",