Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1260465

Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory

From Jessica Yu <jeyu@redhat.com>
Newsgroups linux.kernel
Subject Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory
Date 2015-11-02 10:10 +0100
Message-ID <qqjhL-3tg-11@gated-at.bofh.it> (permalink)
References <qpvkZ-6eJ-1@gated-at.bofh.it> <qpQ66-1WP-1@gated-at.bofh.it> <qpS7T-3t6-3@gated-at.bofh.it> <qpWOe-6jQ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


+++ Jiri Kosina [01/11/15 10:07 +0100]:
>On Sat, 31 Oct 2015, Chris J Arges wrote:
>
>> Makes sense to me. Is there a reason why the sysfs entries are visible
>> to non-root users?
>
>Well, kptr_restrict applies only to values printed using '%pK'. So if the
>sysfs handler is using other printk() format string to print the pointer,
>it'll be leaked out (and should eventually be fixed).

Hm, I think the func.n solution might be a good temporary fix for now.
Even if we do go with func@addr and use the '%pK' format specifier we
will run into the same problem at kptr_restrict == 2.

Jessica
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] livepatch: old_name@old_addr scheme in livepatch sysfs directory Chris J Arges <chris.j.arges@canonical.com> - 2015-10-31 04:50 +0100
  Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory Jessica Yu <jeyu@redhat.com> - 2015-11-01 03:00 +0100
    Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory Chris J Arges <chris.j.arges@canonical.com> - 2015-11-01 05:10 +0100
      Re: livepatch: old_name@old_addr scheme in livepatch sysfs  directory Jiri Kosina <jikos@kernel.org> - 2015-11-01 10:10 +0100
        Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory Jessica Yu <jeyu@redhat.com> - 2015-11-02 10:10 +0100

csiph-web