summaryrefslogtreecommitdiff
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorBruno Meneguele <bmeneg@redhat.com>2020-03-13 02:08:20 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-15 06:58:10 +0300
commit13d0f7b814d9b4c67e60d8c2820c86ea181e7d99 (patch)
treee675b7a0d660751e92a34c2d55c4bb4569ce87ce /kernel/ptrace.c
parent0d1c3530e1bd38382edef72591b78e877e0edcd3 (diff)
downloadlinux-13d0f7b814d9b4c67e60d8c2820c86ea181e7d99.tar.xz
net/bpfilter: fix dprintf usage for /dev/kmsg
The bpfilter UMH code was recently changed to log its informative messages to /dev/kmsg, however this interface doesn't support SEEK_CUR yet, used by dprintf(). As result dprintf() returns -EINVAL and doesn't log anything. However there already had some discussions about supporting SEEK_CUR into /dev/kmsg interface in the past it wasn't concluded. Since the only user of that from userspace perspective inside the kernel is the bpfilter UMH (userspace) module it's better to correct it here instead waiting a conclusion on the interface. Fixes: 36c4357c63f3 ("net: bpfilter: print umh messages to /dev/kmsg") Signed-off-by: Bruno Meneguele <bmeneg@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions