Thread (3 messages) 3 messages, 2 authors, 2021-06-24

Re: [PATCH] media: bpf: do not copy more entries than user space requested

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-24 13:40:04
Also in: bpf

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

On Wed, 23 Jun 2021 22:37:54 +0100 you wrote:
The syscall bpf(BPF_PROG_QUERY, &attr) should the prog_cnt field to see
how many entries user space provided and return ENOSPC if there are
more programs than that. Before this patch, this is not checked and
ENOSPC is never returned.

Note that one lirc device is limited to 64 bpf programs, and user space
I'm aware of -- ir-keytable -- always gives enough space for 64 entries
already. However, we should not copy program ids than are requested.

[...]
Here is the summary with links:
  - media: bpf: do not copy more entries than user space requested
    https://git.kernel.org/bpf/bpf-next/c/647d446d66e4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help