1. 10 May, 2010 3 commits
  2. 03 May, 2010 1 commit
  3. 27 Apr, 2010 1 commit
  4. 26 Apr, 2010 2 commits
  5. 23 Apr, 2010 2 commits
  6. 22 Apr, 2010 13 commits
  7. 21 Apr, 2010 16 commits
  8. 20 Apr, 2010 2 commits
    • Jan Kiszka's avatar
      UML: Fix compiler warning due to missing task_struct declaration · 4cb3ca7c
      Jan Kiszka authored
      We can't pull in linux/sched.h due to circular dependency, so just
      forward-declare the struct.
      
      This fixes the following warning:
      
        CC      arch/um/sys-i386/elfcore.o
      In file included from /data/linux-2.6/include/linux/elf.h:8,
                       from /data/linux-2.6/arch/um/sys-i386/elfcore.c:2:
      arch/um/sys-i386/asm/elf.h:78: warning: ‘struct task_struct’ declared inside parameter list
      arch/um/sys-i386/asm/elf.h:78: warning: its scope is only this definition or declaration, which is probably not what you want
      
      I guess not many people build against i386 hosts anymore, so this
      remained widely unnoticed.
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@web.de>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      4cb3ca7c
    • David Howells's avatar
      CRED: Fix double free in prepare_usermodehelper_creds() error handling · eff30363
      David Howells authored
      Patch 570b8fb5:
      
      	Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      	Date:   Tue Mar 30 00:04:00 2010 +0100
      	Subject: CRED: Fix memory leak in error handling
      
      attempts to fix a memory leak in the error handling by making the offending
      return statement into a jump down to the bottom of the function where a
      kfree(tgcred) is inserted.
      
      This is, however, incorrect, as it does a kfree() after doing put_cred() if
      security_prepare_creds() fails.  That will result in a double free if 'error'
      is jumped to as put_cred() will also attempt to free the new tgcred record by
      virtue of it being pointed to by the new cred record.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarJames Morris <jmorris@namei.org>
      eff30363