The branch main has been updated by christos:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f6b3bd1f3384d262b893af123f3fc2df21c5b9ee

commit f6b3bd1f3384d262b893af123f3fc2df21c5b9ee
Author:     Christos Margiolis <[email protected]>
AuthorDate: 2026-06-21 12:17:39 +0000
Commit:     Christos Margiolis <[email protected]>
CommitDate: 2026-06-21 12:19:14 +0000

    sound tests: Remove trailing PROT_EXEC
    
    Fixes:          730eaf466493 ("sound tests: Add PROT_EXEC rejection test")
    Reported by:    Oliver Pinter <[email protected]>
    Sponsored by:   The FreeBSD Foundation
    MFC after:      6 days
---
 tests/sys/sound/mmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/sound/mmap.c b/tests/sys/sound/mmap.c
index e83193db9bc1..6ebfd2f7dec5 100644
--- a/tests/sys/sound/mmap.c
+++ b/tests/sys/sound/mmap.c
@@ -120,7 +120,7 @@ ATF_TC_BODY(mmap_reject_prot_exec, tc)
 
        len = 8;
 
-       buf = mmap(NULL, len, PROT_READ | PROT_EXEC | PROT_EXEC, MAP_SHARED,
+       buf = mmap(NULL, len, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_SHARED,
            fd, 0);
        ATF_REQUIRE_MSG(buf == MAP_FAILED, FMT_ERR("mmap"));
 

Reply via email to