Hi You,
FYI fixed in 5398d6c41 ("setfsuid02: using -1 as invalid fsuid for setfsuid()").
BTW this test failed on other archs (at least on aarch64, ppc64le, I suspect
it's not arch specific), therefore your solution would not work.
Kind regards,
Petr