Ivan Delalande
ea5751ccd6
proc/sysctl: don't return ENOMEM on lookup when a table is unregistering
...
proc_sys_lookup can fail with ENOMEM instead of ENOENT when the
corresponding sysctl table is being unregistered. In our case we see
this upon opening /proc/sys/net/*/conf files while network interfaces
are being deleted, which confuses our configuration daemon.
The problem was successfully reproduced and this fix tested on v4.9.122
and v4.20-rc6.
v2: return ERR_PTRs in all cases when proc_sys_make_inode fails instead
of mixing them with NULL. Thanks Al Viro for the feedback.
Fixes: ace0c791e6
("proc/sysctl: Don't grab i_lock under sysctl_lock.")
Cc: stable@vger.kernel.org
Signed-off-by: Ivan Delalande <colona@arista.com >
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2018-12-13 20:59:44 -05:00
..
2018-11-01 19:58:52 -07:00
2018-08-22 10:52:51 -07:00
2018-05-28 12:36:41 +02:00
2018-11-29 21:08:14 -05:00
2018-08-22 12:34:08 -07:00
2018-06-15 18:10:01 -03:00
2018-11-03 10:09:38 -07:00
2018-11-02 09:33:08 -07:00
2018-10-18 11:32:21 +02:00
2018-11-01 19:58:52 -07:00
2018-11-02 14:09:42 -05:00
2018-06-05 16:57:31 -07:00
2018-07-17 06:14:07 -07:00
2018-10-30 12:46:25 -07:00
2018-09-04 11:35:03 +08:00
2018-06-12 20:52:16 -07:00
2018-08-21 23:54:17 -04:00
2018-10-24 00:41:07 +01:00
2018-10-09 23:33:17 -04:00
2018-07-22 14:13:44 +02:00
2018-10-18 02:04:59 -04:00
2018-11-23 09:08:17 -05:00
2018-10-29 10:23:36 -07:00
2018-11-02 11:25:48 -07:00
2018-10-28 11:35:40 -07:00
2018-10-31 08:54:14 -07:00
2018-05-22 14:27:51 -04:00
2018-10-18 11:32:21 +02:00
2018-11-01 19:58:52 -07:00
2018-10-28 11:35:40 -07:00
2018-10-31 08:54:13 -07:00
2018-10-31 08:54:13 -07:00
2018-08-17 16:20:28 -07:00
2018-08-25 12:42:33 -07:00
2018-08-22 10:52:44 -07:00
2018-09-29 22:47:48 -04:00
2018-10-05 18:44:40 -04:00
2018-10-24 11:22:39 +01:00
2018-09-20 09:28:49 -05:00
2018-10-26 16:26:33 -07:00
2018-10-29 16:58:04 -04:00
2018-05-22 14:27:52 -04:00
2018-11-04 08:20:09 -08:00
2018-03-27 13:18:09 -04:00
2018-11-02 09:33:08 -07:00
2018-10-21 10:46:42 -04:00
2018-10-25 15:49:19 +02:00
2018-10-12 22:46:50 -04:00
2018-11-03 10:09:37 -07:00
2018-05-22 14:27:58 -04:00
2018-05-22 14:27:57 -04:00
2018-11-01 19:58:52 -07:00
2018-11-02 09:33:08 -07:00
2018-12-13 20:59:44 -05:00
2018-10-31 08:54:15 -07:00
2018-05-22 14:27:52 -04:00
2018-05-22 14:27:54 -04:00
2018-08-22 18:17:48 +02:00
2018-10-31 08:54:14 -07:00
2018-05-22 14:27:55 -04:00
2018-08-02 09:34:02 -07:00
2018-08-18 11:44:53 -07:00
2018-11-10 08:02:40 -05:00
2018-07-31 11:32:44 -04:00
2018-10-23 13:49:02 +02:00
2018-09-07 10:32:23 +02:00
2018-08-17 16:20:27 -07:00
2018-11-02 09:33:08 -07:00
2018-12-11 14:32:14 -05:00
2018-07-12 10:04:27 -04:00
2018-07-03 16:44:45 -04:00
2018-07-12 10:04:20 -04:00
2018-04-11 10:28:37 -07:00
2018-06-12 16:19:22 -07:00
2018-10-03 16:47:43 +02:00
2018-04-11 10:28:37 -07:00
2018-07-10 23:29:03 -04:00
2018-10-24 00:40:44 +01:00
2018-11-02 11:25:48 -07:00
2018-03-15 17:59:24 +01:00
2018-08-27 14:48:48 +02:00
2018-10-29 14:29:58 -07:00
2018-06-05 19:23:26 +02:00
2018-10-03 16:47:43 +02:00
2018-03-29 15:07:46 -04:00
2018-10-21 10:46:44 -04:00
2018-10-31 08:54:16 -07:00
2018-04-02 20:15:39 +02:00
2018-10-24 00:40:44 +01:00
2018-06-28 10:40:47 -07:00
2018-08-22 10:52:49 -07:00
2018-10-10 12:56:14 -04:00
2018-10-03 16:47:43 +02:00
2018-08-21 18:19:09 -07:00
2018-04-02 20:16:00 +02:00
2018-05-16 07:23:35 +02:00
2018-10-21 10:46:42 -04:00
2018-10-31 08:54:16 -07:00
2018-08-21 18:19:09 -07:00
2018-11-02 09:33:08 -07:00
2018-11-01 20:19:49 -07:00
2018-06-11 08:22:34 -07:00
2018-08-02 08:06:55 +09:00
2018-03-30 11:34:55 -07:00
2018-08-21 18:19:09 -07:00
2018-06-11 08:22:34 -07:00
2018-06-12 16:19:22 -07:00
2018-08-17 16:20:29 -07:00
2018-08-23 18:48:43 -07:00
2018-10-31 08:54:16 -07:00
2018-08-21 18:19:09 -07:00
2018-08-13 19:58:36 -07:00
2018-11-02 09:33:08 -07:00
2018-04-02 20:16:02 +02:00
2018-08-27 14:48:48 +02:00
2018-08-17 16:20:28 -07:00
2018-10-03 16:47:43 +02:00
2018-10-24 00:41:07 +01:00
2018-08-29 15:42:20 +02:00
2018-07-12 14:49:48 +01:00
2018-09-03 15:14:01 +02:00
2018-04-04 12:44:02 -07:00
2018-08-27 14:48:48 +02:00
2018-10-26 16:25:18 -07:00
2018-08-29 15:42:23 +02:00
2018-09-18 07:30:48 -04:00