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:   Sun, 03 Mar 2019 20:58:46 -0800 (PST)
From:   David Miller <davem@...emloft.net>
To:     ben.dooks@...ethink.co.uk
Cc:     netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-kernel@...ts.codethink.co.uk
Subject: Re: [PATCH] net: fixup address-space warnings in
 compat_mc_{get,set}sockopt()

From: Ben Dooks <ben.dooks@...ethink.co.uk>
Date: Fri,  1 Mar 2019 18:39:44 +0000

> Add __user attributes in some of the casts in this function to avoid
> the following sparse warnings:
> 
> net/compat.c:592:57: warning: cast removes address space of expression
> net/compat.c:592:57: warning: incorrect type in initializer (different address spaces)
> net/compat.c:592:57:    expected struct compat_group_req [noderef] <asn:1>*gr32
> net/compat.c:592:57:    got void *<noident>
> net/compat.c:613:65: warning: cast removes address space of expression
> net/compat.c:613:65: warning: incorrect type in initializer (different address spaces)
> net/compat.c:613:65:    expected struct compat_group_source_req [noderef] <asn:1>*gsr32
> net/compat.c:613:65:    got void *<noident>
> net/compat.c:634:60: warning: cast removes address space of expression
> net/compat.c:634:60: warning: incorrect type in initializer (different address spaces)
> net/compat.c:634:60:    expected struct compat_group_filter [noderef] <asn:1>*gf32
> net/compat.c:634:60:    got void *<noident>
> net/compat.c:672:52: warning: cast removes address space of expression
> net/compat.c:672:52: warning: incorrect type in initializer (different address spaces)
> net/compat.c:672:52:    expected struct compat_group_filter [noderef] <asn:1>*gf32
> net/compat.c:672:52:    got void *<noident>
> 
> Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>

Applied to net-next, thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ