Re: [PATCH RESEND net v2] KEYS: DNS: limit the length of option strings

2018-04-17 Thread David Miller
From: Eric Biggers Date: Tue, 17 Apr 2018 12:07:06 -0700 > From: Eric Biggers > > Adding a dns_resolver key whose payload contains a very long option name > resulted in that string being printed in full. This hit the WARN_ONCE() > in set_precision() during the printk(), because printk() only s

[PATCH RESEND net v2] KEYS: DNS: limit the length of option strings

2018-04-17 Thread Eric Biggers
From: Eric Biggers Adding a dns_resolver key whose payload contains a very long option name resulted in that string being printed in full. This hit the WARN_ONCE() in set_precision() during the printk(), because printk() only supports a precision of up to 32767 bytes: precision 100 too