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]
Message-ID: <1440000871.6610.22.camel@edumazet-glaptop2.roam.corp.google.com>
Date:	Wed, 19 Aug 2015 09:14:31 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Meelis Roos <mroos@...ux.ee>
Cc:	netdev@...r.kernel.org
Subject: Re: inet_hashtables.c: warning: division by zero

On Wed, 2015-08-19 at 18:24 +0300, Meelis Roos wrote:
> Noticed this while compiling 4.2-rc7+git on i386 with gcc 4.9.2:
> 
>   CC      net/ipv4/inet_hashtables.o
> In file included from include/linux/list.h:8:0,
>                  from include/linux/module.h:9,
>                  from net/ipv4/inet_hashtables.c:16:
> net/ipv4/inet_hashtables.c: In function ‘inet_ehash_locks_alloc’:
> net/ipv4/inet_hashtables.c:632:24: warning: division by zero [-Wdiv-by-zero]
>      2 * L1_CACHE_BYTES / sizeof(spinlock_t),
>                         ^
> include/linux/kernel.h:769:17: note: in definition of macro ‘max_t’
>   type __max1 = (x);   \
>                  ^
> 


This warning was fixed : 

http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=89e478a2aa58af2548b7f316e4d5b6bcc9eade5b



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ