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>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 30 Jul 2021 11:13:32 +0200
From:   Krzysztof Kozlowski <krzk@...nel.org>
To:     kernel test robot <lkp@...el.com>
Cc:     kbuild-all@...ts.01.org, netdev@...r.kernel.org
Subject: Re: [net-next:master 469/495] drivers/nfc/fdp/fdp.c:116:67: sparse:
 sparse: incorrect type in argument 4 (different modifiers)

On Thu, 29 Jul 2021 at 22:07, kernel test robot <lkp@...el.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
> head:   88ea96f8c14e39f7ee397b815de622ea5e1481ab
> commit: 3d463dd5023b5a58b3c37207d65eeb5acbac2be3 [469/495] nfc: fdp: constify several pointers
> config: ia64-randconfig-s032-20210728 (attached as .config)
> compiler: ia64-linux-gcc (GCC) 10.3.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.3-341-g8af24329-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=3d463dd5023b5a58b3c37207d65eeb5acbac2be3
>         git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
>         git fetch --no-tags net-next master
>         git checkout 3d463dd5023b5a58b3c37207d65eeb5acbac2be3
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=ia64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
>
> sparse warnings: (new ones prefixed by >>)
> >> drivers/nfc/fdp/fdp.c:116:67: sparse: sparse: incorrect type in argument 4 (different modifiers) @@     expected unsigned char [usertype] *payload @@     got char const *data @@
>    drivers/nfc/fdp/fdp.c:116:67: sparse:     expected unsigned char [usertype] *payload
>    drivers/nfc/fdp/fdp.c:116:67: sparse:     got char const *data
> >> drivers/nfc/fdp/fdp.c:116:67: sparse: sparse: incorrect type in argument 4 (different modifiers) @@     expected unsigned char [usertype] *payload @@     got char const *data @@
>    drivers/nfc/fdp/fdp.c:116:67: sparse:     expected unsigned char [usertype] *payload
>    drivers/nfc/fdp/fdp.c:116:67: sparse:     got char const *data
>

This is known and already fixed in:
https://lore.kernel.org/lkml/20210726145224.146006-1-krzysztof.kozlowski@canonical.com/
https://lore.kernel.org/linux-nfc/20210730065625.34010-1-krzysztof.kozlowski@canonical.com/T/#t


Best regards,
Krzysztof

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ