Chen Gang
a5f2b3d6a7
drivers/char/ipmi: memcpy, need additional 2 bytes to avoid memory overflow
...
When calling memcpy, read_data and write_data need additional 2 bytes.
write_data:
for checking: "if (size > IPMI_MAX_MSG_LENGTH)"
for operating: "memcpy(bt->write_data + 3, data + 1, size - 1)"
read_data:
for checking: "if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH)"
for operating: "memcpy(data + 2, bt->read_data + 4, msg_len - 2)"
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-05-16 13:49:25 -07:00
..
2013-02-20 00:21:49 +01:00
2013-05-02 14:53:12 -07:00
2013-05-16 13:49:25 -07:00
2012-07-17 09:11:50 -07:00
2013-02-26 20:16:07 -08:00
2013-04-17 09:31:32 -05:00
2012-11-21 12:55:19 -08:00
2012-04-05 17:34:30 -07:00
2013-03-15 12:23:48 -07:00
2012-07-17 10:27:38 -07:00
2012-03-28 18:30:03 +01:00
2013-05-05 00:11:29 -04:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-05-05 00:12:29 -04:00
2011-07-20 20:47:58 -04:00
2013-05-05 00:12:29 -04:00
2013-04-19 09:46:39 -07:00
2012-01-13 09:32:20 +10:30
2013-01-18 16:15:27 -08:00
2013-02-22 23:31:31 -05:00
2012-10-16 18:07:12 -07:00
2012-11-21 12:55:19 -08:00
2013-05-07 20:16:25 -07:00
2013-02-27 19:10:21 -08:00
2012-09-26 13:20:40 -07:00
2011-08-25 16:25:33 -07:00
2012-10-09 16:22:19 +09:00
2013-02-22 23:31:31 -05:00
2012-03-28 18:30:03 +01:00
2012-09-26 13:20:39 -07:00
2012-10-07 07:22:32 -07:00
2012-10-24 15:52:29 -07:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-04-30 17:04:03 -07:00
2013-02-22 23:31:31 -05:00
2012-09-26 13:20:39 -07:00
2013-02-26 20:16:07 -08:00
2013-02-22 23:31:31 -05:00
2013-03-25 13:18:11 -07:00
2012-08-16 10:09:15 -07:00
2012-11-15 17:20:58 -08:00
2013-05-02 14:14:04 -07:00