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

2018-02-28 Thread Eric Biggers
On Tue, Feb 27, 2018 at 06:34:19PM -0800, Eric Dumazet wrote: > On Tue, 2018-02-27 at 17:49 -0800, Eric Biggers wrote: > > From: Eric Biggers > > > > Adding a dns_resolver key whose payload contains a very long option name > > resulted in that string being printed in full.

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

2018-02-27 Thread Eric Dumazet
On Tue, 2018-02-27 at 17:49 -0800, Eric Biggers wrote: > 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(),

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

2018-02-27 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: