projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc146d2
)
ide-tape: Don't leak kernel stack information
author
Michael Buesch
<mb@bu3sch.de>
Sun, 19 Jul 2009 09:15:19 +0000
(09:15 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 22 Jul 2009 03:36:25 +0000
(20:36 -0700)
Don't leak kernel stack information through uninitialized structure members.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Acked-by: Borislav Petkov <petkovbb@gmail.com>.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-tape.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-tape.c
b/drivers/ide/ide-tape.c
index 013dc595fab63754b391b33a7efd6b3e287167c3..bc5fb12b913c365da7610365c2167b7a7820e4de 100644
(file)
--- a/
drivers/ide/ide-tape.c
+++ b/
drivers/ide/ide-tape.c
@@
-1064,6
+1064,7
@@
static int idetape_blkdev_ioctl(ide_drive_t *drive, unsigned int cmd,
tape->best_dsc_rw_freq = config.dsc_rw_frequency;
break;
case 0x0350:
+ memset(&config, 0, sizeof(config));
config.dsc_rw_frequency = (int) tape->best_dsc_rw_freq;
config.nr_stages = 1;
if (copy_to_user(argp, &config, sizeof(config)))