Re: [PATCH v2] vsprintf: kptr_restrict is okay in IRQ when 2
From: Rasmus Villemoes
Date: Sun Feb 07 2016 - 16:53:41 EST
On Fri, Feb 05 2016, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>> switch (kptr_restrict) {
>> case 0:
>> /* Always print %pK values */
>> break;
>> case 1: {
>> + const struct cred *cred;
>> +
>> + /*
>> + * kptr_restrict==2 cannot be used in IRQ context because
^
should be 1, right?
Rasmus