Commit c8694948 authored by Kees Cook's avatar Kees Cook Committed by Kent Overstreet

bcache: defensively handle format strings

Just to be safe, call the error reporting function with "%s" to avoid
any possible future format string leak.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
parent 5ceaaad7
...@@ -1670,7 +1670,7 @@ static void run_cache_set(struct cache_set *c) ...@@ -1670,7 +1670,7 @@ static void run_cache_set(struct cache_set *c)
err: err:
closure_sync(&cl); closure_sync(&cl);
/* XXX: test this, it's broken */ /* 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) static bool can_attach_cache(struct cache *ca, struct cache_set *c)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment