1. 30 7月, 2007 1 次提交
  2. 17 7月, 2007 1 次提交
  3. 26 5月, 2007 1 次提交
    • H
      fix compat console unimap regression · f4d43bd5
      Hugh Dickins 提交于
      Why is it that since the 2f1a2ccb console
      UTF-8 fixes went into 2.6.22-rc1, the PowerMac G5 shows only inverse video
      question marks for the text on tty2-6? whereas tty1 is fine, and so is x86.
      
      No fault of that patch: by removing the old fallback behaviour, it reveals
      that 32-bit setfont running on 64-bit kernels has only really worked on
      the current console, the rest getting faked by that inadequate fallback.
      
      Bring the compat do_unimap_ioctl into line with the main one: PIO_UNIMAP
      and GIO_UNIMAP apply to the specified tty, not redirected to fg_console.
      Use the same checks, and most particularly, remember to check access_ok:
      con_set_unimap and con_get_unimap are using __get_user and __put_user.
      
      And the compat vt_check should ask for the same capability as the main
      one, CAP_SYS_TTY_CONFIG rather than CAP_SYS_ADMIN.  Added in vt_ioctl's
      vc_cons_allocated check for safety, though failure may well be impossible.
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f4d43bd5
  4. 11 5月, 2007 1 次提交
  5. 09 5月, 2007 4 次提交
  6. 03 5月, 2007 3 次提交
  7. 26 4月, 2007 1 次提交
  8. 28 3月, 2007 1 次提交
  9. 09 12月, 2006 1 次提交
  10. 08 12月, 2006 1 次提交
  11. 07 12月, 2006 1 次提交
  12. 12 10月, 2006 1 次提交
  13. 01 10月, 2006 9 次提交
  14. 01 7月, 2006 1 次提交
  15. 27 6月, 2006 2 次提交
  16. 25 6月, 2006 1 次提交
  17. 24 3月, 2006 2 次提交
  18. 09 3月, 2006 1 次提交
    • R
      [NET] compat ifconf: fix limits · 1efa3c05
      Randy Dunlap 提交于
      A recent change to compat. dev_ifconf() in fs/compat_ioctl.c
      causes ifconf data to be truncated 1 entry too early when copying it
      to userspace.  The correct amount of data (length) is returned,
      but the final entry is empty (zero, not filled in).
      The for-loop 'i' check should use <= to allow the final struct
      ifreq32 to be copied.  I also used the ifconf-corruption program
      in kernel bugzilla #4746 to make sure that this change does not
      re-introduce the corruption.
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1efa3c05
  19. 27 2月, 2006 1 次提交
  20. 08 2月, 2006 1 次提交
  21. 13 1月, 2006 1 次提交
  22. 12 1月, 2006 2 次提交
  23. 11 1月, 2006 2 次提交
    • C
      [PATCH] sanitize building of fs/compat_ioctl.c · e6a6d2ef
      Christoph Hellwig 提交于
      Now that all these entries in the arch ioctl32.c files are gone [1], we can
      build fs/compat_ioctl.c as a normal object and kill tons of cruft.  We need a
      special do_ioctl32_pointer handler for s390 so the compat_ptr call is done.
      This is not needed but harmless on all other architectures.  Also remove some
      superflous includes in fs/compat_ioctl.c
      
      Tested on ppc64.
      
      [1] parisc still had it's PPP handler left, which is not fully correct
          for ppp and besides that ppp uses the generic SIOCPRIV ioctl so it'd
          kick in for all netdevice users.  We can introduce a proper handler
          in one of the next patch series by adding a compat_ioctl method to
          struct net_device but for now let's just kill it - parisc doesn't
          compile in mainline anyway and I don't want this to block this
          patchset.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Matthew Wilcox <willy@debian.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e6a6d2ef
    • C
      [PATCH] move rtc compat ioctl handling to fs/compat_ioctl.c · ec3cad96
      Christoph Hellwig 提交于
      This patch implements generic handling of RTC_IRQP_READ32, RTC_IRQP_SET32,
      RTC_EPOCH_READ32 and RTC_EPOCH_SET32 in fs/compat_ioctl.c.  It's based on the
      x86_64 code which needed a little massaging to be endian-clean.
      
      parisc used COMPAT_IOCTL or generic w_long handlers for these whichce is wrong
      and can't work because the ioctls encode sizeof(unsigned long) in their ioctl
      number.  parisc also duplicated COMPAT_IOCTL entries for other rtc ioctls
      which I remove in this patch, too.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Acked-by: NMatthew Wilcox <matthew@wil.cx>
      Acked-by: N"David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ec3cad96