<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/autofs4, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-08-08T22:57:19Z</updated>
<entry>
<title>autofs4: comment typo: remove a a doubled word</title>
<updated>2014-08-08T22:57:19Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2014-08-08T21:19:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b97dd05810dcb5db1ca98309d52ba7caa1eb00b'/>
<id>urn:sha1:3b97dd05810dcb5db1ca98309d52ba7caa1eb00b</id>
<content type='text'>
Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Acked-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: remove some unused inline functions</title>
<updated>2014-08-08T22:57:19Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2014-08-08T21:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdac38329e2e26c6b2a8bb9e57e18d1db2f1db92'/>
<id>urn:sha1:bdac38329e2e26c6b2a8bb9e57e18d1db2f1db92</id>
<content type='text'>
{__,}manage_dentry_{set,clear}_{automount,transit}

are 4 unused inline functions.  Discard them.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Acked-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: don't take spinlock when not needed in autofs4_lookup_expiring</title>
<updated>2014-08-08T22:57:19Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2014-08-08T21:19:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=668128e90b9596668141539326178dacc42af188'/>
<id>urn:sha1:668128e90b9596668141539326178dacc42af188</id>
<content type='text'>
If the expiring_list is empty, we can avoid a costly spinlock in the
rcu-walk path through autofs4_d_manage (once the rest of the path
becomes rcu-walk friendly).

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Reviewed-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: remove a redundant assignment</title>
<updated>2014-08-08T22:57:19Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2014-08-08T21:19:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c312442fe3ce9561137910db35ad1409d67dbac6'/>
<id>urn:sha1:c312442fe3ce9561137910db35ad1409d67dbac6</id>
<content type='text'>
The variable 'ino' already exists and already has the correct value.
The d_fsdata of a dentry is never changed after the d_fsdata is
instantiated, so this new assignment cannot be necessary.

It was introduced in commit b5b801779d59 ("autofs4: Add d_manage()
dentry operation").

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Acked-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: remove unused autofs4_ispending()</title>
<updated>2014-08-08T22:57:18Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2014-08-08T21:19:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=26b7a54a35cbb2c1b980b339cc1d600edd5f153d'/>
<id>urn:sha1:26b7a54a35cbb2c1b980b339cc1d600edd5f153d</id>
<content type='text'>
Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Acked-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: fix false positive compile error</title>
<updated>2014-07-03T16:21:53Z</updated>
<author>
<name>Ian Kent</name>
</author>
<published>2014-07-02T22:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=571ff4731bc9e5811080f7d16d24c3af7cbca142'/>
<id>urn:sha1:571ff4731bc9e5811080f7d16d24c3af7cbca142</id>
<content type='text'>
On strict build environments we can see:

  fs/autofs4/inode.c: In function 'autofs4_fill_super':
  fs/autofs4/inode.c:312: error: 'pgrp' may be used uninitialized in this function
  make[2]: *** [fs/autofs4/inode.o] Error 1
  make[1]: *** [fs/autofs4] Error 2
  make: *** [fs] Error 2
  make: *** Waiting for unfinished jobs....

This is due to the use of pgrp_set being used to indicate pgrp has has
been set rather than initializing pgrp itself.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fs/autofs4/dev-ioctl.c: add __init to autofs_dev_ioctl_init</title>
<updated>2014-06-04T23:54:21Z</updated>
<author>
<name>Fabian Frederick</name>
</author>
<published>2014-06-04T23:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ff6db3287e8a5e8f5bb9529b8e1259ca6b10def'/>
<id>urn:sha1:3ff6db3287e8a5e8f5bb9529b8e1259ca6b10def</id>
<content type='text'>
autofs_dev_ioctl_init is only called by __init init_autofs4_fs

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Acked-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs: fix lockref lookup</title>
<updated>2014-05-06T20:04:59Z</updated>
<author>
<name>Ian Kent</name>
</author>
<published>2014-05-06T19:50:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b6751f7feba68d8f5c72b72cc69a1c5a625529c'/>
<id>urn:sha1:6b6751f7feba68d8f5c72b72cc69a1c5a625529c</id>
<content type='text'>
autofs needs to be able to see private data dentry flags for its dentrys
that are being created but not yet hashed and for its dentrys that have
been rmdir()ed but not yet freed.  It needs to do this so it can block
processes in these states until a status has been returned to indicate
the given operation is complete.

It does this by keeping two lists, active and expring, of dentrys in
this state and uses -&gt;d_release() to keep them stable while it checks
the reference count to determine if they should be used.

But with the recent lockref changes dentrys being freed sometimes don't
transition to a reference count of 0 before being freed so autofs can
occassionally use a dentry that is invalid which can lead to a panic.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs4: check dev ioctl size before allocating</title>
<updated>2014-04-08T23:48:51Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2014-04-08T23:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e53d77eb8bb616e903e34cc7a918401bee3b5149'/>
<id>urn:sha1:e53d77eb8bb616e903e34cc7a918401bee3b5149</id>
<content type='text'>
There wasn't any check of the size passed from userspace before trying
to allocate the memory required.

This meant that userspace might request more space than allowed,
triggering an OOM.

Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>autofs: fix symlinks aren't checked for expiry</title>
<updated>2014-01-24T00:36:59Z</updated>
<author>
<name>Ian Kent</name>
</author>
<published>2014-01-23T23:55:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8dc51fe5ab9edcaebb5438d6462befdc6922b4a1'/>
<id>urn:sha1:8dc51fe5ab9edcaebb5438d6462befdc6922b4a1</id>
<content type='text'>
The autofs4 module doesn't consider symlinks for expire as it did in the
older autofs v3 module (so it's actually a long standing regression).

The user space daemon has focused on the use of bind mounts instead of
symlinks for a long time now and that's why this has not been noticed.
But with the future addition of amd map parsing to automount(8), not to
mention amd itself (of am-utils), symlink expiry will be needed.

The direct and offset mount types can't be symlinks and the tree mounts of
version 4 were always real mounts so only indirect mounts need expire
symlinks.

Since the current users of the autofs4 module haven't reported this as a
problem to date this patch probably isn't a candidate for backport to
stable.

Signed-off-by: Ian Kent &lt;ikent@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
