All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e
@ 2017-03-10  2:33 Larry Finger
  2017-03-11 17:07 ` Linus Torvalds
  2017-03-14 11:46 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Larry Finger @ 2017-03-10  2:33 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-kernel, Larry Finger, linuxppc-dev, Benjamin Herrenschmidt,
	regressions @ leemhuis . info

Code inserted during the code merged between kernels 4.10 and 4.11-rc1
caused an early panic quickly followed by a complete shutdown for
PowerPC. The traceback was not displayed long enough to read or
photograph, thus it is not reproduced here.

The problem was bisected to commit 5657933dbb6e ("treewide: Move dma_ops
from struct dev_archdata into struct device"). The problem was a missing
copy of critical information from struct dev_archdata into struct device,
leading to the dereference of a null pointer.

This fix was suggested by Benjamin Herrenschmidt.

Fixes: commit 5657933dbb6e ("treewide: Move dma_ops from struct dev_archdata into struct device")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: regressions@leemhuis.info <regressions@leemhuis.info>

 drivers/macintosh/macio_asic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 3f041b1..f757cef2 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -392,6 +392,7 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
 	 * To get all the fields, copy all archdata
 	 */
 	dev->ofdev.dev.archdata = chip->lbus.pdev->dev.archdata;
+	dev->ofdev.dev.dma_ops = chip->lbus.pdev->dev.dma_ops;
 #endif /* CONFIG_PCI */
 
 #ifdef DEBUG
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e
  2017-03-10  2:33 [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e Larry Finger
@ 2017-03-11 17:07 ` Linus Torvalds
  2017-03-14 11:46 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2017-03-11 17:07 UTC (permalink / raw)
  To: Larry Finger
  Cc: Linux Kernel Mailing List, ppc-dev, Benjamin Herrenschmidt,
	regressions @ leemhuis . info

On Thu, Mar 9, 2017 at 6:33 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> The problem was bisected to commit 5657933dbb6e ("treewide: Move dma_ops
> from struct dev_archdata into struct device"). The problem was a missing
> copy of critical information from struct dev_archdata into struct device,
> leading to the dereference of a null pointer.
>
> This fix was suggested by Benjamin Herrenschmidt.

I'm assuming I'll be getting this through the powerpc tree. Holler if
that isn't the case.

                Linus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: powerpc: Fix crash introduced with commit 5657933dbb6e
  2017-03-10  2:33 [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e Larry Finger
  2017-03-11 17:07 ` Linus Torvalds
@ 2017-03-14 11:46 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2017-03-14 11:46 UTC (permalink / raw)
  To: Larry Finger, Linus Torvalds
  Cc: regressions @ leemhuis . info, linuxppc-dev, linux-kernel, Larry Finger

On Fri, 2017-03-10 at 02:33:51 UTC, Larry Finger wrote:
> Code inserted during the code merged between kernels 4.10 and 4.11-rc1
> caused an early panic quickly followed by a complete shutdown for
> PowerPC. The traceback was not displayed long enough to read or
> photograph, thus it is not reproduced here.
> 
> The problem was bisected to commit 5657933dbb6e ("treewide: Move dma_ops
> from struct dev_archdata into struct device"). The problem was a missing
> copy of critical information from struct dev_archdata into struct device,
> leading to the dereference of a null pointer.
> 
> This fix was suggested by Benjamin Herrenschmidt.
> 
> Fixes: commit 5657933dbb6e ("treewide: Move dma_ops from struct dev_archdata into struct device")
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: regressions@leemhuis.info <regressions@leemhuis.info>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/46f401c4297a2232a037ad8801b6c8

cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-14 11:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10  2:33 [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e Larry Finger
2017-03-11 17:07 ` Linus Torvalds
2017-03-14 11:46 ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.