Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1470725
| From | Josh Poimboeuf <jpoimboe@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful |
| Date | 2016-08-26 15:40 +0200 |
| Message-ID | <sapwt-7EL-5@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <saf46-Zl-13@gated-at.bofh.it> <sag09-1Bc-1@gated-at.bofh.it> <sahfz-2jo-1@gated-at.bofh.it> <sailj-2XN-1@gated-at.bofh.it> <sapwt-7EL-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 25, 2016 at 11:12:40PM -0700, Linus Torvalds wrote: > On Aug 25, 2016 10:57 PM, "Josh Poimboeuf" <jpoimboe@redhat.com> wrote: > > > > But I still don't quite understand your statement that dmesg_restrict is > > only useful for locked down systems. > > > > To prevent kernel address disclosure, it seems we already rely on the > > user setting kptr_restrict today, otherwise I can do cat > > /proc/self/stack and the game is already lost, right? > > The point is: kptr_restrict actually makes sense, and is widely useful. It > doesn't really end up hurting normal things. It's a pretty targeted thing, > and generally doesn't actually hurt. You can still do basic health > monitoring without having to get elevated privileges, for example. > > Even system maintainers don't want to be root all the time. In fact, I > suspect that the better a system maintainer you are, the less you want to > be root - but you'll still want to see logs etc. > > So note the difference between kptr_restrict and dmesg_restrict. > > One is useful in a pretty wide environment, the other simply is not. > > > So what's the difference between expecting the user to set kptr_restrict > > vs dmesg_restrict? > > Do you see the difference now? > > kptr_restrict simply doesn't hurt as much as dmesg_restrict, so you can > enable it fairly widely by default. > > That makes it the *much* better security option. Because security options > that you can't enable aren't actually useful. Yeah, at least for human-administered systems, that does make sense. Grumpy sysadmins don't want to type "sudo dmesg" or "sudo journalctl" because a) they don't like change; and b) using sudo adds risk. And a security option which is never used is indeed useless. So *maybe* that's a good enough argument for expecting the user to only enable kptr_restrict instead of both. But with cloud, devops, mobile, embedded, IoT, [insert buzzword], it seems most systems are actually managed by software nowadays. Then the above arguments don't seem to apply, and dmesg_restrict could still be quite widely useful, no? -- Josh
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Josh Poimboeuf <jpoimboe@redhat.com> - 2016-08-25 19:50 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Kees Cook <keescook@chromium.org> - 2016-08-25 23:00 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Josh Poimboeuf <jpoimboe@redhat.com> - 2016-08-25 23:10 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Kees Cook <keescook@chromium.org> - 2016-08-26 04:30 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Josh Poimboeuf <jpoimboe@redhat.com> - 2016-08-26 05:30 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-26 06:50 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Josh Poimboeuf <jpoimboe@redhat.com> - 2016-08-26 08:00 +0200
Re: [PATCH 3/6] x86/dumpstack: make printk_stack_address() more generally useful Josh Poimboeuf <jpoimboe@redhat.com> - 2016-08-26 15:40 +0200
csiph-web