* [PATCH net V9 1/2] ptp: ptp_read should not release queue
@ 2023-11-07 8:00 Edward Adam Davis
2023-11-09 2:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Edward Adam Davis @ 2023-11-07 8:00 UTC (permalink / raw)
To: richardcochran
Cc: davem, eadavis, habetsm.xilinx, jeremy, linux-kernel, netdev,
reibax, syzbot+df3f3ef31f60781fa911
Firstly, queue is not the memory allocated in ptp_read;
Secondly, other processes may block at ptp_read and wait for conditions to be
met to perform read operations.
Acked-by: Richard Cochran <richardcochran@gmail.com>
Reported-and-tested-by: syzbot+df3f3ef31f60781fa911@syzkaller.appspotmail.com
Fixes: 8f5de6fb2453 ("ptp: support multiple timestamp event readers")
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
---
drivers/ptp/ptp_chardev.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c
index 473b6d992507..3f7a74788802 100644
--- a/drivers/ptp/ptp_chardev.c
+++ b/drivers/ptp/ptp_chardev.c
@@ -588,7 +588,5 @@ ssize_t ptp_read(struct posix_clock_context *pccontext, uint rdflags,
free_event:
kfree(event);
exit:
- if (result < 0)
- ptp_release(pccontext);
return result;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net V9 1/2] ptp: ptp_read should not release queue
2023-11-07 8:00 [PATCH net V9 1/2] ptp: ptp_read should not release queue Edward Adam Davis
@ 2023-11-09 2:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-11-09 2:50 UTC (permalink / raw)
To: Edward Adam Davis
Cc: richardcochran, davem, habetsm.xilinx, jeremy, linux-kernel,
netdev, reibax, syzbot+df3f3ef31f60781fa911
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 7 Nov 2023 16:00:40 +0800 you wrote:
> Firstly, queue is not the memory allocated in ptp_read;
> Secondly, other processes may block at ptp_read and wait for conditions to be
> met to perform read operations.
>
> Acked-by: Richard Cochran <richardcochran@gmail.com>
> Reported-and-tested-by: syzbot+df3f3ef31f60781fa911@syzkaller.appspotmail.com
> Fixes: 8f5de6fb2453 ("ptp: support multiple timestamp event readers")
> Signed-off-by: Edward Adam Davis <eadavis@qq.com>
>
> [...]
Here is the summary with links:
- [net,V9,1/2] ptp: ptp_read should not release queue
https://git.kernel.org/netdev/net/c/b714ca2ccf6a
- [net,V9,2/2] ptp: fix corrupted list in ptp_open
https://git.kernel.org/netdev/net/c/1bea2c3e6df8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-09 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-07 8:00 [PATCH net V9 1/2] ptp: ptp_read should not release queue Edward Adam Davis
2023-11-09 2:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox