linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: keith.busch@intel.com (Keith Busch)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/12] error handling and pciehp maintenance
Date: Tue, 6 Nov 2018 09:47:52 -0700	[thread overview]
Message-ID: <20181106164751.GA6217@localhost.localdomain> (raw)
In-Reply-To: <20181106163400.GA21193@e107981-ln.cambridge.arm.com>

On Tue, Nov 06, 2018 at 04:34:08PM +0000, Lorenzo Pieralisi wrote:
> The question is whether we really need to dynamically patch the kernel
> with ftrace to achieve what that patch does.
> 
> Furthermore, it would also be good to report what bugs we are actually
> fixing, from what you are writing falling back to the current method if
> !DYNAMIC_FTRACE_WITH_REGS is broken in many ways and I would start with
> fixing the current behaviour with something that does not depend on arch
> features that may not even be implemented.

There are two problems with the current method:

  1. It may dereference pci_dev after it was freed
  2. The pci_dev's children inherit its fake pci_bus's ops on
     enumeration

Both result in kernel panic.

The dynamic kernel patch just seemed like a cool way to inject errors
without messing with the driver's structures. But if there's a more
elegant way to do it, I'm all for it.

  reply	other threads:[~2018-11-06 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180918235848.26694-1-keith.busch@intel.com>
     [not found] ` <20181004214015.GK120535@bhelgaas-glaptop.roam.corp.google.com>
     [not found]   ` <20181004221137.GB21834@localhost.localdomain>
2018-10-05 17:31     ` [PATCH 00/12] error handling and pciehp maintenance Bjorn Helgaas
2018-10-08 16:18       ` Keith Busch
2018-10-08 17:23         ` Bjorn Helgaas
2018-11-06 16:34         ` Lorenzo Pieralisi
2018-11-06 16:47           ` Keith Busch [this message]
2018-11-06 17:21             ` Lorenzo Pieralisi
2018-11-06 17:26               ` Keith Busch
2018-10-09 16:03       ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181106164751.GA6217@localhost.localdomain \
    --to=keith.busch@intel.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).