Anton Blanchard
5cac98dd06
net: Fix corruption in /proc/*/net/dev_mcast
...
I just hit this during my testing. Isn't there another bug lurking?
BUG kmalloc-8: Redzone overwritten
INFO: 0xc0000000de9dec48-0xc0000000de9dec4b. First byte 0x0 instead of 0xcc
INFO: Allocated in .__seq_open_private+0x30/0xa0 age=0 cpu=5 pid=3896
.__kmalloc+0x1e0/0x2d0
.__seq_open_private+0x30/0xa0
.seq_open_net+0x60/0xe0
.dev_mc_seq_open+0x4c/0x70
.proc_reg_open+0xd8/0x260
.__dentry_open.clone.11+0x2b8/0x400
.do_last+0xf4/0x950
.path_openat+0xf8/0x480
.do_filp_open+0x48/0xc0
.do_sys_open+0x140/0x250
syscall_exit+0x0/0x40
dev_mc_seq_ops uses dev_seq_start/next/stop but only allocates
sizeof(struct seq_net_private) of private data, whereas it expects
sizeof(struct dev_iter_state):
struct dev_iter_state {
struct seq_net_private p;
unsigned int pos; /* bucket << BUCKET_SPACE + offset */
};
Create dev_seq_open_ops and use it so we don't have to expose
struct dev_iter_state.
[ Problem added by commit f04565ddf5 (dev: use name hash for
dev_seq_ops) -Eric ]
Signed-off-by: Anton Blanchard <anton@samba.org >
Acked-by: Eric Dumazet <eric.dumazet@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2011-11-28 18:07:29 -05:00
..
2011-11-04 18:02:25 -07:00
2011-10-31 19:32:32 -04:00
2011-10-28 16:42:18 -07:00
2011-11-03 09:40:51 -07:00
2011-11-08 10:37:41 +00:00
2011-11-01 10:51:38 -07:00
2011-10-27 09:11:34 -04:00
2011-11-07 09:11:16 -08:00
2011-11-01 09:19:52 +01:00
2011-11-09 15:07:40 +01:00
2011-10-31 17:30:55 -07:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:54 -07:00
2011-10-31 19:32:32 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 15:42:54 -07:00
2011-10-31 19:32:32 -04:00
2011-11-02 16:07:03 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 00:33:36 +08:00
2011-11-16 09:21:50 +01:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:54 -07:00
2011-11-02 16:07:03 -07:00
2011-10-31 17:30:49 -07:00
2011-10-31 17:30:44 -07:00
2011-11-04 22:28:09 +01:00
2011-11-07 10:13:52 -08:00
2011-10-30 15:16:41 +01:00
2011-11-06 19:44:47 -08:00
2011-11-02 12:53:43 +01:00
2011-11-07 23:54:53 +01:00
2011-10-31 19:32:26 -04:00
2011-10-31 20:19:04 +00:00
2011-11-17 21:39:33 +01:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:18:58 +00:00
2011-10-31 20:21:24 +00:00
2011-11-06 17:12:03 -08:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 15:10:04 -02:00
2011-10-30 15:16:43 +01:00
2011-11-04 18:37:23 -04:00
2011-10-31 09:20:11 -04:00
2011-11-02 10:06:20 -07:00
2011-10-31 19:32:32 -04:00
2011-11-04 22:28:15 +01:00
2011-11-16 22:00:34 -05:00
2011-10-31 17:30:54 -07:00
2011-10-31 19:32:32 -04:00
2011-11-06 19:44:47 -08:00
2011-11-10 09:03:55 +01:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:48 -07:00
2011-11-19 06:15:59 -05:00
2011-11-08 09:28:27 +02:00
2011-10-29 09:37:09 +01:00
2011-10-31 19:32:32 -04:00
2011-10-30 04:43:30 -04:00
2011-11-14 01:08:49 -05:00
2011-10-28 14:25:01 -07:00
2011-10-28 05:54:23 -07:00
2011-10-31 19:32:32 -04:00
2011-10-31 19:32:32 -04:00
2011-10-31 19:32:35 -04:00
2011-10-31 19:32:35 -04:00
2011-10-31 14:03:23 +01:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-11-07 07:54:42 +10:30
2011-10-31 17:46:07 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-11-17 16:30:25 +02:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:52 -07:00
2011-10-31 17:30:57 -07:00
2011-11-04 17:22:14 -07:00
2011-11-02 16:06:59 -07:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:47 -07:00
2011-11-02 16:07:00 -07:00
2011-10-31 19:32:29 -04:00
2011-11-02 16:06:57 -07:00
2011-11-02 16:06:58 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:47 -07:00
2011-10-31 09:20:11 -04:00
2011-10-31 09:20:11 -04:00
2011-11-02 12:53:42 +01:00
2011-11-28 18:07:29 -05:00
2011-11-01 09:24:41 -07:00
2011-10-31 11:51:28 -04:00
2011-10-31 14:03:22 +01:00
2011-10-31 19:32:27 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:45 -07:00
2011-11-04 22:28:13 +01:00
2011-10-31 19:32:32 -04:00
2011-11-09 01:47:36 -05:00
2011-10-28 14:20:44 -07:00
2011-11-22 16:37:01 -05:00
2011-10-29 07:28:36 -07:00
2011-11-17 21:39:33 +01:00
2011-11-17 21:39:33 +01:00
2011-11-02 16:07:02 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-10-28 05:29:07 -07:00
2011-10-31 19:32:32 -04:00
2011-11-02 16:07:01 -07:00
2011-11-06 19:02:23 -08:00
2011-11-02 16:07:01 -07:00
2011-10-31 17:30:54 -07:00
2011-11-11 16:16:25 +09:00
2011-10-31 19:32:32 -04:00
2011-11-11 16:11:41 +09:00
2011-11-11 16:45:35 +09:00
2011-10-31 17:30:49 -07:00
2011-11-01 00:55:48 -04:00
2011-10-31 19:32:28 -04:00
2011-10-31 17:30:47 -07:00
2011-10-31 17:30:44 -07:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-31 19:32:24 -04:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:54 -07:00
2011-10-31 19:32:32 -04:00
2011-10-31 19:32:32 -04:00
2011-11-02 16:07:02 -07:00
2011-10-31 19:32:31 -04:00
2011-10-31 19:32:23 -04:00
2011-11-03 18:29:09 -02:00
2011-11-02 11:40:58 +10:30
2011-11-02 11:41:01 +10:30
2011-11-02 11:40:59 +10:30
2011-11-02 11:40:59 +10:30
2011-10-31 19:32:32 -04:00
2011-11-16 12:13:08 -05:00
2011-10-31 00:33:36 +08:00