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 files52
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Makefile
- clip_tbl.c
- clip_tbl.h
- cudbg_common.c
- cudbg_entity.h
- cudbg_if.h
- cudbg_lib.c
- cudbg_lib.h
- cudbg_lib_common.h
- cudbg_zlib.c
- cudbg_zlib.h
- cxgb4.h
- cxgb4_cudbg.c
- cxgb4_cudbg.h
- cxgb4_dcb.c
- cxgb4_dcb.h
- cxgb4_debugfs.c
- cxgb4_debugfs.h
- cxgb4_ethtool.c
- cxgb4_fcoe.c
- cxgb4_fcoe.h
- cxgb4_filter.c
- cxgb4_filter.h
- cxgb4_main.c
- cxgb4_ptp.c
- cxgb4_ptp.h
- cxgb4_tc_flower.c
- cxgb4_tc_flower.h
- cxgb4_tc_u32.c
- cxgb4_tc_u32.h
- cxgb4_tc_u32_parse.h
- cxgb4_uld.c
- cxgb4_uld.h
- l2t.c
- l2t.h
- sched.c
- sched.h
- sge.c
- smt.c
- smt.h
- srq.c
- srq.h
- t4_chip_type.h
- t4_hw.c
- t4_hw.h
- t4_msg.h
- t4_pci_id_tbl.h
- t4_regs.h
- t4_tcb.h
- t4_values.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
Text · 2,105 bytes/*
* Copyright (C) 2017 Chelsio Communications. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* The full GNU General Public License is included in this distribution in
* the file called "COPYING".
*
*/
#ifndef __CUDBG_LIB_COMMON_H__
#define __CUDBG_LIB_COMMON_H__
#define CUDBG_SIGNATURE 67856866 /* CUDB in ascii */
enum cudbg_dump_type {
CUDBG_DUMP_TYPE_MINI = 1,
};
enum cudbg_compression_type {
CUDBG_COMPRESSION_NONE = 1,
CUDBG_COMPRESSION_ZLIB,
};
struct cudbg_hdr {
u32 signature;
u32 hdr_len;
u16 major_ver;
u16 minor_ver;
u32 data_len;
u32 hdr_flags;
u16 max_entities;
u8 chip_ver;
u8 dump_type:3;
u8 reserved1:1;
u8 compress_type:4;
u32 reserved[8];
};
struct cudbg_entity_hdr {
u32 entity_type;
u32 start_offset;
u32 size;
int hdr_flags;
u32 sys_warn;
u32 sys_err;
u8 num_pad;
u8 flag; /* bit 0 is used to indicate ext data */
u8 reserved1[2];
u32 next_ext_offset; /* pointer to next extended entity meta data */
u32 reserved[5];
};
struct cudbg_ver_hdr {
u32 signature;
u16 revision;
u16 size;
};
struct cudbg_buffer {
u32 size;
u32 offset;
char *data;
};
struct cudbg_error {
int sys_err;
int sys_warn;
int app_err;
};
#define CDUMP_MAX_COMP_BUF_SIZE ((64 * 1024) - 1)
#define CUDBG_CHUNK_SIZE ((CDUMP_MAX_COMP_BUF_SIZE / 1024) * 1024)
int cudbg_get_buff(struct cudbg_init *pdbg_init,
struct cudbg_buffer *pdbg_buff, u32 size,
struct cudbg_buffer *pin_buff);
void cudbg_put_buff(struct cudbg_init *pdbg_init,
struct cudbg_buffer *pin_buff);
void cudbg_update_buff(struct cudbg_buffer *pin_buff,
struct cudbg_buffer *pout_buff);
#endif /* __CUDBG_LIB_COMMON_H__ */