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] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 20 Apr 2015 12:43:30 +0300
From:	Konstantin Khlebnikov <koct9i@...il.com>
To:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Stable <stable@...r.kernel.org>, Alex Elder <elder@...aro.org>,
	Sage Weil <sage@...tank.com>,
	David Miller <davem@...emloft.net>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 3.10 31/34] kernel.h: define u8, s8, u32, etc. limits

On Fri, Apr 17, 2015 at 4:29 PM, Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
> 3.10-stable review patch.  If anyone has any objections, please let me know.
>
> ------------------
>
> From: Alex Elder <alex.elder@...aro.org>
>
> commit 89a0714106aac7309c7dfa0f004b39e1e89d2942 upstream.
>
> Create constants that define the maximum and minimum values
> representable by the kernel types u8, s8, u16, s16, and so on.

Now compilation prints a lot of wanings about redefined macro inside
reiserfs and ceph.

Please pick also:

2f874deba7476a1e579af9028baa2f9dfdefedd1
("conditionally define U32_MAX")

04f9b74e4d96d349de12fdd4e6626af4a9f75e09
("remove extra definitions of U32_MAX")

without first second patch doesn't applies clearly

>
> Signed-off-by: Alex Elder <elder@...aro.org>
> Cc: Sage Weil <sage@...tank.com>
> Cc: David Miller <davem@...emloft.net>
> Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
> Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> ---
>  include/linux/kernel.h |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> --- a/include/linux/kernel.h
> +++ b/include/linux/kernel.h
> @@ -29,6 +29,19 @@
>  #define ULLONG_MAX     (~0ULL)
>  #define SIZE_MAX       (~(size_t)0)
>
> +#define U8_MAX         ((u8)~0U)
> +#define S8_MAX         ((s8)(U8_MAX>>1))
> +#define S8_MIN         ((s8)(-S8_MAX - 1))
> +#define U16_MAX                ((u16)~0U)
> +#define S16_MAX                ((s16)(U16_MAX>>1))
> +#define S16_MIN                ((s16)(-S16_MAX - 1))
> +#define U32_MAX                ((u32)~0U)
> +#define S32_MAX                ((s32)(U32_MAX>>1))
> +#define S32_MIN                ((s32)(-S32_MAX - 1))
> +#define U64_MAX                ((u64)~0ULL)
> +#define S64_MAX                ((s64)(U64_MAX>>1))
> +#define S64_MIN                ((s64)(-S64_MAX - 1))
> +
>  #define STACK_MAGIC    0xdeadbeef
>
>  #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x))
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ