* Re: [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace
[not found] <20240424014821.4154159-2-jthies@google.com>
@ 2024-04-25 8:51 ` Markus Elfring
2024-04-25 19:35 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2024-04-25 8:51 UTC (permalink / raw)
To: Abhishek Pandit-Subedi, linux-usb, kernel-janitors,
Heikki Krogerus, Jameson Thies
Cc: LKML, Benson Leung, Bjorn Andersson, Dmitry Baryshkov,
Fabrice Gasnier, Greg Kroah-Hartman, Hans de Goede,
Neil Armstrong, Prashant Malani, Rajaram Regupathy,
Saranya Gopal, Uwe Kleine-König
…
> ucsi_register_altmode checks IS_ERR on returned pointer and treats
> NULL as valid. This results in a null deref when
> trace_ucsi_register_altmode is called.
…
Can it be nicer to use the term “null pointer dereference” for
the commit message here?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace
2024-04-25 8:51 ` [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace Markus Elfring
@ 2024-04-25 19:35 ` Greg Kroah-Hartman
2024-04-30 0:43 ` Jameson Thies
0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-04-25 19:35 UTC (permalink / raw)
To: Markus Elfring
Cc: Abhishek Pandit-Subedi, linux-usb, kernel-janitors,
Heikki Krogerus, Jameson Thies, LKML, Benson Leung,
Bjorn Andersson, Dmitry Baryshkov, Fabrice Gasnier,
Hans de Goede, Neil Armstrong, Prashant Malani,
Rajaram Regupathy, Saranya Gopal, Uwe Kleine-König
On Thu, Apr 25, 2024 at 10:51:53AM +0200, Markus Elfring wrote:
> …
> > ucsi_register_altmode checks IS_ERR on returned pointer and treats
> > NULL as valid. This results in a null deref when
> > trace_ucsi_register_altmode is called.
> …
>
> Can it be nicer to use the term “null pointer dereference” for
> the commit message here?
>
> Regards,
> Markus
Hi,
This is the semi-friendly patch-bot of Greg Kroah-Hartman.
Markus, you seem to have sent a nonsensical or otherwise pointless
review comment to a patch submission on a Linux kernel developer mailing
list. I strongly suggest that you not do this anymore. Please do not
bother developers who are actively working to produce patches and
features with comments that, in the end, are a waste of time.
Patch submitter, please ignore Markus's suggestion; you do not need to
follow it at all. The person/bot/AI that sent it is being ignored by
almost all Linux kernel maintainers for having a persistent pattern of
behavior of producing distracting and pointless commentary, and
inability to adapt to feedback. Please feel free to also ignore emails
from them.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace
2024-04-25 19:35 ` Greg Kroah-Hartman
@ 2024-04-30 0:43 ` Jameson Thies
2024-04-30 1:00 ` Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Jameson Thies @ 2024-04-30 0:43 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Markus Elfring, Abhishek Pandit-Subedi, linux-usb,
kernel-janitors, Heikki Krogerus, LKML, Benson Leung,
Bjorn Andersson, Dmitry Baryshkov, Fabrice Gasnier,
Hans de Goede, Neil Armstrong, Prashant Malani,
Rajaram Regupathy, Saranya Gopal, Uwe Kleine-König
Hi Dmitry,
what are your thoughts on Abhishek's comment? I think we should
attempt to register the alternate mode when CONFIG_TYPEC_DP_ALTMODE is
not enabled. It would give us a more accurate representation of the
partner in user space. I understand your point about ignoring a
potential EOPNOTSUPP response from the non-stub function. What if we
leave ucsi.c alone, and replace the stub function's null return with a
call to typec_port_register_altmode(). That would register DP altmode
as an unsupported mode when CONFIG_TYPEC_DP_ALTMODE is not enabled,
and fix the null pointer dereference. But, it won't change behavior
when CONFIG_TYPEC_DP_ALTMODE is enabled.
Hi Markus,
thanks for your feedback. I'll update the commit message to say "null
pointer dereference" when I upload a v3 series.
Thanks,
Jameson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace
2024-04-30 0:43 ` Jameson Thies
@ 2024-04-30 1:00 ` Dmitry Baryshkov
2024-04-30 1:14 ` Jameson Thies
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2024-04-30 1:00 UTC (permalink / raw)
To: Jameson Thies
Cc: Greg Kroah-Hartman, Markus Elfring, Abhishek Pandit-Subedi,
linux-usb, kernel-janitors, Heikki Krogerus, LKML, Benson Leung,
Bjorn Andersson, Fabrice Gasnier, Hans de Goede, Neil Armstrong,
Prashant Malani, Rajaram Regupathy, Saranya Gopal,
Uwe Kleine-König
On Mon, Apr 29, 2024 at 05:43:16PM -0700, Jameson Thies wrote:
> Hi Dmitry,
> what are your thoughts on Abhishek's comment? I think we should
> attempt to register the alternate mode when CONFIG_TYPEC_DP_ALTMODE is
> not enabled. It would give us a more accurate representation of the
> partner in user space. I understand your point about ignoring a
> potential EOPNOTSUPP response from the non-stub function. What if we
> leave ucsi.c alone, and replace the stub function's null return with a
> call to typec_port_register_altmode(). That would register DP altmode
> as an unsupported mode when CONFIG_TYPEC_DP_ALTMODE is not enabled,
> and fix the null pointer dereference. But, it won't change behavior
> when CONFIG_TYPEC_DP_ALTMODE is enabled.
Yes, this sounds like a perfect idea!
>
> Hi Markus,
> thanks for your feedback. I'll update the commit message to say "null
> pointer dereference" when I upload a v3 series.
>
> Thanks,
> Jameson
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace
2024-04-30 1:00 ` Dmitry Baryshkov
@ 2024-04-30 1:14 ` Jameson Thies
0 siblings, 0 replies; 5+ messages in thread
From: Jameson Thies @ 2024-04-30 1:14 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Greg Kroah-Hartman, Markus Elfring, Abhishek Pandit-Subedi,
linux-usb, kernel-janitors, Heikki Krogerus, LKML, Benson Leung,
Bjorn Andersson, Fabrice Gasnier, Hans de Goede, Neil Armstrong,
Prashant Malani, Rajaram Regupathy, Saranya Gopal,
Uwe Kleine-König
Great! I'll post a v3 series applying this shortly.
Thanks,
Jameson
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-30 1:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20240424014821.4154159-2-jthies@google.com>
2024-04-25 8:51 ` [PATCH v2 1/4] usb: typec: ucsi: Fix null deref in trace Markus Elfring
2024-04-25 19:35 ` Greg Kroah-Hartman
2024-04-30 0:43 ` Jameson Thies
2024-04-30 1:00 ` Dmitry Baryshkov
2024-04-30 1:14 ` Jameson Thies
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).