ANDROID: GKI: update the abi .xml file

Commit 15b78a8e38 ("hex2bin: make the function hex_to_bin
constant-time") in 5.4.192 changed the signature of the hex_to_bin()
function to fix a key leak attack vector.  This is not an abi break as
older modules that use the function will still work properly, and the
CRC is preserved, but this resolves any issues going forward as well.

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 1 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 function with some sub-type change:

  [C] 'function int hex_to_bin(char)' at hexdump.c:52:1 has some sub-type changes:
    parameter 1 of type 'char' changed:
      type name changed from 'char' to 'unsigned char'
      type size hasn't changed

Fixes: 15b78a8e38 ("hex2bin: make the function hex_to_bin constant-time")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I26b2283300369049abc831072df9a5ace3e770d1
This commit is contained in:
Greg Kroah-Hartman 2022-05-12 18:25:04 +02:00
parent 52509afded
commit 44a1f2e6dc
3 changed files with 80861 additions and 84314 deletions

File diff suppressed because it is too large Load Diff

View File

@ -627,7 +627,11 @@ static inline char *hex_byte_pack_upper(char *buf, u8 byte)
return buf;
}
#ifdef __GENKSYMS__
extern int hex_to_bin(char ch);
#else
extern int hex_to_bin(unsigned char ch);
#endif
extern int __must_check hex2bin(u8 *dst, const char *src, size_t count);
extern char *bin2hex(char *dst, const void *src, size_t count);

View File

@ -42,7 +42,15 @@ EXPORT_SYMBOL(hex_asc_upper);
* uppercase and lowercase letters, so we use (ch & 0xdf), which converts
* lowercase to uppercase
*/
/*
* perserve abi due to 15b78a8e38e8 ("hex2bin: make the function hex_to_bin
* constant-time"
*/
#ifdef __GENKSYMS__
int hex_to_bin(char ch)
#else
int hex_to_bin(unsigned char ch)
#endif
{
unsigned char cu = ch & 0xdf;
return -1 +