Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596573 > unrolled thread

[PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e

Started byLarry Finger <Larry.Finger@lwfinger.net>
First post2017-03-10 03:40 +0100
Last post2017-03-11 18:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e Larry Finger <Larry.Finger@lwfinger.net> - 2017-03-10 03:40 +0100
    Re: [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e Linus Torvalds <torvalds@linux-foundation.org> - 2017-03-11 18:10 +0100

#1596573 — [PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e

FromLarry Finger <Larry.Finger@lwfinger.net>
Date2017-03-10 03:40 +0100
Subject[PATCH] powerpc: Fix crash introduced with commit 5657933dbb6e
Message-ID<tjiDf-5vT-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1598369

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2017-03-11 18:10 +0100
Message-ID<tjSGK-5RQ-15@gated-at.bofh.it>
In reply to#1596573
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web