summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorYao Liu <yotta.liu@ucloud.cn>2019-01-28 19:47:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-05 22:34:24 +0200
commitd6dd80425f5d1498fb8b8565842ccda16205c3f9 (patch)
tree7f38de7098b2c105c17a409a5f4894758656d345 /fs/jbd2/commit.c
parentbcb99efab24814da4a5f5fea13f71b960fcc81a3 (diff)
downloadtalos-obmc-linux-d6dd80425f5d1498fb8b8565842ccda16205c3f9.tar.gz
talos-obmc-linux-d6dd80425f5d1498fb8b8565842ccda16205c3f9.zip
cifs: Fix NULL pointer dereference of devname
[ Upstream commit 68e2672f8fbd1e04982b8d2798dd318bf2515dd2 ] There is a NULL pointer dereference of devname in strspn() The oops looks something like: CIFS: Attempting to mount (null) BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 ... RIP: 0010:strspn+0x0/0x50 ... Call Trace: ? cifs_parse_mount_options+0x222/0x1710 [cifs] ? cifs_get_volume_info+0x2f/0x80 [cifs] cifs_setup_volume_info+0x20/0x190 [cifs] cifs_get_volume_info+0x50/0x80 [cifs] cifs_smb3_do_mount+0x59/0x630 [cifs] ? ida_alloc_range+0x34b/0x3d0 cifs_do_mount+0x11/0x20 [cifs] mount_fs+0x52/0x170 vfs_kern_mount+0x6b/0x170 do_mount+0x216/0xdc0 ksys_mount+0x83/0xd0 __x64_sys_mount+0x25/0x30 do_syscall_64+0x65/0x220 entry_SYSCALL_64_after_hwframe+0x49/0xbe Fix this by adding a NULL check on devname in cifs_parse_devname() Signed-off-by: Yao Liu <yotta.liu@ucloud.cn> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud