* [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails
@ 2024-08-09 1:56 Abhinav Jain
2024-08-12 14:40 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Abhinav Jain @ 2024-08-09 1:56 UTC (permalink / raw)
To: leah.rumancik, djwong, linux-xfs, linux-kernel, stable
Cc: Abhinav Jain, syzbot+55fb1b7d909494fd520d
commit 4b827b3f305d ("xfs: remove WARN when dquot cache insertion fails")
Disk quota cache insertion failure doesn't require this warning as
the system can still manage and track disk quotas without caching the
dquot object into memory. The failure doesn't imply any data loss or
corruption.
Therefore, the WARN_ON in xfs_qm_dqget_cache_insert function is aggressive
and causes bot noise. I have confirmed there are no conflicts and also
tested the using the C repro from syzkaller:
https://syzkaller.appspot.com/text?tag=ReproC&x=15406772280000
Please do let me know if I missed out on anything as it's my first
backport patch.
Reported-by: syzbot+55fb1b7d909494fd520d@syzkaller.appspotmail.com
Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
---
fs/xfs/xfs_dquot.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c
index 8fb90da89787..7f071757f278 100644
--- a/fs/xfs/xfs_dquot.c
+++ b/fs/xfs/xfs_dquot.c
@@ -798,7 +798,6 @@ xfs_qm_dqget_cache_insert(
error = radix_tree_insert(tree, id, dqp);
if (unlikely(error)) {
/* Duplicate found! Caller must try again. */
- WARN_ON(error != -EEXIST);
mutex_unlock(&qi->qi_tree_lock);
trace_xfs_dqget_dup(dqp);
return error;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails
2024-08-09 1:56 [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails Abhinav Jain
@ 2024-08-12 14:40 ` Greg KH
2024-08-12 19:51 ` Abhinav Jain
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2024-08-12 14:40 UTC (permalink / raw)
To: Abhinav Jain
Cc: leah.rumancik, djwong, linux-xfs, linux-kernel, stable,
syzbot+55fb1b7d909494fd520d
On Fri, Aug 09, 2024 at 07:26:40AM +0530, Abhinav Jain wrote:
> commit 4b827b3f305d ("xfs: remove WARN when dquot cache insertion fails")
>
> Disk quota cache insertion failure doesn't require this warning as
> the system can still manage and track disk quotas without caching the
> dquot object into memory. The failure doesn't imply any data loss or
> corruption.
>
> Therefore, the WARN_ON in xfs_qm_dqget_cache_insert function is aggressive
> and causes bot noise. I have confirmed there are no conflicts and also
> tested the using the C repro from syzkaller:
> https://syzkaller.appspot.com/text?tag=ReproC&x=15406772280000
>
> Please do let me know if I missed out on anything as it's my first
> backport patch.
You lost all of the ownership and original signed-off-by attributes for
the commit :(
Please work with the xfs developers if they wish to see this backported
or not, that's up to them.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails
2024-08-12 14:40 ` Greg KH
@ 2024-08-12 19:51 ` Abhinav Jain
2024-08-14 22:55 ` Leah Rumancik
0 siblings, 1 reply; 4+ messages in thread
From: Abhinav Jain @ 2024-08-12 19:51 UTC (permalink / raw)
To: gregkh, chandan.babu, djwong
Cc: jain.abhinav177, leah.rumancik, linux-kernel, linux-xfs, stable,
syzbot+55fb1b7d909494fd520d
On Mon, 12 Aug 2024 16:40:13 +0200, Greg K-H wrote:
> You lost all of the ownership and original signed-off-by attributes for
> the commit :(
>
I will work on this to understand how to avoid such mistake moving forward.
> Please work with the xfs developers if they wish to see this backported
> or not, that's up to them.
>
> thanks,
>
> greg k-h
I am tagging XFS maintainers so that they can confirm the same. If there
is a go ahead, only then I will submit a v2 retaining the original
signed-off-by attributes.
Thanks,
Abhinav
---
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails
2024-08-12 19:51 ` Abhinav Jain
@ 2024-08-14 22:55 ` Leah Rumancik
0 siblings, 0 replies; 4+ messages in thread
From: Leah Rumancik @ 2024-08-14 22:55 UTC (permalink / raw)
To: Abhinav Jain
Cc: gregkh, chandan.babu, djwong, linux-kernel, linux-xfs, stable,
syzbot+55fb1b7d909494fd520d
Hi Abhinav,
Thanks for your message! Fixing bot noise from WARNs isn't a high
priority for me for patches to backport to stable, but I'm currently
working on a set anyways so I'll throw this patch in. No need to
resend anything.
- Leah
On Mon, Aug 12, 2024 at 12:51 PM Abhinav Jain <jain.abhinav177@gmail.com> wrote:
>
> On Mon, 12 Aug 2024 16:40:13 +0200, Greg K-H wrote:
> > You lost all of the ownership and original signed-off-by attributes for
> > the commit :(
> >
>
> I will work on this to understand how to avoid such mistake moving forward.
>
> > Please work with the xfs developers if they wish to see this backported
> > or not, that's up to them.
> >
> > thanks,
> >
> > greg k-h
>
> I am tagging XFS maintainers so that they can confirm the same. If there
> is a go ahead, only then I will submit a v2 retaining the original
> signed-off-by attributes.
>
> Thanks,
> Abhinav
> ---
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-14 22:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 1:56 [PATCH 6.1.y] xfs: remove WARN when dquot cache insertion fails Abhinav Jain
2024-08-12 14:40 ` Greg KH
2024-08-12 19:51 ` Abhinav Jain
2024-08-14 22:55 ` Leah Rumancik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox