linux/fs/ubifs
Richard Weinberger e92d32a4f5 ubifs: Check for name being NULL while mounting
commit 37f31b6ca4 upstream.

The requested device name can be NULL or an empty string.
Check for that and refuse to continue. UBIFS has to do this manually
since we cannot use mount_bdev(), which checks for this condition.

Fixes: 1e51764a3c ("UBIFS: add new flash file system")
Reported-by: syzbot+38bd0f7865e5c6379280@syzkaller.appspotmail.com
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-12-16 22:09:24 +00:00
..
budget.c UBIFS: Remove unused variables in ubifs_budget_space 2014-05-13 13:45:16 +03:00
commit.c UBIFS: fix a race condition 2014-11-14 15:20:08 +00:00
compress.c UBIFS: comply with coding style 2012-08-31 17:32:57 +03:00
debug.c UBIFS: Fix dump messages in ubifs_dump_lprops 2014-05-27 15:05:23 +03:00
debug.h UBIFS: print less 2012-08-31 17:32:58 +03:00
dir.c ubifs: Fix regression in ubifs_readdir() 2017-02-23 03:54:24 +00:00
file.c mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
find.c UBIFS: fix mounting problems after power cuts 2012-10-26 16:26:44 +03:00
gc.c UBIFS: remove unnecessary code in ubifs_garbage_collect 2013-10-22 13:34:27 +01:00
io.c UBIFS: respect MS_SILENT mount flag 2014-06-02 18:00:52 +03:00
ioctl.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
journal.c ubifs: Check data node size before truncate 2018-12-16 22:08:46 +00:00
Kconfig UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
key.h UBIFS: mark unused key objects as invalid 2010-08-30 10:19:08 +03:00
log.c UBIFS: fix free log space calculation 2014-11-14 15:20:08 +00:00
lprops.c ubifs: Fix memory leak in lprobs self-check 2018-12-16 22:08:46 +00:00
lpt.c UBIFS: print less 2012-08-31 17:32:58 +03:00
lpt_commit.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
Makefile UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
master.c UBIFS: remove mst_mutex 2014-11-14 15:20:08 +00:00
misc.h UBIFS: introduce more I/O helpers 2011-07-04 10:54:33 +03:00
orphan.c fs/ubifs: use rbtree postorder iteration helper instead of opencoding 2014-01-23 16:37:03 -08:00
recovery.c fs/ubifs: use rbtree postorder iteration helper instead of opencoding 2014-01-23 16:37:03 -08:00
replay.c UBIFS: print less 2012-08-31 17:32:58 +03:00
sb.c No big changes for 3.7 in UBIFS: 2012-10-02 20:47:48 -07:00
scan.c UBIFS: comply with coding style 2012-08-31 17:32:57 +03:00
shrinker.c UBIFS: Remove incorrect assertion in shrink_tnc() 2014-06-02 11:28:24 +03:00
super.c ubifs: Check for name being NULL while mounting 2018-12-16 22:09:24 +00:00
tnc.c ubifs: Correctly evict xattr inodes 2017-10-12 15:28:06 +01:00
tnc_commit.c ubifs: Fix assertion in layout_in_gaps() 2016-11-20 01:17:16 +00:00
tnc_misc.c UBIFS: print less 2012-08-31 17:32:58 +03:00
ubifs-media.h UBIFS: add a superblock flag for free space fix-up 2011-05-16 14:12:14 +03:00
ubifs.h ubifs: Correctly evict xattr inodes 2017-10-12 15:28:06 +01:00
xattr.c ubifs: Correctly evict xattr inodes 2017-10-12 15:28:06 +01:00