diff options
author | Florian Weimer <fweimer@redhat.com> | 2025-01-20 09:57:09 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-01-20 15:20:57 +0100 |
commit | b3a6bd625ce96bcec0e5d41b9835b1367d97e548 (patch) | |
tree | 147f32c0100ea316306523c6ab7bc9d178613f22 /sysdeps/unix/sysv | |
parent | 89e61e96b79faa104eb89f14028dae99d4ca4648 (diff) | |
download | glibc-b3a6bd625ce96bcec0e5d41b9835b1367d97e548.zip glibc-b3a6bd625ce96bcec0e5d41b9835b1367d97e548.tar.gz glibc-b3a6bd625ce96bcec0e5d41b9835b1367d97e548.tar.bz2 |
Linux: Do not check unused bytes after sched_getattr in tst-sched_setattr
Linux 6.13 was released with a change that overwrites those bytes.
This means that the check_unused subtest fails.
Update the manual accordingly.
Tested-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/tst-sched_setattr.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-sched_setattr.c b/sysdeps/unix/sysv/linux/tst-sched_setattr.c index ebad0ae..bf8d9af 100644 --- a/sysdeps/unix/sysv/linux/tst-sched_setattr.c +++ b/sysdeps/unix/sysv/linux/tst-sched_setattr.c @@ -33,14 +33,6 @@ union unsigned char padding[4096]; } u; -static void -check_unused (void) -{ - TEST_VERIFY (u.attr.size < sizeof (u)); - for (unsigned int i = u.attr.size; i < sizeof (u); ++i) - TEST_COMPARE (u.padding[i], 0xcc); -} - static int do_test (void) { @@ -53,7 +45,6 @@ do_test (void) /* Compiler barrier to bypass write access attribute. */ volatile unsigned int size = sizeof (u); TEST_COMPARE (sched_getattr (0, (struct sched_attr *) &u, size, 0), 0); - check_unused (); TEST_COMPARE (sched_setattr (0, &u.attr, 0), 0); /* Apply unchanged. */ /* Try to switch to the SCHED_OTHER policy. */ @@ -81,14 +72,12 @@ do_test (void) memset (&u, 0xcc, sizeof (u)); TEST_COMPARE (sched_getattr (0, (struct sched_attr *) &u, size, 0), 0); TEST_COMPARE (u.attr.sched_policy, SCHED_OTHER); - check_unused (); /* Raise the niceless level to 19 and observe its effect. */ TEST_COMPARE (nice (19), 19); TEST_COMPARE (sched_getattr (0, &u.attr, sizeof (u.attr), 0), 0); TEST_COMPARE (u.attr.sched_policy, SCHED_OTHER); TEST_COMPARE (u.attr.sched_nice, 19); - check_unused (); /* Invalid buffer arguments result in EINVAL (not EFAULT). */ { |