1. 31 Jul, 2017 2 commits
    • Al Viro's avatar
      dentry name snapshots · 626f7c23
      Al Viro authored
      take_dentry_name_snapshot() takes a safe snapshot of dentry name;
      if the name is a short one, it gets copied into caller-supplied
      structure, otherwise an extra reference to external name is grabbed
      (those are never modified).  In either case the pointer to stable
      string is stored into the same structure.
      
      dentry must be held by the caller of take_dentry_name_snapshot(),
      but may be freely dropped afterwards - the snapshot will stay
      until destroyed by release_dentry_name_snapshot().
      
      Intended use:
      	struct name_snapshot s;
      
      	take_dentry_name_snapshot(&s, dentry);
      	...
      	access s.name
      	...
      	release_dentry_name_snapshot(&s);
      
      Replaces fsnotify_oldname_...(), gets used in fsnotify to obtain the name
      to pass down with event.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      (cherry picked from commit 49d31c2f)
      CVE-2017-7533
      Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
      626f7c23
    • Thadeu Lima de Souza Cascardo's avatar
      7ac33421
  2. 20 Jul, 2017 1 commit
  3. 19 Jul, 2017 37 commits