Florian Weimer
2eecc8afd0
Terminate process on invalid netlink response from kernel [BZ #12926 ]
...
The recvmsg system calls for netlink sockets have been particularly
prone to picking up unrelated data after a file descriptor race
(where the descriptor is closed and reopened concurrently in a
multi-threaded process, as the result of a file descriptor
management issue elsewhere). This commit adds additional error
checking and aborts the process if a datagram of unexpected length
(without the netlink header) is received, or an error code which
cannot happen due to the way the netlink socket is used.
[BZ #12926 ]
Terminate process on invalid netlink response.
* sysdeps/unix/sysv/linux/netlinkaccess.h
(__netlink_assert_response): Declare.
* sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
(sysdep_routines): Add netlink_assert_response.
* sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
__netlink_assert_response.
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
* sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
__netlink_assert_response.
2015-11-09 12:48:41 +01:00
..
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-09-01 13:47:25 +00:00
2015-10-13 11:59:15 -07:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-09-12 21:09:59 -04:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-01-02 16:29:47 +00:00
2015-11-06 13:58:53 +01:00
2015-11-06 13:58:53 +01:00
2015-06-29 14:38:46 +00:00
2015-11-06 13:58:53 +01:00
2015-10-09 14:26:08 -03:00
2015-08-20 04:29:23 -07:00
2015-11-06 13:58:53 +01:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-08-25 13:45:56 -03:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-11-09 12:48:41 +01:00
2015-11-09 12:48:41 +01:00
2015-01-08 10:49:40 -08:00
2015-01-02 16:29:47 +00:00
2015-05-26 10:10:36 -03:00
2015-05-26 10:10:36 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-06 04:59:13 -08:00
2015-01-02 16:29:47 +00:00
2014-09-16 17:45:03 +00:00
2014-09-16 17:45:03 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2014-06-20 15:41:35 +00:00
2015-01-02 16:29:47 +00:00
2015-10-20 11:54:09 +00:00
2014-06-25 20:29:45 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-09-17 16:38:54 -07:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-20 11:51:03 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-09 19:52:01 +00:00
2015-08-21 09:57:15 -07:00
2015-07-10 13:47:09 +02:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-08-25 13:45:56 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-09-12 21:09:59 -04:00
2015-05-26 17:03:35 -03:00
2015-09-08 21:11:03 +00:00
2015-11-09 12:48:41 +01:00
2015-01-02 16:29:47 +00:00
2014-06-12 13:48:47 -07:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-17 12:02:37 +02:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:54:45 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-11-09 12:48:41 +01:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-17 20:20:08 +00:00
2015-10-13 12:01:10 -07:00
2015-06-17 20:19:04 +00:00
2015-06-17 20:19:04 +00:00
2015-10-13 12:01:10 -07:00
2015-08-24 10:53:49 +02:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-11-09 12:48:41 +01:00
2015-11-09 12:48:41 +01:00
2015-06-04 14:52:34 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-08-11 09:37:38 +02:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-05-22 17:09:36 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-05-05 08:28:35 +02:00
2015-05-05 08:28:35 +02:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-01-06 08:23:58 -08:00
2015-03-23 16:34:48 +01:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-05-20 14:52:05 -07:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-08-25 13:45:56 -03:00
2015-08-25 13:45:56 -03:00
2015-06-04 18:58:36 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-10-14 06:33:48 -07:00
2015-06-09 14:56:21 -03:00
2015-01-02 16:29:47 +00:00
2015-09-16 14:51:28 +02:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 21:23:47 +00:00
2015-08-25 13:45:56 -03:00
2015-06-04 18:58:36 -03:00
2015-08-25 13:45:56 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2014-09-12 12:28:47 +00:00
2015-09-08 21:11:03 +00:00
2015-10-19 12:04:33 +00:00
2015-08-24 10:53:49 +02:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-08-25 13:45:56 -03:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-01-06 08:23:58 -08:00
2015-06-04 18:58:36 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-05-22 17:38:06 -03:00
2015-09-04 15:19:30 -03:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-09 19:52:01 +00:00
2015-06-04 18:58:36 -03:00
2015-09-12 21:09:59 -04:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-05-26 10:10:36 -03:00
2015-10-13 11:59:15 -07:00
2014-06-25 18:09:01 +00:00
2015-09-08 21:11:03 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 21:23:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-01 22:25:02 -03:00
2015-08-21 09:57:15 -07:00
2015-02-06 12:30:23 -08:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-24 13:56:46 -07:00
2015-02-06 12:30:23 -08:00
2015-02-06 12:30:23 -08:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-11-09 12:48:41 +01:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-19 04:41:06 -07:00