diff options
author | Dave Jones <davej@codemonkey.org.uk> | 2016-04-04 21:11:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-06 22:05:20 +0200 |
commit | 6ae81ced378820c4c6434b1dedba14a7122df310 (patch) | |
tree | 2793c3acd8295840260cc7b62a973ce336c27b2c /net | |
parent | net_sched: fix a memory leak in tc action (diff) | |
download | linux-6ae81ced378820c4c6434b1dedba14a7122df310.tar.xz linux-6ae81ced378820c4c6434b1dedba14a7122df310.zip |
af_packet: tone down the Tx-ring unsupported spew.
Trinity and other fuzzers can hit this WARN on far too easily,
resulting in a tainted kernel that hinders automated fuzzing.
Replace it with a rate-limited printk.
Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 1ecfa710ca98..f12c17f355d9 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -4151,7 +4151,7 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u, /* Opening a Tx-ring is NOT supported in TPACKET_V3 */ if (!closing && tx_ring && (po->tp_version > TPACKET_V2)) { - WARN(1, "Tx-ring is not supported.\n"); + net_warn_ratelimited("Tx-ring is not supported.\n"); goto out; } |