[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZJ7YRP9Fb4HUL1eg@corigine.com>
Date: Fri, 30 Jun 2023 15:27:32 +0200
From: Simon Horman <simon.horman@...igine.com>
To: Hariprasad Kelam <hkelam@...vell.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
davem@...emloft.net, sgoutham@...vell.com, lcherian@...vell.com,
gakula@...vell.com, jerinj@...vell.com, sbhatta@...vell.com
Subject: Re: [net Patch 3/4] octeontx2-af: Add validation before accessing
cgx and lmac
On Fri, Jun 30, 2023 at 11:58:44AM +0530, Hariprasad Kelam wrote:
> with the addition of new MAC blocks like CN10K RPM and CN10KB
> RPM_USX, LMACs are noncontiguous and CGX blocks are also
> noncontiguous. But during RVU driver initialization, the driver
> is assuming they are contiguous and trying to access
> cgx or lmac with their id which is resulting in kernel panic.
>
> This patch fixes the issue by adding proper checks.
>
> [ 23.219150] pc : cgx_lmac_read+0x38/0x70
> [ 23.219154] lr : rvu_program_channels+0x3f0/0x498
> [ 23.223852] sp : ffff000100d6fc80
> [ 23.227158] x29: ffff000100d6fc80 x28: ffff00010009f880 x27:
> 000000000000005a
> [ 23.234288] x26: ffff000102586768 x25: 0000000000002500 x24:
> fffffffffff0f000
>
> Fixes: 91c6945ea1f9 ("octeontx2-af: cn10k: Add RPM MAC support")
> Signed-off-by: Hariprasad Kelam <hkelam@...vell.com>
> Signed-off-by: Sunil Goutham <sgoutham@...vell.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists