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:	Fri, 14 Mar 2014 15:15:24 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	vbridgers2013@...il.com
Cc:	devicetree@...r.kernel.org, netdev@...r.kernel.org,
	linux-doc@...r.kernel.org, robh+dt@...nel.org, pawel.moll@....com,
	mark.rutland@....com, ijc+devicetree@...lion.org.uk,
	galak@...eaurora.org, rob@...dley.net
Subject: Re: [PATCH net-next V5 0/9] Altera Triple Speed Ethernet (TSE)
 Driver

From: David Miller <davem@...emloft.net>
Date: Fri, 14 Mar 2014 15:07:20 -0400 (EDT)

> From: Vince Bridgers <vbridgers2013@...il.com>
> Date: Fri, 14 Mar 2014 09:04:38 -0500
> 
>> This is the version 5 submission for the Altera Triple Speed Ethernet (TSE)
>> driver. All comments received during the version 2, 3, and 4 submissions have 
>> been accepted. Please find the change log and a description of the submission
>> below. 
> 
> Series applied to net-next, thanks.

Actually, I had to revert, your driver adds new warnings to the build:

drivers/net/ethernet/altera/altera_tse_main.c: In function ‘altera_tse_probe’:
drivers/net/ethernet/altera/altera_tse_main.c:1238:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   priv->tx_dma_desc = (void *)descmap;
                       ^
drivers/net/ethernet/altera/altera_tse_main.c:1242:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   priv->rx_dma_desc = (void *)(descmap+priv->txdescmem);
                       ^

A pointer can be larger than an "unsigned int", you therefore cannot
cast it to a pointer.

In fact this code path has a lot of problems, we pass a pointer to an unsigned int
as a "void __iomem *" to request_and_map().  It's not, don't pretend that it is,
and don't use casts to try and make the compiler also not see the problem.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ