1
0
Fork 0

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: Kees Cook <keescook@chromium.org>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
hifive-unleashed-5.1
Kees Cook 2013-09-10 21:41:34 -07:00 committed by Kent Overstreet
parent 5ceaaad704
commit c86949486d
1 changed files with 1 additions and 1 deletions

View File

@ -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)