projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ceaaad
)
bcache: defensively handle format strings
author
Kees Cook
<keescook@chromium.org>
Wed, 11 Sep 2013 04:41:34 +0000
(21:41 -0700)
committer
Kent Overstreet
<kmo@daterainc.com>
Mon, 11 Nov 2013 05:56:43 +0000
(21:56 -0800)
Just to be safe, call the error reporting function with "%s" to avoid
any possible future format string leak.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/super.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index 70708ab0b8f9270b1daf6c3677c073487e3995cc..dec15cd2d797eaaa7fa0585abf8867c9f70a4cef 100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-1670,7
+1670,7
@@
static void run_cache_set(struct cache_set *c)
err:
closure_sync(&cl);
/* XXX: test this, it's broken */
- bch_cache_set_error(c, err);
+ bch_cache_set_error(c,
"%s",
err);
}
static bool can_attach_cache(struct cache *ca, struct cache_set *c)