lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CA+G9fYuW2tu3Tu_8rMoXK_anMJO8t9qw2vhxfQrLXY04rCRPqA@mail.gmail.com>
Date:   Thu, 17 Aug 2023 16:30:28 +0530
From:   Naresh Kamboju <naresh.kamboju@...aro.org>
To:     clang-built-linux <llvm@...ts.linux.dev>,
        open list <linux-kernel@...r.kernel.org>,
        lkft-triage@...ts.linaro.org,
        "open list:KERNEL SELFTEST FRAMEWORK" 
        <linux-kselftest@...r.kernel.org>
Subject: selftests: timerfd.c:64:7: error: absolute value function 'abs' given
 an argument of type 'long long' but has parameter of type 'int' which may
 cause truncation of value

While building selftests landlock following warnings / errors noticed on the
Linux next with clang-17 toolchain.

Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>

Build errors:
------------
timens/timerfd
timerfd.c:64:7: error: absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Werror,-Wabsolute-value]
   64 |                 if (abs(elapsed - 3600) > 60) {
      |                     ^
timerfd.c:64:7: note: use function 'llabs' instead
   64 |                 if (abs(elapsed - 3600) > 60) {
      |                     ^~~
      |                     llabs
1 error generated.
make[4]: Leaving directory 'selftests/timens'


Links:
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/

Steps to reproduce:
tuxmake --runtime podman --target-arch arm64 --toolchain clang-17
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/config
LLVM=1 LLVM_IAS=1 dtbs dtbs-legacy headers kernel kselftest modules

--
Linaro LKFT
https://lkft.linaro.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ