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-next>] [day] [month] [year] [list]
Message-ID: <71205a49-86f7-48a7-94ce-cfd94e8b103d@csgroup.eu>
Date: Thu, 25 Jan 2024 06:46:45 +0000
From: Christophe Leroy <christophe.leroy@...roup.eu>
To: sambat goson <sombat3960@...il.com>, "Linuxppc-dev@...ts.ozlabs.org"
	<Linuxppc-dev@...ts.ozlabs.org>, "netdev@...r.kernel.org"
	<netdev@...r.kernel.org>, Geoff Levand <geoff@...radead.org>
Subject: Re: ps3_gelic_net.c issue (linux kernel 6.8-rc1)

Hi,

Le 24/01/2024 à 09:41, sambat goson a écrit :
> 	
> Hi,
> I've just test it and find below code not proper in function 
> "gelic_descr_prepare_rx", line 398.
> it causes error as my attached file.
> 
> descr->skb = netdev_alloc_skb(*card->netdev, rx_skb_size);
> if (!descr->skb) {
> descr->hw_regs.payload.dev_addr = 0; /* tell DMAC don't touch memory */
> return -ENOMEM;
> }
> descr->hw_regs.dmac_cmd_status = 0;
> descr->hw_regs.result_size = 0;
> descr->hw_regs.valid_size = 0;
> descr->hw_regs.data_error = 0;
> descr->hw_regs.payload.dev_addr = 0;
> descr->hw_regs.payload.size = 0;
> descr->skb = NULL;                     ---->line 398
> 

Looks like a copy/paste error from gelic_descr_release_tx() in commit 
3ce4f9c3fbb3 ("net/ps3_gelic_net: Add gelic_descr structures"), the 
whole block is wrong I guess, not only the descr->skb = NULL;

Geoff, can you fix it ?

Christophe

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ