Stuff to do for string
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in lib/string.c
I am home from school so I am virtually free
Thanks!
Quoted 6 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of strlcat()
- Clean up include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYU
- kill memscan() in favour of memchr() / memchr_inv()
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
Quoted 6 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of
strlcat()
Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i thought kees was gonna do that, if not, not issue!
Quoted 3 lines
- Clean up
include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYU
Hmm, yeah, I see it's kind of a mess (in a polite way)
Quoted 1 line
- kill
memscan()in favour ofmemchr()/memchr_inv()
Hmm, maybe, is there a crazy amount of files that call memscan()?
I'll also (try ;), yk, school :( ) to review patches for your file. Ig it's the best I do for you lot right now, (I am starting to review most if not all patches in lib), e.g:
https://lore.kernel.org/all/[email protected]
:)
Thanks!
Quoted 21 lines · Josh Law
Quoted 11 lines · Andy Shevchenko
Quoted 6 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of
strlcat()Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i thought kees was gonna do that, if not, not issue!
Quoted 3 lines
- Clean up
include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYU
Quoted 5 lines
Hmm, yeah, I see it's kind of a mess (in a polite way)
Quoted 1 line
- kill
memscan()in favour ofmemchr()/memchr_inv()Hmm, maybe, is there a crazy amount of files that call
memscan()?
You can find an answer yourself. The daily-basis kill feature tool is git grep ....
Quoted 5 lines
I'll also (try ;), yk, school :( ) to review patches for your file. Ig it's the best I do for you lot right now, (I am starting to review most if not all patches in lib), e.g:
https://lore.kernel.org/all/[email protected]
:)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 23 lines · Andy Shevchenko
Quoted 6 lines · Josh Law
Quoted 4 lines · Andy Shevchenko
Quoted 3 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing
in
Quoted 15 lines
Quoted 7 lines
Quoted 3 lines
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of
strlcat()Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i thought kees was gonna do that, if not, not issue!
Quoted 3 lines
- Clean up
include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYU
Quoted 8 lines
Quoted 5 lines
Hmm, yeah, I see it's kind of a mess (in a polite way)
Quoted 1 line
- kill
memscan()in favour ofmemchr()/memchr_inv()Hmm, maybe, is there a crazy amount of files that call
memscan()?You can find an answer yourself. The daily-basis kill feature tool is
git grep ....
Oh, yes, I see this now, I should be able to do this, gotta slap the computer awake cuz sometimes it breaks. So it may take time for me to submit it, would you like a treewide cleanup, or subsystem by subsystem
Thanks!
Quoted 8 lines
Quoted 4 lines
I'll also (try ;), yk, school :( ) to review patches for your file. Ig it's the best I do for you lot right now, (I am starting to review most if not all patches in lib), e.g:
https://lore.kernel.org/all/[email protected]
Quoted 1 line
:)
Quoted 29 lines · Josh Law
Quoted 27 lines · Andy Shevchenko
Quoted 6 lines · Josh Law
Quoted 4 lines · Andy Shevchenko
Quoted 3 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing
in
Quoted 19 lines
Quoted 7 lines
Quoted 3 lines
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of
strlcat()Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i thought kees was gonna do that, if not, not issue!
Quoted 3 lines
- Clean up
include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYUHmm, yeah, I see it's kind of a mess (in a polite way)
Quoted 1 line
- kill
memscan()in favour ofmemchr()/memchr_inv()
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Hmm, maybe, is there a crazy amount of files that call
memscan()?You can find an answer yourself. The daily-basis kill feature tool is
git grep ....Oh, yes, I see this now, I should be able to do this, gotta slap the computer awake cuz sometimes it breaks. So it may take time for me to submit it, would you like a treewide cleanup, or subsystem by subsystem
It depends case by case. As Kees' patch shows in some cases it may touch too many things to be treewide and has to be subsystem / driver focused.
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
I'll also (try ;), yk, school :( ) to review patches for your file. Ig it's the best I do for you lot right now, (I am starting to review most if not all patches in lib), e.g:
https://lore.kernel.org/all/[email protected]
Quoted 1 line
:)
Signature · 2 lines
With Best Regards, Andy Shevchenko
[Snip!]
Quoted 8 lines
Quoted 3 lines
Oh, yes, I see this now, I should be able to do this, gotta slap the computer awake cuz sometimes it breaks. So it may take time for me to submit it, would you like a treewide cleanup, or subsystem by
subsystem
It depends case by case. As Kees' patch shows in some cases it may touch too
many things to be treewide and has to be subsystem / driver focused.
Hmm, okay, thanks for the help!
[Snip!]
Quoted 35 lines · Andy Shevchenko
Quoted 34 lines · Josh Law
Quoted 31 lines · Andy Shevchenko
Quoted 6 lines · Josh Law
Quoted 4 lines · Andy Shevchenko
Quoted 3 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing
in
Quoted 15 lines
Quoted 7 lines
Quoted 3 lines
lib/string.cI am home from school so I am virtually free
Arbitrary things that came to my mind (no particular order)
- Get rid of
strlcat()Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i thought kees was gonna do that, if not, not issue!
Quoted 3 lines
- Clean up
include/linux/string.h
a) drop extern for functions
b) put the headers it includes into an order and follow IWYUQuoted 5 lines
Hmm, yeah, I see it's kind of a mess (in a polite way)
Quoted 1 line
- kill
memscan()in favour ofmemchr()/memchr_inv()Hmm, maybe, is there a crazy amount of files that call
memscan()?You can find an answer yourself. The daily-basis kill feature tool is
git grep ....
Quoted 6 lines
Quoted 3 lines
Oh, yes, I see this now, I should be able to do this, gotta slap the computer awake cuz sometimes it breaks. So it may take time for me to submit it, would you like a treewide cleanup, or subsystem by subsystem
It depends case by case. As Kees' patch shows in some cases it may touch too many things to be treewide and has to be subsystem / driver focused.
Traditionally, patches for these kinds of changes (i.e. strlcat) get split per subsystem or per driver, since they're not 1:1 mechanical conversions.
And while I did a couple conversions recently (since I was already looking at the code), it's not on my active TODO right now. Feel free to tackle it!
You can reference https://github.com/KSPP/linux/issues/370 with a Link tag too.
-Kees
Signature · 1 line
Kees Cook
[Snip! :)]
Quoted 9 lines
Traditionally, patches for these kinds of changes (i.e. strlcat) get split per subsystem or per driver, since they're not 1:1 mechanical conversions.
And while I did a couple conversions recently (since I was already looking at the code), it's not on my active TODO right now. Feel free to tackle it!
You can reference https://github.com/KSPP/linux/issues/370 with a Link tag too.
Yes, im tackling it, maybe patch series for each subsystem (e.g: 10/10 series for all files that has the function), is it fine if you do the documentation removal at the end? (Lol you can *totally* claim all the credit if
you do it last)
But, the thing I am heavily intrigued in is the memscan() nuking, only like 14 files call it, it's an easy job!
But my server is not the greatest, so it takes a while for me to do major patches like these.
Also, removing a whole function in the kernel sounds cool, (There even was a whole YouTube video about it!)
For now, while I get my server upgraded, I'll review patches for string, as I understand it.
Kees. Anything for this file on your TODO list you think?
Quoted 4 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.c
Do nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches and that you claim you have device being worked on:
"I own this device"
https://lore.kernel.org/all/[email protected]/
Even after proving you fabricated absolute AI slop you claimed otherwise:
"The commit descriptions (The long ones), Use AI, to be exact! "
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
So no, we do not want you to look at anything. You were told that multiple times.
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Best regards,
Krzysztof
Quoted 20 lines · Krzysztof Kozlowski
Quoted 4 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cDo nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches and that you claim you have device being worked on:
"I own this device"
https://lore.kernel.org/all/[email protected]/Even after proving you fabricated absolute AI slop you claimed otherwise:
"The commit descriptions (The long ones), Use AI, to be exact! "
Quoted 9 lines
So no, we do not want you to look at anything. You were told that multiple times.
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Best regards,
Krzysztof
Krzysztof, haven't you been told to _NOT_ interfere/nack my patches if there is other maintainers? Not being rude, but just confused.
Thanks!
Quoted 24 lines · Josh Law
Quoted 23 lines · Krzysztof Kozlowski
Quoted 4 lines · Josh Law
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cDo nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches and that you claim you have device being worked on:
"I own this device"
https://lore.kernel.org/all/[email protected]/Even after proving you fabricated absolute AI slop you claimed otherwise:
"The commit descriptions (The long ones), Use AI, to be exact! "https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
So no, we do not want you to look at anything. You were told that multiple times.
Quoted 8 lines
Quoted 6 lines
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Best regards,
KrzysztofKrzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Quoted 2 lines
patches if there is other maintainers? Not being rude, but just confused.
Best regards,
Krzysztof
Quoted 33 lines · Krzysztof Kozlowski
Quoted 1 line · Josh Law
On 23 April 2026 07:24:50 BST, Krzysztof Kozlowski <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines · Josh Law
Quoted 4 lines
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cQuoted 6 lines
Quoted 6 lines
Do nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches and that you claim you have device being worked on:
"I own this device"https://lore.kernel.org/all/[email protected]/
Quoted 2 lines
Quoted 2 lines
Even after proving you fabricated absolute AI slop you claimed
otherwise:
Quoted 3 lines
Quoted 3 lines
"The commit descriptions (The long ones), Use AI, to be exact! "
https://lore.kernel.org/all/[email protected]/
Quoted 2 lines
Quoted 2 lines
https://lore.kernel.org/all/[email protected]/
Quoted 7 lines
Quoted 7 lines
So no, we do not want you to look at anything. You were told that multiple times.
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Best regards,
KrzysztofKrzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Wait, you haven't been told? To not nack my patches if there are other maintainers??? I'm confused.
Quoted 8 lines
Quoted 2 lines
patches if there is other maintainers? Not being rude, but just confused.
Best regards,
Krzysztof
Quoted 38 lines · Josh Law
Quoted 37 lines · Krzysztof Kozlowski
Quoted 1 line · Josh Law
On 23 April 2026 07:24:50 BST, Krzysztof Kozlowski <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines · Josh Law
Quoted 4 lines
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing in
lib/string.cQuoted 6 lines
Quoted 6 lines
Do nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches and that you claim you have device being worked on:
"I own this device"https://lore.kernel.org/all/[email protected]/
Quoted 2 lines
Quoted 2 lines
Even after proving you fabricated absolute AI slop you claimed
otherwise:
Quoted 3 lines
Quoted 3 lines
"The commit descriptions (The long ones), Use AI, to be exact! "
https://lore.kernel.org/all/[email protected]/
Quoted 2 lines
Quoted 2 lines
https://lore.kernel.org/all/[email protected]/
Quoted 11 lines
Quoted 10 lines
So no, we do not want you to look at anything. You were told that multiple times.
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Best regards,
Krzysztof
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Krzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Wait, you haven't been told? To not nack my patches if there are other maintainers??? I'm confused.
Stop inventing stories. One more thing you keep lying about. I will be NAKing your patches when you keep sending such arrogant emails "I am representing lib" [1] or you keep pushing untested code to backports [2].
[1]
https://lore.kernel.org/all/[email protected]/
[2]
https://lore.kernel.org/all/[email protected]/
Best regards,
Krzysztof
Quoted 56 lines · Krzysztof Kozlowski
Quoted 1 line · Josh Law
On 23 April 2026 07:44:11 BST, Krzysztof Kozlowski <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines · Josh Law
Quoted 1 line
On 23 April 2026 07:24:50 BST, Krzysztof Kozlowski <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines · Josh Law
Quoted 3 lines
Hello, (this is my first RFC, so maybe cc is bad, but yeah)
What do you guys have planned/would like me to have a look at doing
in
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
lib/string.cDo nothing. As some people already said: go away.
You were lying multiple times, including how you tested the patches
and
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
that you claim you have device being worked on:
"I own this device"https://lore.kernel.org/all/[email protected]/
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Even after proving you fabricated absolute AI slop you claimed
otherwise:
Quoted 3 lines
Quoted 3 lines
"The commit descriptions (The long ones), Use AI, to be exact! "
https://lore.kernel.org/all/[email protected]/
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
https://lore.kernel.org/all/[email protected]/
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
So no, we do not want you to look at anything. You were told that multiple times.
Just because one maintainer gives you chance, it still means - don't touch /lib or any other part of core kernel.
Best regards,
KrzysztofQuoted 6 lines
Quoted 3 lines
Quoted 1 line
Krzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Wait, you haven't been told? To not nack my patches if there are other maintainers??? I'm confused.
Stop inventing stories. One more thing you keep lying about. I will be NAKing your patches when you keep sending such arrogant emails "I am representing lib" [1] or you keep pushing untested code to backports [2].
Quoted 9 lines
[1]
https://lore.kernel.org/all/[email protected]/[2]
https://lore.kernel.org/all/[email protected]/Best regards,
Krzysztof
"Unfortunately, I really can't. That's not my jurisdiction. **But I did let Krzysztof know that we met. He may still not take your code, but he'll refrain from sending out NAKs when you send patches to other maintainers.**"
Screenshot attached.
That's what I mean. Did you receive a email about that?
Quoted 30 lines · Josh Law
On April 23, 2026 7:53:21 AM GMT+01:00, Krzysztof Kozlowski
Quoted 13 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Krzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Wait, you haven't been told? To not nack my patches if there are other maintainers??? I'm confused.
Stop inventing stories. One more thing you keep lying about. I will be NAKing your patches when you keep sending such arrogant emails "I am representing lib" [1] or you keep pushing untested code to backports [2].
Quoted 9 lines
[1]
https://lore.kernel.org/all/[email protected]/[2]
https://lore.kernel.org/all/[email protected]/Best regards,
Krzysztof"Unfortunately, I really can't. That's not my jurisdiction. **But I did let Krzysztof know that we met. He may still not take your code, but he'll refrain from sending out NAKs when you send patches to other maintainers.**"
Quoted 3 lines
Screenshot attached.
That's what I mean. Did you receive a email about that?
Really, this is absolutely unacceptable. Now you bring private conversation to somehow claim I have no rights to NAK your patches.
You grossly violated that little trust people still were willing to give you.
Steven asked me about situation, we talked, Steven explained what he did and what he plans to do, and based on that and his explanation, I SAID to him that I am willing to give you a chance by refraining to NAK automatically your patches. And that was before you were doing this:
"I am representing lib"
https://lore.kernel.org/all/[email protected]/
Pushing untested code to backports
https://lore.kernel.org/all/[email protected]/
Your claim:
"Wait, you haven't been told? To not nack my patches"
is just arrogance and frankly, what the hell. Using that little trust you got from Steven in this discussion.
So I do revert my "refrain from NAKs". I will be NAKing your patches, because after all this time nothing improved.
Best regards,
Krzysztof
Quoted 2 lines · Krzysztof Kozlowski
Quoted 1 line · Josh Law
On April 23, 2026 7:53:21 AM GMT+01:00, Krzysztof Kozlowski
...
Quoted 22 lines
Quoted 22 lines
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Krzysztof, haven't you been told to _NOT_ interfere/nack my
You're joking or what?
Wait, you haven't been told? To not nack my patches if there are other maintainers??? I'm confused.
Stop inventing stories. One more thing you keep lying about. I will be NAKing your patches when you keep sending such arrogant emails "I am representing lib" [1] or you keep pushing untested code to backports [2].
Quoted 5 lines
"Unfortunately, I really can't. That's not my jurisdiction. **But I did let Krzysztof know that we met. He may still not take your code, but he'll refrain from sending out NAKs when you send patches to other maintainers.**"
Quoted 6 lines
Quoted 3 lines
Screenshot attached.
That's what I mean. Did you receive a email about that?
Really, this is absolutely unacceptable. Now you bring private conversation to somehow claim I have no rights to NAK your patches.
Yeah, it's not acceptable to bring the private emails as an evidence. You need to try to be polite even to the maintainers like Krzysztof. He has made an opinion about you, and discussing the matter makes his opinion even stronger. This all strikes back on *your* reputation.
Quoted 14 lines
You grossly violated that little trust people still were willing to give you.
Steven asked me about situation, we talked, Steven explained what he did and what he plans to do, and based on that and his explanation, I SAID to him that I am willing to give you a chance by refraining to NAK automatically your patches. And that was before you were doing this:
"I am representing lib"
https://lore.kernel.org/all/[email protected]/Pushing untested code to backports
https://lore.kernel.org/all/[email protected]/
Quoted 8 lines
Your claim:
"Wait, you haven't been told? To not nack my patches"is just arrogance and frankly, what the hell. Using that little trust you got from Steven in this discussion.
So I do revert my "refrain from NAKs". I will be NAKing your patches, because after all this time nothing improved.
(My upper sentence was done before even reading this. So, as I said,
you made the situation even worse, and it's all on public...)
Nevertheless, nobody prevents you from reviewing others' work. Try to be constructive and helpful at least a little bit.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 7 lines · On Thu, 23 Apr 2026 10:37:12 +0300 Andy Shevchenko…
Quoted 2 lines
Really, this is absolutely unacceptable. Now you bring private conversation to somehow claim I have no rights to NAK your patches.
Yeah, it's not acceptable to bring the private emails as an evidence. You need to try to be polite even to the maintainers like Krzysztof. He has made an opinion about you, and discussing the matter makes his opinion even stronger. This all strikes back on *your* reputation.
Exactly!
Josh,
I defended you because I believed that you were just a young kid that didn't know any better. I told you time and time again, NOT TO REPLY TO THE MAILING LIST without consulting me first. You continue to reply, and now you expose a private email from me to the world? WITHOUT MY PERMISSION! Especially since you used it out of context and don't appear to understand what the word "refrain" means. This is a HUGE break in trust!
That's it. You're on your own. You have proven Krzysztof and Lorenzo right and made me look like a fool in trying to help you. They warned me about you, but I'm too kind and try to help those even when it looks hopeless.
Don't bother emailing me anymore. You need to do this on your own.
-- Steve