1. 07 Apr, 2014 1 commit
    • Tejun Heo's avatar
      cgroup: newly created dirs and files should be owned by the creator · 49957f8e
      Tejun Heo authored
      While converting cgroup to kernfs, 2bd59d48 ("cgroup: convert to
      kernfs") accidentally dropped the logic which makes newly created
      cgroup dirs and files owned by the current uid / gid.  This broke
      cases where cgroup subtree management is delegated to !root as the sub
      manager wouldn't be able to create more than single level of hierarchy
      or put tasks into child cgroups it created.
      
      Among other things, this breaks user session management in systemd and
      one of the symptoms was 90s hang during shutdown.  User session
      systemd running as the user creates a sub-service to initiate shutdown
      and tries to put kill(1) into it but fails because cgroup.procs is
      owned by root.  This leads to 90s hang during shutdown.
      
      Implement cgroup_kn_set_ugid() which sets a kn's uid and gid to those
      of the caller and use it from file and dir creation paths.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      49957f8e
  2. 04 Apr, 2014 3 commits
    • Li Zefan's avatar
      cgroup: fix top cgroup refcnt leak · c6b3d5bc
      Li Zefan authored
      As mount() and kill_sb() is not a one-to-one match, If we mount the same
      cgroupfs in serveral mount points, and then umount all of them, kill_sb()
      will be called only once.
      
      Try:
              # mount -t cgroup -o cpuacct xxx /cgroup
              # mount -t cgroup -o cpuacct xxx /cgroup2
              # cat /proc/cgroups | grep cpuacct
              cpuacct 2       1       1
              # umount /cgroup
              # umount /cgroup2
              # cat /proc/cgroups | grep cpuacct
              cpuacct 2       1       1
      
      You'll see cgroupfs will never be freed.
      Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      c6b3d5bc
    • Linus Torvalds's avatar
      Merge branch 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac · 4a4389ab
      Linus Torvalds authored
      Pull sb_edac patches from Mauro Carvalho Chehab:
       "A couple sb_edac driver improvements, cleaning a little bit the amount
        of data sent to dmesg, and fixing one error message"
      
      * 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac:
        sb_edac: mark MCE messages as KERN_DEBUG
        sb_edac: use "event" instead of "exception" when MC wasnt signaled
      4a4389ab
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 73f10274
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
       "The first round of updates for the input subsystem.
      
        Just new drivers and existing driver fixes, no core changes except for
        the new uinput IOCTL to allow userspace to fetch sysfs name of the
        input device that was created"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (43 commits)
        Input: edt-ft5x06 - add a missing condition
        Input: appletouch - fix jumps when additional fingers are detected
        Input: appletouch - implement sensor data smoothing
        Input: add driver for SOC button array
        Input: pm8xxx-vibrator - add DT match table
        Input: pmic8xxx-pwrkey - migrate to DT
        Input: pmic8xxx-keypad - migrate to DT
        Input: pmic8xxx-keypad - migrate to regmap APIs
        Input: pmic8xxx-keypad - migrate to devm_* APIs
        Input: pmic8xxx-keypad - fix build by removing gpio configuration
        Input: add new driver for ARM CLPS711X keypad
        Input: edt-ft5x06 - add support for M09 firmware version
        Input: edt-ft5x06 - ignore touchdown events
        Input: edt-ft5x06 - adjust delays to conform datasheet
        Input: edt-ft5x06 - add DT support
        Input: edt-ft5x06 - several cleanups; no functional change
        Input: appletouch - dial back fuzz setting
        Input: remove obsolete tnetv107x drivers
        Input: sirfsoc-onkey - set the capability of reporting KEY_POWER
        Input: da9052_onkey - use correct register bit for key status
        ...
      73f10274
  3. 03 Apr, 2014 36 commits