RE: [PATCH 1/2] audit: Add syscall return code handling for compat task

2021-04-14 Thread David Laight
From: He Zhe > Sent: 14 April 2021 09:02 > > When 32-bit userspace application is running on 64-bit kernel, the 32-bit > syscall return code would be changed from u32 to u64 in regs_return_value > and then changed to s64. Hence the negative return code recorded by audit > would end up being a big

[PATCH 1/2] audit: Add syscall return code handling for compat task

2021-04-14 Thread He Zhe
When 32-bit userspace application is running on 64-bit kernel, the 32-bit syscall return code would be changed from u32 to u64 in regs_return_value and then changed to s64. Hence the negative return code recorded by audit would end up being a big positive number like below. type=SYSCALL msg=audit(