Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files25
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- acl.c
- addr.c
- cache.c
- cache.h
- caps.c
- ceph_frag.c
- debugfs.c
- dir.c
- export.c
- file.c
- inode.c
- ioctl.c
- ioctl.h
- locks.c
- mds_client.c
- mds_client.h
- mdsmap.c
- quota.c
- snap.c
- strings.c
- super.c
- super.h
- xattr.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/ceph/ceph_frag.c
C · 401 bytes// SPDX-License-Identifier: GPL-2.0
/*
* Ceph 'frag' type
*/
#include <linux/module.h>
#include <linux/ceph/types.h>
int ceph_frag_compare(__u32 a, __u32 b)
{
unsigned va = ceph_frag_value(a);
unsigned vb = ceph_frag_value(b);
if (va < vb)
return -1;
if (va > vb)
return 1;
va = ceph_frag_bits(a);
vb = ceph_frag_bits(b);
if (va < vb)
return -1;
if (va > vb)
return 1;
return 0;
}