Alexey Dobriyan
96890d6252
net: delete /proc THIS_MODULE references
...
/proc has been ignoring struct file_operations::owner field for 10 years.
Specifically, it started with commit 786d7e1612f0b0adb6046f19b906609e4fe8b1ba
("Fix rmmod/read/write races in /proc entries"). Notice the chunk where
inode->i_fop is initialized with proxy struct file_operations for
regular files:
- if (de->proc_fops)
- inode->i_fop = de->proc_fops;
+ if (de->proc_fops) {
+ if (S_ISREG(inode->i_mode))
+ inode->i_fop = &proc_reg_file_ops;
+ else
+ inode->i_fop = de->proc_fops;
+ }
VFS stopped pinning module at this point.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-01-16 15:01:33 -05:00
..
2018-01-16 15:01:33 -05:00
2018-01-05 11:14:56 -05:00
2017-11-03 22:11:17 +08:00
2018-01-16 15:01:33 -05:00
2017-10-21 01:33:19 +01:00
2015-07-29 22:44:04 -07:00
2017-12-13 13:13:58 -05:00
2017-12-20 10:41:31 +01:00
2017-12-20 10:41:53 +01:00
2017-12-20 15:12:39 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-03 15:35:59 -07:00
2017-12-19 14:21:58 -05:00
2018-01-16 15:01:33 -05:00
2017-08-01 16:09:14 -07:00
2016-06-30 05:03:36 -04:00
2017-10-08 10:12:15 -07:00
2017-10-24 18:44:42 +09:00
2018-01-16 15:01:33 -05:00
2017-12-20 14:00:25 -05:00
2018-01-02 13:54:04 -05:00
2017-11-15 11:56:19 -08:00
2017-12-20 14:00:25 -05:00
2018-01-15 14:23:42 -05:00
2017-10-05 18:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-04 09:26:51 +09:00
2017-12-26 17:30:11 -05:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2017-08-22 14:27:18 -07:00
2017-11-02 11:10:55 +01:00
2017-06-25 11:42:01 -04:00
2017-12-13 13:13:58 -05:00
2017-11-01 11:57:32 +09:00
2015-04-03 12:11:15 -04:00
2018-01-16 15:01:33 -05:00
2017-10-30 21:09:24 +09:00
2018-01-16 15:01:33 -05:00
2017-10-12 22:57:11 -07:00
2018-01-02 14:27:29 -05:00
2018-01-08 18:11:02 +01:00
2017-07-01 07:39:08 -07:00
2018-01-16 15:01:33 -05:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-01-16 15:01:33 -05:00
2018-01-16 15:01:33 -05:00
2017-10-28 19:24:38 +09:00
2017-11-15 14:09:52 +09:00
2017-12-08 13:27:43 -05: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
2017-08-06 21:25:10 -07:00
2018-01-02 14:27:29 -05:00
2018-01-16 15:01:33 -05:00
2017-05-17 16:06:01 -04:00
2018-01-15 14:23:42 -05:00
2017-12-13 14:33:10 -05:00
2017-11-04 22:34:52 +09:00
2017-11-10 18:07:15 +09:00
2018-01-08 14:12:26 -05:00
2017-12-08 10:07:02 -05:00
2017-12-08 14:14:11 -05:00
2017-08-06 21:25:10 -07:00
2017-12-16 22:11:55 -05:00
2017-08-14 22:17:05 -07: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-01-10 15:55:35 -05:00
2016-07-11 13:27:06 -07:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-24 01:37:35 +09:00
2017-07-24 13:52:59 -07:00
2018-01-16 15:01:33 -05:00
2018-01-16 15:01:33 -05: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
2017-12-20 10:41:31 +01:00
2017-04-14 10:06:10 +02:00
2017-11-02 11:10:55 +01: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