]> git.baikalelectronics.ru Git - kernel.git/commit
Subject: [PATCH] af_iucv: drop skbs rejected by filter
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Fri, 7 Oct 2016 13:51:48 +0000 (15:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2016 05:56:04 +0000 (01:56 -0400)
commit6f088603ffac6ca488b8d17c7328dce87d174524
treee4debe75e45f90af24e3cefe45bcf6435b5347a8
parent7d577c2c191b9fc734fecd67068254f8f04db7e2
Subject: [PATCH] af_iucv: drop skbs rejected by filter

A packet filter might be installed for instance with setsockopt
SO_ATTACH_FILTER. af_iucv currently queues skbs rejected by filter
into the backlog queue. This does not make sense, since packets
rejected by filter can be dropped immediately. This patch adds
separate sk_filter return code checking, and dropping of packets
if applicable.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c