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-next>] [day] [month] [year] [list]
Message-ID: <CAFGhKby4e5fLwr=0xj9by_UiX2u7eVYJZz5gNaAjYKDRrUDB3Q@mail.gmail.com>
Date:   Tue, 13 Jun 2017 11:55:26 +0200
From:   Charlemagne Lasse <charlemagnelasse@...il.com>
To:     linux-sparse@...r.kernel.org
Cc:     kernelnewbies@...nelnewbies.org, linux-kernel@...r.kernel.org,
        Jeff Layton <jlayton@...marydata.com>,
        Dan Carpenter <dan.carpenter@...cle.com>
Subject: ./include/linux/err.h:35:16: warning: dereference of noderef expression

Hi,

I have following code which generates a warning when compiling with "make C=1".

~~~~~~~
struct task_struct *kthread;
kthread = kthread_create(xxxxx, yyyyy, "zzzzz");
if (IS_ERR(kthread)) {
~~~~~~~

The warning is

    ./include/linux/err.h:35:16: warning: dereference of noderef expression

And disappears when I remove the IS_ERR. How do I correctly work
around this incorrect warning?

Btw. I am using Debian stretch amd64. It seems like this is related to
the __force used in the parameter list of IS_ERR. Removing it also
removes the warning.

If it is fixed in sparse's git then when will there be a new release of it?

Greetings,
Charlemagne Lasse

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ