Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1737005
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus |
| Date | Thu, 21 Sep 2017 20:50:01 +0200 |
| Message-ID | <useHT-4xK-1@gated-at.bofh.it> (permalink) |
| References | <upWFr-1Yr-3@gated-at.bofh.it> <upYnT-2Ux-3@gated-at.bofh.it> <urLwd-2qd-5@gated-at.bofh.it> <urQYX-63Y-53@gated-at.bofh.it> <us6r1-7Dh-13@gated-at.bofh.it> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-GB |
| Content-Transfer-Encoding | 7bit |
| X-Tm-As-Gconf | 00 |
| X-Cbid | 17092118-0028-0000-0000-000008648A2A |
| X-Ibm-Spammodules-Versions | BY=3.00007774; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000231; SDB=6.00920350; UDB=6.00462457; IPR=6.00700573; BA=6.00005601; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017238; XFM=3.00000015; UTC=2017-09-21 18:48:26 |
| X-Ibm-Av-Detection | SAVI=unused REMOTE=unused XFE=unused |
| X-Cbparentid | 17092118-0029-0000-0000-000037A51505 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2017-09-21_05:,, signatures=0 |
| X-Proofpoint-Spam-Details | rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709210254 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | sachinp <sachinp@linux.vnet.ibm.com>, Paul Mackerras <paulus@samba.org>, linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-kernel <linux-kernel@vger.kernel.org> |
| X-Original-Date | Thu, 21 Sep 2017 11:48:22 -0700 |
| X-Original-Message-ID | <bef5b448-cc23-a656-7048-3d74ef82f508@linux.vnet.ibm.com> |
| X-Original-References | <1505473476.9665.13.camel@abdul.in.ibm.com> <CAL_JsqLXpU3kr7bD0NYZhYBbzxmGzqPL3j0jfLLMpSmXwPGvOw@mail.gmail.com> <87bmm5lhuu.fsf@concordia.ellerman.id.au> <3c15ac5c-c966-be45-1a6c-ba3fa1b9e439@linux.vnet.ibm.com> <87fubgcr2g.fsf@concordia.ellerman.id.au> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1737005 |
Show key headers only | View raw
On 09/21/2017 02:57 AM, Michael Ellerman wrote: > Tyrel Datwyler <tyreld@linux.vnet.ibm.com> writes: >> On 09/20/2017 04:39 AM, Michael Ellerman wrote: >>> Rob Herring <robh@kernel.org> writes: <snip> >>> >>> Testing a fix, will report back. >> >> So, that patch slipped past me. Not only is the parent reference not ours to drop, but >> when I went and looked at dlpar_cpu_add() I also noticed that of_node_put() was done on >> the parent prior to the call to dlpar_attach_node(). With the addition of "parent" to the >> dlpar_attach_node() parameter list dlpar_cpu_add() needs to be fixed up to hold the >> "parent" reference until after dlpar_attach_node() returns. > > Yep. I wrote the same patch :) > > Rob asked me to test it, which I did, but /cpus starts out with an > elevated ref count, so you have to do ~30 (on my system) DLPAR removes > to hit the bug, which I didn't do. Yeah, there are a lot of things that grab references to /cpus. So, I had a good idea that I needed to loop a few times adding and removing multiple cpus to trigger the issue. Its also obvious when using those OF trace points I wrote a while back that refcount for /cpus is dropping off uncharacteristically in response to symmetrical adds/removes of cpus. I saw your note about getting that patchset resubmitted. I'll try and get that queued back up soon. -Tyrel > > I've updated my test script to do roughly $(nproc) x 10 DLPAR removes, > which is hopefully sufficient to catch these bugs in future. > > cheers >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Rob Herring <robh@kernel.org> - 2017-09-15 15:00 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Abdul Haleem <abdhalee@linux.vnet.ibm.com> - 2017-09-19 15:40 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Michael Ellerman <mpe@ellerman.id.au> - 2017-09-20 13:40 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Tyrel Datwyler <tyreld@linux.vnet.ibm.com> - 2017-09-20 19:30 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Michael Ellerman <mpe@ellerman.id.au> - 2017-09-21 12:00 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Tyrel Datwyler <tyreld@linux.vnet.ibm.com> - 2017-09-21 20:50 +0200
Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus Michael Ellerman <mpe@ellerman.id.au> - 2017-09-22 14:00 +0200
csiph-web