Skip to contentSkip to conversation

Please can I have a stable KCSAN branch for 5.8?

DISCUSSION Will Deacon 3 participants 10 messages May 6, 2020 – May 7, 2020

lore
Share & tools
lore
#0 lore raw

Hi TIP folks,

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

What's the best base for me to use?

Cheers,

Will

[1] https://lore.kernel.org/r/[email protected]

#1 lore raw
Quoted 10 lines · Will Deacon

Hi TIP folks,

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Quoted 8 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

Thanx, Paul

Quoted 5 lines

Cheers,

Will

[1] https://lore.kernel.org/r/[email protected]

#2 lore raw

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Cheers again,

Will

#3 lore raw
Quoted 41 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

Quoted 8 lines

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

Thanks,
-- Marco

#4 lore raw
Quoted 45 lines · Marco Elver
Quoted 44 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

Thanx, Paul

#5 lore raw
Quoted 50 lines · Paul E. McKenney
Quoted 48 lines · Marco Elver
Quoted 47 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

I believe "objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()" is missing, which should go after "kcsan: Add __kcsan_{enable,disable}_current() variants".

Thanks,
-- Marco

#6 lore raw
Quoted 57 lines · Marco Elver
Quoted 56 lines · Paul E. McKenney
Quoted 53 lines · Marco Elver
Quoted 41 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

Quoted 8 lines

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

Quoted 6 lines
Quoted 2 lines

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

I believe "objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()" is missing, which should go after "kcsan: Add __kcsan_{enable,disable}_current() variants".

Thank you for checking! I will move that one also.

Thanx, Paul

#7 lore raw
Quoted 58 lines · Paul E. McKenney
Quoted 57 lines · Marco Elver
Quoted 56 lines · Paul E. McKenney
Quoted 53 lines · Marco Elver
Quoted 41 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

Quoted 8 lines

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

I believe "objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()" is missing, which should go after "kcsan: Add __kcsan_{enable,disable}_current() variants".

Thank you for checking! I will move that one also.

And it is moved. FYI, I will likely be sending my KCSAN pull request late tomorrow (Thursday) Pacific Time, a few days earlier than normal.

Thanx, Paul

#8 lore raw
Quoted 63 lines · Paul E. McKenney
Quoted 61 lines · Paul E. McKenney
Quoted 60 lines · Marco Elver
Quoted 58 lines · Paul E. McKenney
Quoted 45 lines · Marco Elver
Quoted 44 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I believe "objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()" is missing, which should go after "kcsan: Add __kcsan_{enable,disable}_current() variants".

Thank you for checking! I will move that one also.

And it is moved. FYI, I will likely be sending my KCSAN pull request late tomorrow (Thursday) Pacific Time, a few days earlier than normal.

Looks good, thank you!

-- Marco

#9 lore raw
Quoted 68 lines · Marco Elver
Quoted 67 lines · Paul E. McKenney
Quoted 65 lines · Paul E. McKenney
Quoted 63 lines · Marco Elver
Quoted 50 lines · Paul E. McKenney
Quoted 48 lines · Marco Elver
Quoted 47 lines · Will Deacon

Hi Paul,

Cheers for the quick reply!

Quoted 5 lines · Paul E. McKenney
Quoted 4 lines · Will Deacon

I'm looking to rebase my READ_ONCE() series [1] on top of the KCSAN patches so that we can get them in for 5.8. However, tip/locking/kcsan seems to be missing some bits:

Quoted 8 lines
Quoted 4 lines

* An update to checkpatch.pl to warn about missing comments for

    data_race():

    https://lore.kernel.org/r/[email protected]

For some reason, I thought this was going up some other tree, but I do not see it in -next. So unless I hear otherwise, I will pull it into the v5.8 kcsan branch.

Brill, thanks.

Quoted 5 lines
Quoted 5 lines

* I'm unable to apply these two patches from Marco that are needed for my READ_ONCE() work:

https://lore.kernel.org/lkml/[email protected]/

Quoted 7 lines
Quoted 3 lines

I think these depend on stuff that has been queued by Paul, and appears in linux-next, but to be honest with you I'm quite confused about what is queued for 5.8 and what isn't.

This one is queued, but I currently have it in the v5.9 pile (but tentatively for v5.8). Unless Marco tells me otherwise, I will move it to the v5.8 branch, which will be part of my pull request next week.

Great, then this would all show up on tip/locking/kscan, right?

Quoted 3 lines
Quoted 1 line

What's the best base for me to use?

The -next tree has the latter, but not yet the former.

That probably means -next is good enough for me to cook a new version of my series, and then I can make a proper branch next week.

Quoted 2 lines

Hopefully we can get this straightened out, and please accept my apologies for the hassle!

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

No need to apologise, I just couldn't figure out what was what and decided it was easier to ask the experts ;)

Just confirming that I don't see any issues with the plan -- the patches that Will needs are good to go into the v5.8 branch.

OK, I have updated -rcu's kcsan and kcsan-dev branches. Could you please double-check, given that pull-request time is quite soon?

I believe "objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()" is missing, which should go after "kcsan: Add __kcsan_{enable,disable}_current() variants".

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Thank you for checking! I will move that one also.

And it is moved. FYI, I will likely be sending my KCSAN pull request late tomorrow (Thursday) Pacific Time, a few days earlier than normal.

Looks good, thank you!

And it did pass overnight testing, so looking good! Next step is a quick test without KCSAN enabled.

Thanx, Paul