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] [day] [month] [year] [list]
Message-ID: <20230327103711.7d73ea09@kernel.org>
Date:   Mon, 27 Mar 2023 10:37:11 -0700
From:   Jakub Kicinski <kuba@...nel.org>
To:     Min Li <min.li.xe@...esas.com>
Cc:     Min Li <lnimi@...mail.com>,
        "richardcochran@...il.com" <richardcochran@...il.com>,
        "lee@...nel.org" <lee@...nel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH mfd-n 1/2] ptp: clockmatrix: support 32-bit address
 space

On Mon, 27 Mar 2023 14:54:41 +0000 Min Li wrote:
> > On Thu, 23 Mar 2023 12:15:17 -0400 Min Li wrote:  
> > > -		err = idtcm_write(idtcm, 0, HW_Q8_CTRL_SPARE,
> > > +		err = idtcm_write(idtcm, HW_Q8_CTRL_SPARE, 0,
> > >  				  &temp, sizeof(temp));  
> > 
> > The flipping of the arguments should also be a separate patch.  
> 
> Hi Jakub
> 
> If I separate this change, the other patch would be broken since it changed
> HW_Q8_CTRL_SPARE from a u16 value to u32 and it doesn't fit the function's
> particular parameter anymore

Both arguments are u16 now, so nothing can overflow until you change
the addresses to be u32.

patch 1 - reorder the arguments
patch 2 - bump the types to u32
patch 3 - change the addresses

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ