> > Another idea I had was to add a new format specifier to vsnprintf() > > to explicitly escape the string (eg: "%S"). But there are so many > > users of printk() to fix then that I'm not sure we would find them > > all. However, it would be the real fix and not a hack because what > > we're trying to do is to enforce controls on some data type, which > > is exactly the point of this solution. > > Yes, I had this thought, too. This would be the cleanest solution, but > I'm afraid that it will fail in practice. People will continue Please go for the cleanest solution. Anything else is not mergeable. -- Thanks for all the (sleeping) penguins. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Solar Designer <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Ernie Petrides <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Solar Designer <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Willy Tarreau <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Solar Designer <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Willy Tarreau <[email protected]>
- Re: printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- From: Solar Designer <[email protected]>
- Re: printk()s of user-supplied strings
- From: Willy Tarreau <[email protected]>
- Re: printk()s of user-supplied strings
- From: Solar Designer <[email protected]>
- printk()s of user-supplied strings (Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again)
- Prev by Date: Re: [-mm patch] drivers/md/Kconfig: fix BLOCK dependency
- Next by Date: Re: Processor Serial Numbers (PSN) - can it be enabled on Pentium 4
- Previous by thread: Re: printk()s of user-supplied strings
- Next by thread: Re: [PATCH] binfmt_elf.c : the BAD_ADDR macro again
- Index(es):