Skip to contentSkip to conversation

linux-next: Fixes tag needs some work in the block tree

DISCUSSION Stephen Rothwell 4 participants 11 messages Aug 14, 2023 – Aug 15, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit

71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

Fixes 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

- Target SHA1 does not exist

Maybe you meant

Fixes b39f35ebe86d ("md: don't quiesce in mddev_suspend()")
Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi,

Quoted 6 lines · Stephen Rothwell

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")
Quoted 7 lines

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

Is there any way that I can fix this ?

Thanks,
Kuai

Quoted 5 lines

Maybe you meant

Fixes b39f35ebe86d ("md: don't quiesce in mddev_suspend()")
#2 lore raw
Quoted 11 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 8 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

Quoted 8 lines
Quoted 5 lines
   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Quoted 1 line

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Signature · 1 line
Jens Axboe
#3 lore raw
Quoted 17 lines · Jens Axboe
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 5 lines
Quoted 2 lines

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Song

#4 lore raw
Quoted 29 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Please send a new one, I've dropped the old one.

Signature · 1 line
Jens Axboe
#5 lore raw
Quoted 31 lines · Jens Axboe
Quoted 29 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Thanks,
Song

#6 lore raw
Quoted 37 lines · Song Liu
Quoted 36 lines · On Wed, Aug 16, 2023 at 12:07?AM Jens Axboe <[email protected]> wrote:
Quoted 34 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 5 lines
Quoted 2 lines

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Yes please. Let's fix this.

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Where are you looking? It's at:

commit 66a6a5d0ec852eaced589da066376e69397cd71e (origin/for-6.6/block, for-6.6/block)

Author: Ruan Jinjie <[email protected]>
Date:   Tue Aug 15 19:48:14 2023 +0800

ublk: Switch to memdup_user_nul() helper

since about 15 min ago.

Signature · 1 line
Jens Axboe
#7 lore raw
Quoted 41 lines · Jens Axboe
Quoted 39 lines · Song Liu
Quoted 38 lines · On Wed, Aug 16, 2023 at 12:07?AM Jens Axboe <[email protected]> wrote:
Quoted 35 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 5 lines
Quoted 2 lines

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Where are you looking? It's at:

I am looking at

https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git

It appears to be some lag from git server?

Thanks,
Song

Quoted 8 lines

commit 66a6a5d0ec852eaced589da066376e69397cd71e (origin/for-6.6/block, for-6.6/block)

Author: Ruan Jinjie <[email protected]>
Date:   Tue Aug 15 19:48:14 2023 +0800

ublk: Switch to memdup_user_nul() helper

since about 15 min ago.

#8 lore raw
Quoted 49 lines · Song Liu
Quoted 48 lines · On Wed, Aug 16, 2023 at 12:20?AM Jens Axboe <[email protected]> wrote:
Quoted 45 lines · Song Liu
Quoted 31 lines · On Wed, Aug 16, 2023 at 12:07?AM Jens Axboe <[email protected]> wrote:
Quoted 29 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Quoted 7 lines
Quoted 1 line

Where are you looking? It's at:

I am looking at

https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git

It appears to be some lag from git server?

That's just a backup, I always pull and push from git.kernel.dk. The korg one will lag about an hour, depending on when things are pushed. I've never used the korg one as the canonical location.

Signature · 1 line
Jens Axboe
#9 lore raw
Quoted 55 lines · Jens Axboe
Quoted 53 lines · Song Liu
Quoted 41 lines · On Wed, Aug 16, 2023 at 12:20?AM Jens Axboe <[email protected]> wrote:
Quoted 39 lines · Song Liu
Quoted 38 lines · On Wed, Aug 16, 2023 at 12:07?AM Jens Axboe <[email protected]> wrote:
Quoted 35 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 5 lines
Quoted 2 lines

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Where are you looking? It's at:

I am looking at

Quoted 7 lines
Quoted 3 lines

https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git

It appears to be some lag from git server?

That's just a backup, I always pull and push from git.kernel.dk. The korg one will lag about an hour, depending on when things are pushed. I've never used the korg one as the canonical location.

Got it. I will update my git config.

Here is the updated PR:

The following changes since commit 66a6a5d0ec852eaced589da066376e69397cd71e:

ublk: Switch to memdup_user_nul() helper (2023-08-15 10:06:54 -0600)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git
tags/md-next-20230814-resend

for you to fetch changes up to 0d0bd28c500173bfca78aa840f8f36d261ef1765:

md/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid()
(2023-08-15 09:40:27 -0700)

----------------------------------------------------------------
Li Lingfeng (1):

      md: Hold mddev->reconfig_mutex when trying to get mddev->sync_thread

WANG Xuerui (5):
raid6: remove the <linux/export.h> include from recov.c
raid6: guard the tables.c include of <linux/export.h> with __KERNEL__
raid6: test: cosmetic cleanups for the test Makefile
raid6: test: make sure all intermediate and artifact files are .gitignored
raid6: test: only check for Altivec if building on powerpc hosts

Yu Kuai (3):
md/raid5-cache: fix a deadlock in r5l_exit_log() md/raid10: fix a 'conf->barrier' leakage in raid10_takeover() md/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid()

Zhang Shurong (1):
md: raid1: fix potential OOB in raid1_remove_disk()

 drivers/md/md-cluster.c   |  8 ++++----
 drivers/md/md.c           |  9 +++++----
 drivers/md/md.h           |  2 +-
 drivers/md/raid1.c        |  8 ++++++--
 drivers/md/raid10.c       |  3 +--
 drivers/md/raid5-cache.c  | 14 ++++++++------
 drivers/md/raid5.c        |  2 +-
 lib/raid6/mktables.c      |  2 ++
 lib/raid6/recov.c         |  1 -
 lib/raid6/test/.gitignore |  3 +++
 lib/raid6/test/Makefile   | 50
++++++++++++++++++++++++++------------------------
 11 files changed, 57 insertions(+), 45 deletions(-)
 create mode 100644 lib/raid6/test/.gitignore

Thanks,
Song

#10 lore raw
Quoted 69 lines · Song Liu
Quoted 55 lines · On Wed, Aug 16, 2023 at 12:31?AM Jens Axboe <[email protected]> wrote:
Quoted 53 lines · Song Liu
Quoted 41 lines · On Wed, Aug 16, 2023 at 12:20?AM Jens Axboe <[email protected]> wrote:
Quoted 39 lines · Song Liu
Quoted 38 lines · On Wed, Aug 16, 2023 at 12:07?AM Jens Axboe <[email protected]> wrote:
Quoted 35 lines · Song Liu
Quoted 17 lines · On Tue, Aug 15, 2023 at 11:08?PM Jens Axboe <[email protected]> wrote:
Quoted 15 lines · Yu Kuai

Hi,

? 2023/08/15 7:19, Stephen Rothwell ??:

Quoted 12 lines

Hi all,

In commit

   71070e7bd25d ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()")

Fixes tag

   Fixes: 4d27e927344a ("md: don't quiesce in mddev_suspend()")

has these problem(s):

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

- Target SHA1 does not exist

Sorry about this, the commit was picked from previous md-next branch, and I didn't know that it will change...

It's most likely not your fault, I'm guessing Song rebased that branch and this is why the sha changed. Song?

Yeah, it is my fault. I am really sorry for this issue.

Quoted 5 lines
Quoted 2 lines

Is there any way that I can fix this ?

Only way to fix this is if I rewind my branch and Song updates his branch to not have this issue, and then sends a new pull request.

Yes please. Let's fix this.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Please send a new one, I've dropped the old one.

Is this the for-6.6/block branch? I haven't seen the change yet. The top commit on the branch (as I see) is

306d74055754 ("ublk: Switch to memdup_user_nul() helper")

Where are you looking? It's at:

I am looking at

Quoted 7 lines
Quoted 3 lines

https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git

It appears to be some lag from git server?

That's just a backup, I always pull and push from git.kernel.dk. The korg one will lag about an hour, depending on when things are pushed. I've never used the korg one as the canonical location.

Got it. I will update my git config.

Here is the updated PR:

Quoted 8 lines

The following changes since commit 66a6a5d0ec852eaced589da066376e69397cd71e:

ublk: Switch to memdup_user_nul() helper (2023-08-15 10:06:54 -0600)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git
tags/md-next-20230814-resend

Pulled.

Signature · 1 line
Jens Axboe