linux/fs/autofs4
NeilBrown 9fa4eb8e49 autofs: sanity check status reported with AUTOFS_DEV_IOCTL_FAIL
If a positive status is passed with the AUTOFS_DEV_IOCTL_FAIL ioctl,
autofs4_d_automount() will return

   ERR_PTR(status)

with that status to follow_automount(), which will then dereference an
invalid pointer.

So treat a positive status the same as zero, and map to ENOENT.

See comment in systemd src/core/automount.c::automount_send_ready().

Link: http://lkml.kernel.org/r/871sqwczx5.fsf@notabene.neil.brown.name
Signed-off-by: NeilBrown <neilb@suse.com>
Cc: Ian Kent <raven@themaw.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-06-23 16:15:55 -07:00
..
Kconfig Fix dead URLs to ftp.kernel.org 2017-03-28 16:16:52 +02:00
Makefile autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
autofs_i.h rcu: Separate the RCU synchronization types and APIs into <linux/rcupdate_wait.h> 2017-03-02 08:42:24 +01:00
dev-ioctl.c autofs: sanity check status reported with AUTOFS_DEV_IOCTL_FAIL 2017-06-23 16:15:55 -07:00
expire.c autofs - dont hold spin lock over direct mount expire 2016-12-03 20:51:50 -05:00
init.c autofs4: coding style fixes 2016-03-15 16:55:16 -07:00
inode.c don't open-code file_inode() 2016-12-04 18:29:28 -05:00
root.c autofs: take more care to not update last_used on path walk 2017-02-27 18:43:45 -08:00
symlink.c vfs: remove ".readlink = generic_readlink" assignments 2016-12-09 16:45:04 +01:00
waitq.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00