diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2023-03-22 19:11:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-06 12:10:53 +0200 |
commit | 0e7ac17634d2254e0fc65307a5f430e4f1fdb7e9 (patch) | |
tree | 3ce4a742635b37b1f6c23a926cf877ba8a03b90c /drivers/pinctrl | |
parent | 2269be4951420af24896dd43987333ab35a72fc8 (diff) | |
download | linux-0e7ac17634d2254e0fc65307a5f430e4f1fdb7e9.tar.gz |
modpost: Fix processing of CRCs on 32-bit build machines
commit fb27e70f6e408dee5d22b083e7a38a59e6118253 upstream. modpost now reads CRCs from .*.cmd files, parsing them using strtol(). This is inconsistent with its parsing of Module.symvers and with their definition as *unsigned* 32-bit values. strtol() clamps values to [LONG_MIN, LONG_MAX], and when building on a 32-bit system this changes all CRCs >= 0x80000000 to be 0x7fffffff. Change extract_crcs_for_object() to use strtoul() instead. Cc: stable@vger.kernel.org Fixes: f292d875d0dc ("modpost: extract symbol versions from *.cmd files") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pinctrl')
0 files changed, 0 insertions, 0 deletions