public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree
@ 2023-04-11 11:36 gregkh
  2023-04-11 14:34 ` Oliver Hartkopp
  0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2023-04-11 11:36 UTC (permalink / raw)
  To: socketcan, mkl; +Cc: stable


The patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 0145462fc802cd447ef5d029758043c7f15b4b1e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023041107-basically-gas-eb2c@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..

Possible dependencies:

0145462fc802 ("can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OVFL infos")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 0145462fc802cd447ef5d029758043c7f15b4b1e Mon Sep 17 00:00:00 2001
From: Oliver Hartkopp <socketcan@hartkopp.net>
Date: Thu, 30 Mar 2023 19:02:48 +0200
Subject: [PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get
 SOCK_RXQ_OVFL infos

isotp.c was still using sock_recv_timestamp() which does not provide
control messages to detect dropped PDUs in the receive path.

Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20230330170248.62342-1-socketcan@hartkopp.net
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

diff --git a/net/can/isotp.c b/net/can/isotp.c
index 9bc344851704..47c2ebad10ed 100644
--- a/net/can/isotp.c
+++ b/net/can/isotp.c
@@ -1120,7 +1120,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
 	if (ret < 0)
 		goto out_err;
 
-	sock_recv_timestamp(msg, sk, skb);
+	sock_recv_cmsgs(msg, sk, skb);
 
 	if (msg->msg_name) {
 		__sockaddr_check_size(ISOTP_MIN_NAMELEN);


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree
  2023-04-11 11:36 FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree gregkh
@ 2023-04-11 14:34 ` Oliver Hartkopp
  2023-04-11 14:40   ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Hartkopp @ 2023-04-11 14:34 UTC (permalink / raw)
  To: gregkh, mkl; +Cc: stable

Hi Greg,

this must be a false positive for 5.10 and 5.15.

I can apply the commit 0145462fc802cd447ef5d029758043c7f15b4b1e on 
5.10.y and 5.15.y without problems as the code around

     sock_recv_timestamp(msg, sk, skb);

did not change from 5.10 to 6.3-rc

But 'git am' tells the offset is about ~80 lines.
Could this be the reason for the failure?

Best regards,
Oliver

On 4/11/23 13:36, gregkh@linuxfoundation.org wrote:
> 
> The patch below does not apply to the 5.10-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
> 
> To reproduce the conflict and resubmit, you may use the following commands:
> 
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
> git checkout FETCH_HEAD
> git cherry-pick -x 0145462fc802cd447ef5d029758043c7f15b4b1e
> # <resolve conflicts, build, test, etc.>
> git commit -s
> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023041107-basically-gas-eb2c@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
> 
> Possible dependencies:
> 
> 0145462fc802 ("can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OVFL infos")
> 
> thanks,
> 
> greg k-h
> 
> ------------------ original commit in Linus's tree ------------------
> 
>  From 0145462fc802cd447ef5d029758043c7f15b4b1e Mon Sep 17 00:00:00 2001
> From: Oliver Hartkopp <socketcan@hartkopp.net>
> Date: Thu, 30 Mar 2023 19:02:48 +0200
> Subject: [PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get
>   SOCK_RXQ_OVFL infos
> 
> isotp.c was still using sock_recv_timestamp() which does not provide
> control messages to detect dropped PDUs in the receive path.
> 
> Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
> Link: https://lore.kernel.org/all/20230330170248.62342-1-socketcan@hartkopp.net
> Cc: stable@vger.kernel.org
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> 
> diff --git a/net/can/isotp.c b/net/can/isotp.c
> index 9bc344851704..47c2ebad10ed 100644
> --- a/net/can/isotp.c
> +++ b/net/can/isotp.c
> @@ -1120,7 +1120,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
>   	if (ret < 0)
>   		goto out_err;
>   
> -	sock_recv_timestamp(msg, sk, skb);
> +	sock_recv_cmsgs(msg, sk, skb);
>   
>   	if (msg->msg_name) {
>   		__sockaddr_check_size(ISOTP_MIN_NAMELEN);
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree
  2023-04-11 14:34 ` Oliver Hartkopp
@ 2023-04-11 14:40   ` Greg KH
  2023-04-11 14:47     ` Oliver Hartkopp
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2023-04-11 14:40 UTC (permalink / raw)
  To: Oliver Hartkopp; +Cc: mkl, stable

On Tue, Apr 11, 2023 at 04:34:25PM +0200, Oliver Hartkopp wrote:
> Hi Greg,
> 
> this must be a false positive for 5.10 and 5.15.
> 
> I can apply the commit 0145462fc802cd447ef5d029758043c7f15b4b1e on 5.10.y
> and 5.15.y without problems as the code around
> 
>     sock_recv_timestamp(msg, sk, skb);
> 
> did not change from 5.10 to 6.3-rc
> 
> But 'git am' tells the offset is about ~80 lines.
> Could this be the reason for the failure?

No, the failure is:

> On 4/11/23 13:36, gregkh@linuxfoundation.org wrote:
> > 
> > The patch below does not apply to the 5.10-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> > 
> > To reproduce the conflict and resubmit, you may use the following commands:
> > 
> > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
> > git checkout FETCH_HEAD
> > git cherry-pick -x 0145462fc802cd447ef5d029758043c7f15b4b1e
> > # <resolve conflicts, build, test, etc.>
> > git commit -s
> > git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023041107-basically-gas-eb2c@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
> > 
> > Possible dependencies:
> > 
> > 0145462fc802 ("can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OVFL infos")
> > 
> > thanks,
> > 
> > greg k-h
> > 
> > ------------------ original commit in Linus's tree ------------------
> > 
> >  From 0145462fc802cd447ef5d029758043c7f15b4b1e Mon Sep 17 00:00:00 2001
> > From: Oliver Hartkopp <socketcan@hartkopp.net>
> > Date: Thu, 30 Mar 2023 19:02:48 +0200
> > Subject: [PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get
> >   SOCK_RXQ_OVFL infos
> > 
> > isotp.c was still using sock_recv_timestamp() which does not provide
> > control messages to detect dropped PDUs in the receive path.
> > 
> > Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
> > Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
> > Link: https://lore.kernel.org/all/20230330170248.62342-1-socketcan@hartkopp.net
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> > 
> > diff --git a/net/can/isotp.c b/net/can/isotp.c
> > index 9bc344851704..47c2ebad10ed 100644
> > --- a/net/can/isotp.c
> > +++ b/net/can/isotp.c
> > @@ -1120,7 +1120,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
> >   	if (ret < 0)
> >   		goto out_err;
> > -	sock_recv_timestamp(msg, sk, skb);
> > +	sock_recv_cmsgs(msg, sk, skb);

This function is not in the 5.15.y or 5.10.y tree, so it breaks the
build.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree
  2023-04-11 14:40   ` Greg KH
@ 2023-04-11 14:47     ` Oliver Hartkopp
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Hartkopp @ 2023-04-11 14:47 UTC (permalink / raw)
  To: Greg KH; +Cc: mkl, stable



On 4/11/23 16:40, Greg KH wrote:
> On Tue, Apr 11, 2023 at 04:34:25PM +0200, Oliver Hartkopp wrote:
>> Hi Greg,
>>
>> this must be a false positive for 5.10 and 5.15.
>>
>> I can apply the commit 0145462fc802cd447ef5d029758043c7f15b4b1e on 5.10.y
>> and 5.15.y without problems as the code around
>>
>>      sock_recv_timestamp(msg, sk, skb);
>>
>> did not change from 5.10 to 6.3-rc
>>
>> But 'git am' tells the offset is about ~80 lines.
>> Could this be the reason for the failure?
> 
> No, the failure is:
> 
>> On 4/11/23 13:36, gregkh@linuxfoundation.org wrote:
>>>
>>> The patch below does not apply to the 5.10-stable tree.
>>> If someone wants it applied there, or to any other stable or longterm
>>> tree, then please email the backport, including the original git commit
>>> id to <stable@vger.kernel.org>.
>>>
>>> To reproduce the conflict and resubmit, you may use the following commands:
>>>
>>> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
>>> git checkout FETCH_HEAD
>>> git cherry-pick -x 0145462fc802cd447ef5d029758043c7f15b4b1e
>>> # <resolve conflicts, build, test, etc.>
>>> git commit -s
>>> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2023041107-basically-gas-eb2c@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
>>>
>>> Possible dependencies:
>>>
>>> 0145462fc802 ("can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OVFL infos")
>>>
>>> thanks,
>>>
>>> greg k-h
>>>
>>> ------------------ original commit in Linus's tree ------------------
>>>
>>>   From 0145462fc802cd447ef5d029758043c7f15b4b1e Mon Sep 17 00:00:00 2001
>>> From: Oliver Hartkopp <socketcan@hartkopp.net>
>>> Date: Thu, 30 Mar 2023 19:02:48 +0200
>>> Subject: [PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get
>>>    SOCK_RXQ_OVFL infos
>>>
>>> isotp.c was still using sock_recv_timestamp() which does not provide
>>> control messages to detect dropped PDUs in the receive path.
>>>
>>> Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
>>> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
>>> Link: https://lore.kernel.org/all/20230330170248.62342-1-socketcan@hartkopp.net
>>> Cc: stable@vger.kernel.org
>>> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>>>
>>> diff --git a/net/can/isotp.c b/net/can/isotp.c
>>> index 9bc344851704..47c2ebad10ed 100644
>>> --- a/net/can/isotp.c
>>> +++ b/net/can/isotp.c
>>> @@ -1120,7 +1120,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
>>>    	if (ret < 0)
>>>    		goto out_err;
>>> -	sock_recv_timestamp(msg, sk, skb);
>>> +	sock_recv_cmsgs(msg, sk, skb);
> 
> This function is not in the 5.15.y or 5.10.y tree, so it breaks the
> build.

Ah, that's the point! Thanks!

Then this patch can indeed not be applied and you simply skip them and I 
do not have any requirement to send a 'backported' patch.

Good.

Many thanks,
Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-11 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 11:36 FAILED: patch "[PATCH] can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get" failed to apply to 5.10-stable tree gregkh
2023-04-11 14:34 ` Oliver Hartkopp
2023-04-11 14:40   ` Greg KH
2023-04-11 14:47     ` Oliver Hartkopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox