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


Groups > linux.kernel > #1717356 > unrolled thread

Re: KASAN + general protection fault while writing to mmc

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-08-22 14:20 +0200
Last post2017-08-22 18:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: KASAN + general protection fault while writing to mmc Linus Walleij <linus.walleij@linaro.org> - 2017-08-22 14:20 +0200
    Re: KASAN + general protection fault while writing to mmc Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-08-22 18:00 +0200

#1717356 — Re: KASAN + general protection fault while writing to mmc

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-08-22 14:20 +0200
SubjectRe: KASAN + general protection fault while writing to mmc
Message-ID<uhgk2-2fN-13@gated-at.bofh.it>
On Thu, Aug 10, 2017 at 10:07 PM, Seraphime Kirkovski
<kirkseraph@gmail.com> wrote:

> I got this while restoring a backup with dd on an SDCard.
> On 4.13.0-rc4 I get it everytime.
>
> I'm not sure if it isn't a hardware problem as I have no more cards
> left.

The only patch that touched blk_rq_map_sg() that calls sg_next()
was this:

commit 67e69d5220c904238f94bb2e6001d7c590f5a0bb
Author: Linus Walleij <linus.walleij@linaro.org>
Date:   Fri May 19 15:37:27 2017 +0200

    mmc: block: remove req back pointer

    Just as we can use blk_mq_rq_from_pdu() to get the per-request
    tag we can use blk_mq_rq_to_pdu() to get a request from a tag.
    Introduce a static inline helper so we are on the clear what
    is happening.

    Suggested-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Can you try reverting it and see if the problem goes away?

Yours,
Linus Walleij

[toc] | [next] | [standalone]


#1717530

FromSeraphime Kirkovski <kirkseraph@gmail.com>
Date2017-08-22 18:00 +0200
Message-ID<uhjKW-4r8-25@gated-at.bofh.it>
In reply to#1717356
On Tue, Aug 22, 2017 at 02:17:38PM +0200, Linus Walleij wrote:
 
> commit 67e69d5220c904238f94bb2e6001d7c590f5a0bb
> Author: Linus Walleij <linus.walleij@linaro.org>
> Date:   Fri May 19 15:37:27 2017 +0200
> 
>     mmc: block: remove req back pointer
> 
>     Just as we can use blk_mq_rq_from_pdu() to get the per-request
>     tag we can use blk_mq_rq_to_pdu() to get a request from a tag.
>     Introduce a static inline helper so we are on the clear what
>     is happening.
> 
>     Suggested-by: Christoph Hellwig <hch@lst.de>
>     Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>     Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> 
> Can you try reverting it and see if the problem goes away?
> 
> Yours,
> Linus Walleij

Thanks for the reply !

The problem doesn't go away, it is only delayed.

Will try to find some time to bisect it.

Thanks,
Seraphime Kirkovski

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web