* [PATCH] fs: document 'name' parameter in name_contains_dotdot()
@ 2025-08-18 18:26 Shrikant Raskar
2025-08-19 17:15 ` Al Viro
0 siblings, 1 reply; 7+ messages in thread
From: Shrikant Raskar @ 2025-08-18 18:26 UTC (permalink / raw)
To: viro, brauner, jack
Cc: linux-fsdevel, linux-kernel, linux-doc, Shrikant Raskar
Adds a brief description of the 'name' parameter to resolve
the kernel-doc warning.
Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com>
---
include/linux/fs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index d7ab4f96d705..9f5c91962e85 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3281,7 +3281,7 @@ static inline bool is_dot_dotdot(const char *name, size_t len)
/**
* name_contains_dotdot - check if a file name contains ".." path components
- *
+ * @name: file name or path string to check
* Search for ".." surrounded by either '/' or start/end of string.
*/
static inline bool name_contains_dotdot(const char *name)
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] fs: document 'name' parameter in name_contains_dotdot()
2025-08-18 18:26 [PATCH] fs: document " Shrikant Raskar
@ 2025-08-19 17:15 ` Al Viro
0 siblings, 0 replies; 7+ messages in thread
From: Al Viro @ 2025-08-19 17:15 UTC (permalink / raw)
To: Shrikant Raskar; +Cc: brauner, jack, linux-fsdevel, linux-kernel, linux-doc
On Mon, Aug 18, 2025 at 11:56:52PM +0530, Shrikant Raskar wrote:
> Adds a brief description of the 'name' parameter to resolve
> the kernel-doc warning.
See https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=fs-next&id=4e021920812d164bb02c30cc40e08a3681b1c755
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] fs: document 'name' parameter in name_contains_dotdot()
@ 2025-08-19 22:10 Jaimin Parmar
0 siblings, 0 replies; 7+ messages in thread
From: Jaimin Parmar @ 2025-08-19 22:10 UTC (permalink / raw)
To: viro, brauner; +Cc: jack, linux-fsdevel, linux-kernel, skhan, Jaimin Parmar
Fix the following kernel-doc warning in include/linux/fs.h:
WARNING: ./include/linux/fs.h:3287 function parameter 'name' not described in 'name_contains_dotdot'
The function comment for name_contains_dotdot() did not describe its
@name argument.
Updated the function comment by adding @name parameter description.
Fixes: 0da3e3822cfa ("fs: move name_contains_dotdot() to header")
Signed-off-by: Jaimin Parmar <parmarjaimin.19@gmail.com>
diff --git a/include/linux/fs.h b/include/linux/fs.h
index d7ab4f96d705..74fe7f445c6c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3281,6 +3281,7 @@ static inline bool is_dot_dotdot(const char *name, size_t len)
/**
* name_contains_dotdot - check if a file name contains ".." path components
+ * @name: file name or path string to check
*
* Search for ".." surrounded by either '/' or start/end of string.
*/
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] fs: Document 'name' parameter in name_contains_dotdot()
@ 2025-08-23 14:22 Prithvi Tambewagh
2025-08-24 1:06 ` Al Viro
0 siblings, 1 reply; 7+ messages in thread
From: Prithvi Tambewagh @ 2025-08-23 14:22 UTC (permalink / raw)
To: skhan, viro, brauner, jack; +Cc: Prithvi Tambewagh, linux-fsdevel, linux-kernel
Add documentation for the 'name' parameter in name_contains_dotdot()
Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
---
include/linux/fs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index d7ab4f96d705..64e3c99d60f6 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3281,7 +3281,7 @@ static inline bool is_dot_dotdot(const char *name, size_t len)
/**
* name_contains_dotdot - check if a file name contains ".." path components
- *
+ * @name: file name to check
* Search for ".." surrounded by either '/' or start/end of string.
*/
static inline bool name_contains_dotdot(const char *name)
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] fs: Document 'name' parameter in name_contains_dotdot()
2025-08-23 14:22 [PATCH] fs: Document " Prithvi Tambewagh
@ 2025-08-24 1:06 ` Al Viro
2025-08-24 1:52 ` Eric Biggers
0 siblings, 1 reply; 7+ messages in thread
From: Al Viro @ 2025-08-24 1:06 UTC (permalink / raw)
To: Prithvi Tambewagh; +Cc: skhan, brauner, jack, linux-fsdevel, linux-kernel
On Sat, Aug 23, 2025 at 07:52:08PM +0530, Prithvi Tambewagh wrote:
> Add documentation for the 'name' parameter in name_contains_dotdot()
>
> Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
Out of curiosity, could you describe the process that has lead to
that patch?
The reason why I'm asking is that there had been a truly ridiculous
amount of identical patches, all dealing with exact same function.
Odds of random coincedence are very low - there's quite lot of
similar places, and AFAICS you are the 8th poster choosing the
same one.
I would expect that kind of response to a "kernel throws scary
warnings on boot for reasonably common setups", but for a comment
about a function being slightly wrong this kind of focus is
strange.
If that's some AI (s)tool responding to prompts along the lines of
"I want to fix some kernel problem, find some low-hanging fruit
and gimme a patch", we might be seeing a small-scale preview of
a future DDoS with the same underlying mechanism...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fs: Document 'name' parameter in name_contains_dotdot()
2025-08-24 1:06 ` Al Viro
@ 2025-08-24 1:52 ` Eric Biggers
2025-08-24 3:10 ` Al Viro
0 siblings, 1 reply; 7+ messages in thread
From: Eric Biggers @ 2025-08-24 1:52 UTC (permalink / raw)
To: Al Viro
Cc: Prithvi Tambewagh, skhan, brauner, jack, linux-fsdevel,
linux-kernel
On Sun, Aug 24, 2025 at 02:06:23AM +0100, Al Viro wrote:
> On Sat, Aug 23, 2025 at 07:52:08PM +0530, Prithvi Tambewagh wrote:
> > Add documentation for the 'name' parameter in name_contains_dotdot()
> >
> > Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
>
> Out of curiosity, could you describe the process that has lead to
> that patch?
>
> The reason why I'm asking is that there had been a truly ridiculous
> amount of identical patches, all dealing with exact same function.
>
> Odds of random coincedence are very low - there's quite lot of
> similar places, and AFAICS you are the 8th poster choosing the
> same one.
>
> I would expect that kind of response to a "kernel throws scary
> warnings on boot for reasonably common setups", but for a comment
> about a function being slightly wrong this kind of focus is
> strange.
>
> If that's some AI (s)tool responding to prompts along the lines of
> "I want to fix some kernel problem, find some low-hanging fruit
> and gimme a patch", we might be seeing a small-scale preview of
> a future DDoS with the same underlying mechanism...
You do know that kernel-doc warns about this, right?
$ ./scripts/kernel-doc -v -none include/linux/fs.h
[...]
Warning: include/linux/fs.h:3287 function parameter 'name' not described in 'name_contains_dotdot'
It's the only warning in include/linux/fs.h.
- Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fs: Document 'name' parameter in name_contains_dotdot()
2025-08-24 1:52 ` Eric Biggers
@ 2025-08-24 3:10 ` Al Viro
0 siblings, 0 replies; 7+ messages in thread
From: Al Viro @ 2025-08-24 3:10 UTC (permalink / raw)
To: Eric Biggers
Cc: Prithvi Tambewagh, skhan, brauner, jack, linux-fsdevel,
linux-kernel
On Sat, Aug 23, 2025 at 09:52:24PM -0400, Eric Biggers wrote:
> On Sun, Aug 24, 2025 at 02:06:23AM +0100, Al Viro wrote:
> > On Sat, Aug 23, 2025 at 07:52:08PM +0530, Prithvi Tambewagh wrote:
> > > Add documentation for the 'name' parameter in name_contains_dotdot()
> > >
> > > Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
> >
> > Out of curiosity, could you describe the process that has lead to
> > that patch?
> >
> > The reason why I'm asking is that there had been a truly ridiculous
> > amount of identical patches, all dealing with exact same function.
> >
> > Odds of random coincedence are very low - there's quite lot of
> > similar places, and AFAICS you are the 8th poster choosing the
> > same one.
> >
> > I would expect that kind of response to a "kernel throws scary
> > warnings on boot for reasonably common setups", but for a comment
> > about a function being slightly wrong this kind of focus is
> > strange.
> >
> > If that's some AI (s)tool responding to prompts along the lines of
> > "I want to fix some kernel problem, find some low-hanging fruit
> > and gimme a patch", we might be seeing a small-scale preview of
> > a future DDoS with the same underlying mechanism...
>
> You do know that kernel-doc warns about this, right?
>
> $ ./scripts/kernel-doc -v -none include/linux/fs.h
> [...]
> Warning: include/linux/fs.h:3287 function parameter 'name' not described in 'name_contains_dotdot'
>
> It's the only warning in include/linux/fs.h.
; ./scripts/kernel-doc -v -none include/linux/*.h 2>&1|grep -c Warning.*function\ parameter
145
I rest my point. If one of those has managed to generate 8 duplicate patches
(and the earliest one has landed in linux-next within a day) and people are
still sending that stuff... I'd say we have a problem.
Whatever underlying mechanism is in action, it seems to have the makings of
a large DDoS. I'm not blaming the people sending that and I would really
like to understand the mechanism behind this, er, synchronicity.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-08-24 3:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-19 22:10 [PATCH] fs: document 'name' parameter in name_contains_dotdot() Jaimin Parmar
-- strict thread matches above, loose matches on Subject: below --
2025-08-23 14:22 [PATCH] fs: Document " Prithvi Tambewagh
2025-08-24 1:06 ` Al Viro
2025-08-24 1:52 ` Eric Biggers
2025-08-24 3:10 ` Al Viro
2025-08-18 18:26 [PATCH] fs: document " Shrikant Raskar
2025-08-19 17:15 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).