1. 15 11月, 2012 1 次提交
    • P
      TTY: hvc_console, fix port reference count going to zero prematurely · c019bc11
      Paul Mackerras 提交于
      Commit bdb498c2 "TTY: hvc_console, add tty install" took the port
      refcounting out of hvc_open()/hvc_close(), but failed to remove the
      kref_put() and tty_kref_put() calls in hvc_hangup() that were there to
      remove the extra references that hvc_open() had taken.
      
      The result was that doing a vhangup() when the current terminal was
      a hvc_console, then closing the current terminal, would end up calling
      destroy_hvc_struct() and making the port disappear entirely.  This
      meant that Fedora 17 systems would boot up but then not display the
      login prompt on the console, and attempts to open /dev/hvc0 would
      give a "No such device" error.
      
      This fixes it by removing the extra kref_put() and tty_kref_put() calls.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Acked-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c019bc11
  2. 25 10月, 2012 1 次提交
  3. 17 10月, 2012 1 次提交
  4. 16 10月, 2012 1 次提交
  5. 15 10月, 2012 1 次提交
  6. 12 10月, 2012 2 次提交
    • J
      kdb,vt_console: Fix missed data due to pager overruns · 17b572e8
      Jason Wessel 提交于
      It is possible to miss data when using the kdb pager.  The kdb pager
      does not pay attention to the maximum column constraint of the screen
      or serial terminal.  This result is not incrementing the shown lines
      correctly and the pager will print more lines that fit on the screen.
      Obviously that is less than useful when using a VGA console where you
      cannot scroll back.
      
      The pager will now look at the kdb_buffer string to see how many
      characters are printed.  It might not be perfect considering you can
      output ASCII that might move the cursor position, but it is a
      substantially better approximation for viewing dmesg and trace logs.
      
      This also means that the vt screen needs to set the kdb COLUMNS
      variable.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      17b572e8
    • J
      kgdboc: Accept either kbd or kdb to activate the vga + keyboard kdb shell · 24b8592e
      Jason Wessel 提交于
      It is a common enough mistake for people to specify "kdb" when they
      meant to type "kbd" that the kgdboc can just accept both since they
      both mean the same thing anyway.  Specifically it is for the case
      where you want kdb to be active on your graphics console + keyboard
      (where kbd was the original abbreviation for keyboard).
      
      With this change kgdboc will now accept either to mean the same thing:
         kgdboc=kbd
         kgdboc=kdb
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      24b8592e
  7. 06 10月, 2012 2 次提交
  8. 04 10月, 2012 1 次提交
  9. 27 9月, 2012 19 次提交
  10. 22 9月, 2012 6 次提交
  11. 21 9月, 2012 1 次提交
  12. 19 9月, 2012 2 次提交
  13. 18 9月, 2012 2 次提交
    • G
      tty/serial: remove CONFIG_EXPERIMENTAL dependencies · 8b77562b
      Greg Kroah-Hartman 提交于
      As discussed at the kernel summit this year, CONFIG_EXPERIMENTAL means
      nothing, so let's get rid of it.
      
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8b77562b
    • E
      userns: Convert audit to work with user namespaces enabled · cca080d9
      Eric W. Biederman 提交于
      - Explicitly format uids gids in audit messges in the initial user
        namespace. This is safe because auditd is restrected to be in
        the initial user namespace.
      
      - Convert audit_sig_uid into a kuid_t.
      
      - Enable building the audit code and user namespaces at the same time.
      
      The net result is that the audit subsystem now uses kuid_t and kgid_t whenever
      possible making it almost impossible to confuse a raw uid_t with a kuid_t
      preventing bugs.
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      cca080d9