linux-um archives
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Anton Ivanov <anton.ivanov@kot-begemot.co.uk>
Cc: Jens Axboe <axboe@kernel.dk>, linux-um@lists.infradead.org, hch@lst.de
Subject: Re: Summary so far - ubd breakage in 4.20-rc1
Date: Wed, 07 Nov 2018 19:53:14 +0100	[thread overview]
Message-ID: <1553895.q7DRUMsJH8@blindfold> (raw)
In-Reply-To: <94397e9b-36a6-92b0-b074-ce3640cee00e@kot-begemot.co.uk>

[CC'ing hch and jens again.]

Am Mittwoch, 7. November 2018, 19:40:13 CET schrieb Anton Ivanov:
> Hi list, hi Richard.
> 
> I spent some time digging into the 4.20-rc1 issue today, and unless I am 
> missing something it looks like UBD breakage and it looks like memory 
> corruption. I cannot pin down where it is coming from.
> 
> These are my finding so far:
> 
> 1. It happens only for write requests - I have not picked up a case 
> where a read req breaks in any way so far. UML boots fine until it tries 
> to remount the root fs read only and then fails with an IO error.
> 
> 2. In my config it looks like it is introduced by the "um: Convert ubd 
> driver to blk-mq" commit. It appears in 4.19 if I cherry-pick it and 
> disappears in 4.20-rc1 if I revert it.
> 
> 3. The write req is correctly passed as far as the actual io handler and 
> correctly processed by the io thread. Upon finishing the request in the 
> io thread the value of req->error is 0 and all values look OK.
> 
> 4. The moment the req is read back by the irq handler req->error is 
> something which looks like data from elsewhere instead of the request. 
> F.e error may contain 55AA55AA
> 
> 5. Other bits of the req are also zapped in a similar manner.
> 
> 6. The pointer to the req passed along the IPC pipe is correct. If a req 
> at 00000000deafe300 is given for execution to the IO thread, that is 
> what is in the io_req variable in the handler. It is just contents of 
> that req by that time are scrambled.
> 
> 7.  I see it only for write reqs.
> 
> I just do not see where it can be zapped. At all. I did a prototype to 
> add the BLK_STS_AGAIN return code and continue from half-x-mitted req 
> logic similar to the one in nbd driver. It is not that. There is 
> something else which causes this and I just do not see it :(
> 
> A.
> 
> 





_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


  reply	other threads:[~2018-11-07 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-07 18:40 Summary so far - ubd breakage in 4.20-rc1 Anton Ivanov
2018-11-07 18:53 ` Richard Weinberger [this message]
2018-11-07 19:19   ` Jens Axboe
2018-11-07 21:15     ` Richard Weinberger
2018-11-07 21:16       ` Jens Axboe
2018-11-07 21:46         ` Richard Weinberger
2018-11-07 21:47           ` Jens Axboe
2018-11-08  8:30             ` Anton Ivanov
2018-11-08 12:06               ` Anton Ivanov
2018-11-08 12:31                 ` Anton Ivanov
2018-11-08 12:43                   ` Anton Ivanov
2018-11-08 13:08                     ` Jens Axboe

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=1553895.q7DRUMsJH8@blindfold \
    --to=richard@nod.at \
    --cc=anton.ivanov@kot-begemot.co.uk \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=linux-um@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