Skip to content
  1. May 08, 2013
    • Eric Paris's avatar
      Revert "audit: move kaudit thread start from auditd registration to kaudit init" · 82d8da0d
      Eric Paris authored
      This reverts commit 6ff5e459
      
      .
      
      Conflicts:
      	kernel/audit.c
      
      This patch was starting a kthread for all the time.  Since the follow on
      patches that required it didn't get finished in 3.10 time, we shouldn't
      ship this change in 3.10.
      
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      82d8da0d
    • Jeff Layton's avatar
      audit: vfs: fix audit_inode call in O_CREAT case of do_last · 33e2208a
      Jeff Layton authored
      Jiri reported a regression in auditing of open(..., O_CREAT) syscalls.
      In older kernels, creating a file with open(..., O_CREAT) created
      audit_name records that looked like this:
      
      type=PATH msg=audit(1360255720.628:64): item=1 name="/abc/foo" inode=138810 dev=fd:00 mode=0100640 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:default_t:s0
      type=PATH msg=audit(1360255720.628:64): item=0 name="/abc/" inode=138635 dev=fd:00 mode=040750 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:default_t:s0
      
      ...in recent kernels though, they look like this:
      
      type=PATH msg=audit(1360255402.886:12574): item=2 name=(null) inode=264599 dev=fd:00 mode=0100640 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:default_t:s0
      type=PATH msg=audit(1360255402.886:12574): item=1 name=(null) inode=264598 dev=fd:00 mode=040750 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:default_t:s0
      type=PATH msg=audit(1360255402.886:12574): item=0 name="/abc/foo" inode=264598 dev=fd:00 mode=040750 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:default_t:s0
      
      Richard bisected to determine that the problems started with commit
      bfcec708
      
      , but the log messages have changed with some later
      audit-related patches.
      
      The problem is that this audit_inode call is passing in the parent of
      the dentry being opened, but audit_inode is being called with the parent
      flag false. This causes later audit_inode and audit_inode_child calls to
      match the wrong entry in the audit_names list.
      
      This patch simply sets the flag to properly indicate that this inode
      represents the parent. With this, the audit_names entries are back to
      looking like they did before.
      
      Cc: <stable@vger.kernel.org> # v3.7+
      Reported-by: default avatarJiri Jaburek <jjaburek@redhat.com>
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Test By: Richard Guy Briggs <rbriggs@redhat.com>
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      33e2208a
    • Eric W. Biederman's avatar
      audit: Make testing for a valid loginuid explicit. · 780a7654
      Eric W. Biederman authored
      audit rule additions containing "-F auid!=4294967295" were failing
      with EINVAL because of a regression caused by e1760bd5
      
      .
      
      Apparently some userland audit rule sets want to know if loginuid uid
      has been set and are using a test for auid != 4294967295 to determine
      that.
      
      In practice that is a horrible way to ask if a value has been set,
      because it relies on subtle implementation details and will break
      every time the uid implementation in the kernel changes.
      
      So add a clean way to test if the audit loginuid has been set, and
      silently convert the old idiom to the cleaner and more comprehensible
      new idiom.
      
      Cc: <stable@vger.kernel.org> # 3.7
      Reported-By: default avatarRichard Guy Briggs <rgb@redhat.com>
      Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
      Tested-by: default avatarRichard Guy Briggs <rgb@redhat.com>
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      780a7654
  2. May 01, 2013
  3. Apr 17, 2013
    • Eric Paris's avatar
      audit: allow checking the type of audit message in the user filter · 62062cf8
      Eric Paris authored
      
      
      When userspace sends messages to the audit system it includes a type.
      We want to be able to filter messages based on that type without have to
      do the all or nothing option currently available on the
      AUDIT_FILTER_TYPE filter list.  Instead we should be able to use the
      AUDIT_FILTER_USER filter list and just use the message type as one part
      of the matching decision.
      
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      62062cf8
  4. Apr 16, 2013
  5. Apr 12, 2013
    • Gao feng's avatar
      audit: remove duplicate export of audit_enabled · 72199caa
      Gao feng authored
      
      
      audit_enabled has already been exported in
      include/linux/audit.h. and kernel/audit.h
      includes include/linux/audit.h, no need to
      export aduit_enabled again in kernel/audit.h
      
      Signed-off-by: default avatarGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      72199caa
    • Eric Paris's avatar
      Audit: do not print error when LSMs disabled · ad395abe
      Eric Paris authored
      
      
      RHBZ: 785936
      
      If the audit system collects a record about one process sending a signal
      to another process it includes in that collection the 'secid' or 'an int
      used to represet an LSM label.'  If there is no LSM enabled it will
      collect a 0.  The problem is that when we attempt to print that record
      we ask the LSM to convert the secid back to a string.  Since there is no
      LSM it returns EOPNOTSUPP.
      
      Most code in the audit system checks if the secid is 0 and does not
      print LSM info in that case.  The signal information code however forgot
      that check.  Thus users will see a message in syslog indicating that
      converting the sid to string failed.  Add the right check.
      
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      ad395abe
  6. Apr 11, 2013
  7. Apr 09, 2013
  8. Feb 19, 2013
    • Linus Torvalds's avatar
      Linux 3.8 · 19f949f5
      Linus Torvalds authored
      v3.8
      19f949f5
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · e9cf59ae
      Linus Torvalds authored
      Pull input subsystem fixes from Dmitry Torokhov:
       "Two small driver fixups and a documentation update for managed input
        devices"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: wacom - fix wacom_set_report retry logic
        Input: document that unregistering managed devices is not necessary
        Input: lm8323 - fix checking PWM interrupt status
      e9cf59ae
    • Linus Torvalds's avatar
      mm: fix pageblock bitmap allocation · 7c45512d
      Linus Torvalds authored
      Commit c060f943 ("mm: use aligned zone start for pfn_to_bitidx
      calculation") fixed out calculation of the index into the pageblock
      bitmap when a !SPARSEMEM zome was not aligned to pageblock_nr_pages.
      
      However, the _allocation_ of that bitmap had never taken this alignment
      requirement into accout, so depending on the exact size and alignment of
      the zone, the use of that index could then access past the allocation,
      resulting in some very subtle memory corruption.
      
      This was reported (and bisected) by Ingo Molnar: one of his random
      config builds would hang with certain very specific kernel command line
      options.
      
      In the meantime, commit c060f943
      
       has been marked for stable, so this
      fix needs to be back-ported to the stable kernels that backported the
      commit to use the right alignment.
      
      Bisected-and-tested-by: default avatarIngo Molnar <mingo@kernel.org>
      Acked-by: default avatarMel Gorman <mgorman@suse.de>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7c45512d
  9. Feb 16, 2013
    • Linus Torvalds's avatar
      Merge tag 'stable/for-linus-3.8-rc7-tag-two' of... · f741656d
      Linus Torvalds authored
      Merge tag 'stable/for-linus-3.8-rc7-tag-two' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
      
      Pull xen fixes from Konrad Rzeszutek Wilk:
       "Two fixes:
      
         - A simple bug-fix for redundant NULL check.
      
         - CVE-2013-0228/XSA-42: x86/xen: don't assume %ds is usable in
           xen_iret for 32-bit PVOPS
      
        and two reverts:
      
         - Revert the PVonHVM kexec.  The patch introduces a regression with
           older hypervisor stacks, such as Xen 4.1."
      
      * tag 'stable/for-linus-3.8-rc7-tag-two' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
        Revert "xen PVonHVM: use E820_Reserved area for shared_info"
        Revert "xen/PVonHVM: fix compile warning in init_hvm_pv_info"
        xen: remove redundant NULL check before unregister_and_remove_pcpu().
        x86/xen: don't assume %ds is usable in xen_iret for 32-bit PVOPS.
      f741656d
    • Mauro Carvalho Chehab's avatar
      Revert "[media] dvb_frontend: return -ENOTTY for unimplement IOCTL" · ac897586
      Mauro Carvalho Chehab authored
      As reported by Klaus Schmidinger:
       "In VDR I use an ioctl() call with FE_READ_UNCORRECTED_BLOCKS on a
        device (using stb0899).  After this call I check 'errno' for
        EOPNOTSUPP to determine whether this device supports this call.  This
        used to work just fine, until a few months ago I noticed that my
        devices using stb0899 didn't display their signal quality in VDR's OSD
        any more.  After further investigation I found that
        ioctl(FE_READ_UNCORRECTED_BLOCKS) no longer returns EOPNOTSUPP, but
        rather ENOTTY.  And since I stop getting the signal quality in case
        any unknown errno value appears, this broke my signal quality query
        function."
      
      While the changes reflect what is there at:
      
        http://comments.gmane.org/gmane.linux.kernel/1235728
      
      it does cause regression on userspace.  So, revert it to stop the
      damage.
      
      This reverts commit 177ffe50
      
       ("[media] dvb_frontend: return -ENOTTY
      for unimplement IOCTL").
      
      Reported-by: default avatarKlaus Schmidinger <Klaus.Schmidinger@tvdr.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ac897586
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 11e76514
      Linus Torvalds authored
      Pull sparc fixes from David Miller:
       "A couple small fixes for sparc including some THP brown-paper-bag
        material:
      
         1) During the merging of all the THP support for various
            architectures, sparc missed adding a
            HAVE_ARCH_TRANSPARENT_HUGEPAGE to it's Kconfig, oops.
      
         2) Sparc needs to be mindful of hugepages in get_user_pages_fast().
      
         3) Fix memory leak in SBUS probe, from Cong Ding.
      
         4) The sunvdc virtual disk client driver has a test of the bitmask of
            vdisk server supported operations which was off by one bit"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sunvdc: Fix off-by-one in generic_request().
        sparc64: Fix get_user_pages_fast() wrt. THP.
        sparc64: Add missing HAVE_ARCH_TRANSPARENT_HUGEPAGE.
        sparc: kernel/sbus.c: fix memory leakage
      11e76514
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5c0857a9
      Linus Torvalds authored
      Pull one more x86 fix from Peter Anvin:
       "Sigh.  One more patch in the "please don't brick my Samsung" series"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: Clear EFI_RUNTIME_SERVICES rather than EFI_BOOT by "noefi" boot parameter
      5c0857a9
    • Linus Torvalds's avatar
      Merge tag '3.8-pci-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · db1b2d32
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
       "This is another fix for v3.8.  It fixes an oops that happens when a
        Thunderbolt adapter is unplugged (remove device, poll for PME events
        on no-longer-existing device, oops)."
      
      * tag '3.8-pci-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI/PM: Clean up PME state when removing a device
      db1b2d32
    • Linus Torvalds's avatar
      Merge tag 'omapdss-for-3.8-rc8' of git://gitorious.org/linux-omap-dss2/linux · 7ea76ebb
      Linus Torvalds authored
      Pull omapdss fixes from Tomi Valkeinen:
       "It'd be great if these two late fixes would still make it into 3.8.
        The other one fixes ARM kernel compilation when using 'allyesconfig',
        and the other makes DPI displays function again on OMAP3630 boards:
      
         - Fix ARM compilation with "allyesconfig" (omapdrm: fix the
           dependency to omapdss)
      
         - fix DPI displays on OMAP3630 (OMAPDSS: add FEAT_DPI_USES_VDDS_DSI
           to omap3630_dss_feat_list)"
      
      * tag 'omapdss-for-3.8-rc8' of git://gitorious.org/linux-omap-dss2/linux:
        omapdrm: fix the dependency to omapdss
        OMAPDSS: add FEAT_DPI_USES_VDDS_DSI to omap3630_dss_feat_list
      7ea76ebb
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · f0a34ac9
      Linus Torvalds authored
      Pull i2c maintainer info update from Wolfram Sang:
       "Since my old email and repos are not working anymore, and this already
        caused some confusion, I think a MAINTAINERS update for 3.8 is
        helpful.  So, people trying I2C with the new kernel can properly reach
        me and find my repos."
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        MAINTAINERS: change my email and repos
      f0a34ac9