mbox series

[v2,0/2] fcntl{34,36}: Fixes for Android arm64

Message ID 20230427174309.1479093-1-edliaw@google.com
Headers show
Series fcntl{34,36}: Fixes for Android arm64 | expand

Message

Edward Liaw April 27, 2023, 5:43 p.m. UTC
Fixes: 7643115aaacb ("fcntl{34,36}: Always use 64-bit flock struct to avoid EINVAL")

In Richard's commit I think that he had meant to write that the flock64
type (not fcntl64 type) had been removed from some libcs.  I believe
that was the reason why he added the my_flock64 type.

On Android arm64, this test was breaking for two reasons:

1. The my_flock64 type definition did not match the expected type when
compiled for 64 bits.
2. The test was mixing fcntl and the flock64 struct when compiled for 32
bits.

Both seem to be ok on x86_64 but not on arm64.  To fix it, I gated the
compat function on TST_ABI64 instead of tst_kernel_bits.

v1->v2:
Updated commit description and cleaned up error message.

Edward Liaw (2):
  fcntl{34,36}: Only use fcntl64 with 32bit abi
  fcntl{34,36}: Use arch dependent types for my_flock64

 .../kernel/syscalls/fcntl/fcntl_common.h      | 28 +++++++++++--------
 1 file changed, 16 insertions(+), 12 deletions(-)

--
2.40.1.495.gc816e09b53d-goog