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]
Message-ID: <MWHPR1801MB19187A03AF45B0E23B534B6BD3EEA@MWHPR1801MB1918.namprd18.prod.outlook.com>
Date:   Thu, 7 Sep 2023 08:15:58 +0000
From:   Ratheesh Kannoth <rkannoth@...vell.com>
To:     Sebastian Andrzej Siewior <bigeasy@...utronix.de>
CC:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Sunil Kovvuri Goutham <sgoutham@...vell.com>,
        Geethasowjanya Akula <gakula@...vell.com>,
        Subbaraya Sundeep Bhatta <sbhatta@...vell.com>,
        Hariprasad Kelam <hkelam@...vell.com>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "edumazet@...gle.com" <edumazet@...gle.com>,
        "kuba@...nel.org" <kuba@...nel.org>,
        "pabeni@...hat.com" <pabeni@...hat.com>,
        "hawk@...nel.org" <hawk@...nel.org>,
        "alexander.duyck@...il.com" <alexander.duyck@...il.com>,
        "ilias.apalodimas@...aro.org" <ilias.apalodimas@...aro.org>,
        "linyunsheng@...wei.com" <linyunsheng@...wei.com>
Subject: RE: [EXT] Re: [PATCH net v2] octeontx2-pf: Fix page pool cache index
 corruption.

> From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
> Subject: [EXT] Re: [PATCH net v2] octeontx2-pf: Fix page pool cache index
> corruption.
> >  	cq->refill_task_sched = false;
> > +
> > +	local_bh_disable();
> > +	napi_schedule(wrk->napi);
> > +	local_bh_enable();
> 
> This is a nitpick since I haven't look how it works exactly: Is it possible that the
> wrk->napi pointer gets overwritten by
> otx2_napi_handler() since you cleared cq->refill_task_sched() earlier?
I don’t see any issue here.  As NAPI and workqueue execution is serialized (as interrupt is disabled when 
Workqueue is scheduled).  I don’t think we can move "refill_task_sched = false" after local_bh_enable(). 
But we can move refill_task_sched = false as below . but I don’t see a need. 
 +
 +	local_bh_disable();
 +	napi_schedule(wrk->napi);
  +	cq->refill_task_sched = false;
 +	local_bh_enable();

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ