test: use a more stable data item
PATCH 1/1 test: use a more stable data item
The runtime bounds check exception for dynamically sized arrays in kernel structures depended on a kernel symbol that is not quite as stable as expected. Use a member from the mm_struct instead.
Signed-off-by Kris Van Hees <[email protected]>
--- test/unittest/arrays/tst.ctf-dynsized-bounds-runtime.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
test/unittest/arrays/tst.ctf-dynsized-bounds-runtime.d +1 -1
@@ -15,7 +15,7 @@ BEGIN { i = pid - pid; /* Non-constant 0 value. */ - trace(`__start_BTF[i]); + trace(curthread->mm->cpu_bitmap[i]); exit(0); }
Signature · 1 line
2.42.0
Quoted 3 lines · Kris Van Hees
The runtime bounds check exception for dynamically sized arrays in kernel structures depended on a kernel symbol that is not quite as stable as expected. Use a member from the
mm_structinstead.
Your assumption that it was analyzed in any way for stability is touching, but inaccurate :P
Pure gut feeling replaced with something a bit more obviously sorta stable (at least it needs more work to massively change it upstream, and massive mm changes are fairly rare):
Quoted 1 line
Signed-off-by Kris Van Hees <[email protected]>
Reviewed-by Nick Alcock <[email protected]>