1
0
Fork 0
alistair23-linux/net/bpfilter
Bruno Meneguele 712c39d931 net/bpfilter: fix dprintf usage for /dev/kmsg
[ Upstream commit 13d0f7b814 ]

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: 36c4357c63 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-01 11:01:33 +02:00
..
.gitignore bpfilter: ignore binary files 2018-06-20 09:07:46 +09:00
Kconfig init/Kconfig: add CONFIG_CC_CAN_LINK 2019-07-08 02:25:59 +09:00
Makefile treewide: prefix header search paths with $(srctree)/ 2019-05-18 11:49:57 +09:00
bpfilter_kern.c signal/bpfilter: Fix bpfilter_kernl to use send_sig not force_sig 2019-05-27 09:36:28 -05:00
bpfilter_umh_blob.S net: bpfilter: change section name of bpfilter UMH blob. 2019-01-16 15:46:46 -08:00
main.c net/bpfilter: fix dprintf usage for /dev/kmsg 2020-04-01 11:01:33 +02:00
msgfmt.h net: add skeleton of bpfilter kernel module 2018-05-23 13:23:40 -04:00