Alexander Egorenkov
23a523ef40
net/af_iucv: remove WARN_ONCE on malformed RX packets
...
commit 27e9c1de529919d8dd7d072415d3bcae77709300 upstream.
syzbot reported the following finding:
AF_IUCV failed to receive skb, len=0
WARNING: CPU: 0 PID: 522 at net/iucv/af_iucv.c:2039 afiucv_hs_rcv+0x174/0x190 net/iucv/af_iucv.c:2039
CPU: 0 PID: 522 Comm: syz-executor091 Not tainted 5.10.0-rc1-syzkaller-07082-g55027a88ec9f #0
Hardware name: IBM 3906 M04 701 (KVM/Linux)
Call Trace:
[<00000000b87ea538>] afiucv_hs_rcv+0x178/0x190 net/iucv/af_iucv.c:2039
([<00000000b87ea534>] afiucv_hs_rcv+0x174/0x190 net/iucv/af_iucv.c:2039)
[<00000000b796533e>] __netif_receive_skb_one_core+0x13e/0x188 net/core/dev.c:5315
[<00000000b79653ce>] __netif_receive_skb+0x46/0x1c0 net/core/dev.c:5429
[<00000000b79655fe>] netif_receive_skb_internal+0xb6/0x220 net/core/dev.c:5534
[<00000000b796ac3a>] netif_receive_skb+0x42/0x318 net/core/dev.c:5593
[<00000000b6fd45f4>] tun_rx_batched.isra.0+0x6fc/0x860 drivers/net/tun.c:1485
[<00000000b6fddc4e>] tun_get_user+0x1c26/0x27f0 drivers/net/tun.c:1939
[<00000000b6fe0f00>] tun_chr_write_iter+0x158/0x248 drivers/net/tun.c:1968
[<00000000b4f22bfa>] call_write_iter include/linux/fs.h:1887 [inline]
[<00000000b4f22bfa>] new_sync_write+0x442/0x648 fs/read_write.c:518
[<00000000b4f238fe>] vfs_write.part.0+0x36e/0x5d8 fs/read_write.c:605
[<00000000b4f2984e>] vfs_write+0x10e/0x148 fs/read_write.c:615
[<00000000b4f29d0e>] ksys_write+0x166/0x290 fs/read_write.c:658
[<00000000b8dc4ab4>] system_call+0xe0/0x28c arch/s390/kernel/entry.S:415
Last Breaking-Event-Address:
[<00000000b8dc64d4>] __s390_indirect_jump_r14+0x0/0xc
Malformed RX packets shouldn't generate any warnings because
debugging info already flows to dropmon via the kfree_skb().
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-07 12:34:05 +01:00
..
2020-10-12 10:05:47 +02:00
2021-01-17 14:16:55 +01:00
2020-08-03 15:48:32 -07:00
2020-10-31 12:26:30 -07:00
2020-07-25 17:49:04 -07:00
2020-11-27 08:02:55 +01:00
2021-03-04 11:37:25 +01:00
2021-01-27 11:55:07 +01:00
2020-10-15 12:33:24 -07:00
2021-02-23 15:53:23 +01:00
2020-09-05 15:57:05 -07:00
2021-01-17 14:17:05 +01:00
2020-10-12 15:29:27 +02:00
2021-03-04 11:37:33 +01:00
2021-01-23 16:04:01 +01:00
2020-11-23 16:32:33 -08:00
2020-08-23 17:36:59 -05:00
2021-02-17 11:02:28 +01:00
2021-01-06 14:56:48 +01:00
2020-10-02 19:11:11 -07:00
2020-10-02 19:11:11 -07:00
2021-03-04 11:38:46 +01:00
2021-03-04 11:38:46 +01:00
2021-03-07 12:34:05 +01:00
2020-07-24 15:41:54 -07:00
2021-02-13 13:55:02 +01:00
2020-10-02 19:11:11 -07:00
2020-08-27 07:55:59 -07:00
2021-02-10 09:29:14 +01:00
2020-07-24 15:41:54 -07:00
2021-03-04 11:37:32 +01:00
2020-09-08 20:12:58 -07:00
2020-10-20 21:16:45 -07:00
2021-02-23 15:53:23 +01:00
2021-01-12 20:18:10 +01:00
2021-02-17 11:02:26 +01:00
2020-11-14 12:07:57 -08:00
2020-10-09 20:22:32 -07:00
2020-08-23 17:36:59 -05:00
2021-03-04 11:37:36 +01:00
2021-02-23 15:53:23 +01:00
2021-02-23 15:53:23 +01:00
2020-08-23 17:36:59 -05:00
2020-10-02 19:11:11 -07:00
2021-03-04 11:38:47 +01:00
2021-02-26 10:12:59 +01:00
2020-11-12 09:18:06 +01:00
2020-11-20 10:04:58 -08:00
2021-02-17 11:02:28 +01:00
2021-03-04 11:38:47 +01:00
2021-02-17 11:02:29 +01:00
2020-11-19 10:59:19 -08:00
2021-03-04 11:38:08 +01:00
2021-02-07 15:37:12 +01:00
2021-01-23 16:04:00 +01:00
2021-02-23 15:53:23 +01:00
2020-10-15 18:42:13 -07:00
2021-02-17 11:02:30 +01:00
2020-10-02 19:11:11 -07:00
2021-02-03 23:28:38 +01:00
2020-12-02 17:26:36 -08:00
2021-01-27 11:55:10 +01:00
2021-02-03 23:28:45 +01:00
2020-10-03 00:02:13 -04:00
2020-09-30 18:01:26 -07:00
2020-10-05 18:40:01 -07:00