ublk: snapshot batch commands before preparing I/O - #1025
Open
blktests-ci[bot] wants to merge 1 commit into
Open
ublk: snapshot batch commands before preparing I/O#1025blktests-ci[bot] wants to merge 1 commit into
blktests-ci[bot] wants to merge 1 commit into
Conversation
Author
|
Upstream branch: dc59e4f |
Author
|
Upstream branch: dc59e4f |
blktests-ci
Bot
force-pushed
the
series/1119269=>linus-master
branch
from
July 2, 2026 12:00
10d730c to
09fe29e
Compare
blktests-ci
Bot
force-pushed
the
linus-master_base
branch
from
July 2, 2026 19:18
90ffd56 to
d52f35a
Compare
Author
|
Upstream branch: 87320be |
blktests-ci
Bot
force-pushed
the
series/1119269=>linus-master
branch
from
July 2, 2026 19:25
09fe29e to
93601e3
Compare
blktests-ci
Bot
force-pushed
the
linus-master_base
branch
from
July 6, 2026 08:28
d52f35a to
a644c13
Compare
Author
|
Upstream branch: 8cdeaa5 |
blktests-ci
Bot
force-pushed
the
series/1119269=>linus-master
branch
from
July 6, 2026 08:55
93601e3 to
b8acdda
Compare
blktests-ci
Bot
force-pushed
the
linus-master_base
branch
from
July 7, 2026 08:33
a644c13 to
a2204c3
Compare
Author
|
Upstream branch: 0e35b9b |
The batch prepare path rereads its userspace element array when rolling back a partially prepared batch. Userspace can change an already processed tag before the second read, causing rollback to reject the replacement tag and leave earlier I/O slots prepared. The WARN_ON_ONCE() in the rollback path then fires. Copy the bounded batch into kernel memory before changing any I/O state and use the same snapshot for preparation and rollback. Commit and fetch batches retain the existing chunked userspace walk. Fixes: b256795 ("ublk: handle UBLK_U_IO_PREP_IO_CMDS") Reported-by: syzbot+1a67ee1aa79484801ec6@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=1a67ee1aa79484801ec6 Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com> Reviewed-by: Ming Lei <tom.leiming@gmail.com>
blktests-ci
Bot
force-pushed
the
series/1119269=>linus-master
branch
from
July 7, 2026 08:38
b8acdda to
0c65a60
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request for series with
subject: ublk: snapshot batch commands before preparing I/O
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1119269