TencentOS-kernel/fs/ceph
Zhiping du 7204bad0ed ceph: quota: fix null pointer dereference in quota check
[upstream commit 71f2cc64d027d7]

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch fixes a possible null pointer dereference in
check_quota_exceeded, detected by the static checker smatch, with the
following warning:

   fs/ceph/quota.c:240 check_quota_exceeded()
    error: we previously assumed 'realm' could be null (see line 188)

Fixes: b7a2921765cf ("ceph: quota: support for ceph.quota.max_files")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

Signed-off-by: Zhiping Du <zhipingdu@tencent.com>
2020-07-06 14:35:32 +08:00
..
Kconfig Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
Makefile ceph: quota: add initial infrastructure to support cephfs quotas 2020-01-02 12:23:05 +08:00
acl.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
addr.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
cache.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
cache.h Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
caps.c ceph: quota: cache inode pointer in ceph_snap_realm 2020-01-02 12:23:30 +08:00
ceph_frag.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
debugfs.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
dir.c ceph: don't check quota for snap inode 2020-01-02 12:23:23 +08:00
export.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
file.c ceph: quota: update MDS when max_bytes is approaching 2020-01-02 12:23:20 +08:00
inode.c ceph: quota: add counter for snaprealms with quota 2020-01-02 12:23:33 +08:00
ioctl.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
ioctl.h Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
locks.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
mds_client.c ceph: quota: add counter for snaprealms with quota 2020-01-02 12:23:33 +08:00
mds_client.h ceph: quota: add counter for snaprealms with quota 2020-01-02 12:23:33 +08:00
mdsmap.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
quota.c ceph: quota: fix null pointer dereference in quota check 2020-07-06 14:35:32 +08:00
snap.c ceph: quota: cache inode pointer in ceph_snap_realm 2020-01-02 12:23:30 +08:00
strings.c Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces 2020-01-02 10:51:04 +08:00
super.c ceph: quota: report root dir quota usage in statfs 2020-01-02 12:23:38 +08:00
super.h ceph: quota: report root dir quota usage in statfs 2020-01-02 12:23:38 +08:00
xattr.c ceph: quota: add initial infrastructure to support cephfs quotas 2020-01-02 12:23:05 +08:00