Paolo Abeni
6c206b2009
udp: fix rx queue len reported by diag and proc interface
...
After commit 6b229cf77d ("udp: add batching to udp_rmem_release()")
the sk_rmem_alloc field does not measure exactly anymore the
receive queue length, because we batch the rmem release. The issue
is really apparent only after commit 0d4a6608f6 ("udp: do rmem bulk
free even if the rx sk queue is empty"): the user space can easily
check for an empty socket with not-0 queue length reported by the 'ss'
tool or the procfs interface.
We need to use a custom UDP helper to report the correct queue length,
taking into account the forward allocation deficit.
Reported-by: trevor.francis@46labs.com
Fixes: 6b229cf77d ("UDP: add batching to udp_rmem_release()")
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-06-08 19:55:15 -04:00
..
2018-05-29 09:51:44 -04:00
2018-06-03 00:02:05 +02:00
2018-06-06 18:39:49 -07:00
2017-11-03 22:11:17 +08:00
2018-05-16 07:24:30 +02:00
2017-10-21 01:33:19 +01:00
2015-07-29 22:44:04 -07:00
2018-05-29 10:12:45 -04:00
2018-02-27 10:46:01 +01:00
2018-02-13 13:59:03 +01:00
2018-05-29 10:12:45 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-23 10:21:24 -04:00
2018-06-05 12:29:43 -04:00
2018-06-06 18:39:49 -07:00
2018-03-27 13:18:09 -04:00
2016-06-30 05:03:36 -04:00
2017-10-08 10:12:15 -07:00
2018-03-27 13:18:09 -04:00
2018-05-16 07:24:30 +02:00
2018-05-10 17:43:55 -04:00
2018-03-12 11:03:42 -04:00
2018-03-31 23:25:39 -04:00
2018-02-01 09:48:42 -05:00
2018-04-07 22:32:32 -04:00
2018-04-09 10:57:35 -04:00
2018-03-04 17:49:17 -05:00
2018-04-04 12:04:59 -04:00
2018-05-21 16:01:54 -04:00
2018-03-22 15:12:56 -04:00
2017-11-02 11:10:55 +01:00
2018-05-21 16:01:54 -04:00
2018-05-26 19:46:15 -04:00
2018-05-10 15:13:33 -04:00
2018-06-07 16:27:16 -04:00
2018-03-27 13:18:09 -04:00
2015-04-03 12:11:15 -04:00
2018-06-06 18:39:49 -07:00
2018-03-27 13:18:09 -04:00
2018-06-05 12:26:41 -04:00
2018-06-06 18:39:49 -07:00
2018-03-01 13:13:23 -05:00
2018-05-23 15:14:12 -04:00
2018-06-05 12:29:43 -04:00
2018-01-08 18:11:02 +01:00
2018-05-23 15:14:12 -04:00
2018-05-16 07:24:30 +02:00
2018-06-06 18:39:49 -07:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-05-16 07:24:30 +02:00
2018-06-06 18:39:49 -07:00
2018-03-25 20:53:54 -04:00
2018-06-04 17:13:35 -04:00
2018-05-02 11:12:32 -04:00
2017-08-06 21:25:10 -07:00
2017-10-16 21:24:25 +01:00
2017-11-15 14:09:52 +09:00
2017-08-06 21:25:10 -07:00
2016-12-06 11:34:24 -05:00
2017-12-20 14:00:25 -05:00
2017-12-13 15:51:12 -05:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2016-11-21 13:20:17 -05:00
2018-02-28 12:03:47 -05:00
2018-06-05 10:09:27 -04:00
2018-06-06 18:39:49 -07:00
2017-05-17 16:06:01 -04:00
2018-03-27 13:18:09 -04:00
2018-06-05 10:45:24 -04:00
2018-01-31 10:26:30 -05:00
2018-01-22 16:01:30 -05:00
2018-05-21 16:01:54 -04:00
2017-12-08 10:07:02 -05:00
2018-05-18 13:28:40 -04:00
2017-08-06 21:25:10 -07:00
2018-05-18 11:40:27 -04:00
2018-02-06 11:39:31 +01:00
2017-09-29 06:07:00 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-06-06 18:39:49 -07:00
2018-02-28 11:43:28 -05:00
2018-06-08 19:55:15 -04:00
2017-11-02 11:10:55 +01:00
2018-05-11 12:29:42 -04:00
2017-07-24 13:52:59 -07:00
2018-06-08 19:55:15 -04:00
2018-05-16 07:24:30 +02:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2017-04-14 10:07:39 +02:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-03-27 13:18:09 -04:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00
2013-05-31 17:19:05 -07:00