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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+Dx6HbdHV9qHksqb0oH-zhYdJCm6Tu8btwG1Zs5ty1CPXXckA@mail.gmail.com>
Date:	Sat, 21 Jan 2012 22:16:06 +0530
From:	"Pradeep A. Dalvi" <netdev@...deepdalvi.com>
To:	Eric Dumazet <eric.dumazet@...il.com>
Cc:	netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
	Christoph Hellwig <hch@....de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] netdev/ethernet: dev_alloc_skb to netdev_alloc_skb

On Sat, Jan 21, 2012 at 9:23 PM, Eric Dumazet <eric.dumazet@...il.com> wrote:
> Le samedi 21 janvier 2012 à 20:13 +0530, Pradeep A. Dalvi a écrit :
>> Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
>>
>> Signed-off-by: Pradeep A. Dalvi <netdev@...deepdalvi.com>
>> ---
>
> ...
>
>>  114 files changed, 257 insertions(+), 203 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/3com/3c501.c b/drivers/net/ethernet/3com/3c501.c
>> index 68da81d..9ebc739 100644
>> --- a/drivers/net/ethernet/3com/3c501.c
>> +++ b/drivers/net/ethernet/3com/3c501.c
>> @@ -702,7 +702,7 @@ static void el_receive(struct net_device *dev)
>>        */
>>
>>       outb(AX_SYS, AX_CMD);
>> -     skb = dev_alloc_skb(pkt_len+2);
>> +     skb = netdev_alloc_skb(dev, pkt_len + NET_IP_ALIGN);
>>
>>       /*
>>        *      Start of frame
>> diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c
>
>
> So the very first chunk of this huge patch is wrong, since it adds a
> true bug.  (You dont change the skb_reserve(skb, 2); later)
>
> I stopped my review at this first chunk.

Thanks! I shall update skb_reserve too.

> Please dont add NET_IP_ALIGN on drivers if you cant test the change
> yourself.
>
> Some hardware really need the hardcoded 2 value.

I appreciate your concerns. Although I feel, it is essential to add
relevant comments by respective (corporate/paid :-) developers, if
their hardware needs hardcoded 2. And especially, if their expectation
is to buy their hardware, even for the smaller purpose of having
uniform mechanism. Long live Open Source! :-)
--
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