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 files249
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- jz4740/
- media/
- txx9/
- x86/
- ad5449.h
- ad5755.h
- ad5761.h
- ad7266.h
- ad7291.h
- ad7298.h
- ad7303.h
- ad7791.h
- ad7793.h
- ad7879.h
- ad7887.h
- adau17x1.h
- adau1977.h
- adp5588.h
- adp8860.h
- adp8870.h
- ads1015.h
- ads7828.h
- ams-delta-fiq.h
- apds990x.h
- arm-ux500-pm.h
- asoc-imx-ssi.h
- asoc-kirkwood.h
- asoc-mx27vis.h
- asoc-palm27x.h
- asoc-s3c.h
- asoc-s3c24xx_simtec.h
- asoc-ti-mcbsp.h
- asoc-ux500-msp.h
- at24.h
- at91_adc.h
- ata-pxa.h
- ata-samsung_cf.h
- atmel.h
- b53.h
- bcmgenet.h
- bd6107.h
- bh1770glc.h
- brcmfmac.h
- clk-da8xx-cfgchip.h
- clk-davinci-pll.h
- clk-integrator.h
- clk-lpss.h
- clk-st.h
- clk-u300.h
- cpuidle-exynos.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
include/linux/platform_data/at24.h
Text · 2,131 bytes/*
* at24.h - platform_data for the at24 (generic eeprom) driver
* (C) Copyright 2008 by Pengutronix
* (C) Copyright 2012 by Wolfram Sang
* same license as the driver
*/
#ifndef _LINUX_AT24_H
#define _LINUX_AT24_H
#include <linux/types.h>
#include <linux/nvmem-consumer.h>
#include <linux/bitops.h>
/**
* struct at24_platform_data - data to set up at24 (generic eeprom) driver
* @byte_len: size of eeprom in byte
* @page_size: number of byte which can be written in one go
* @flags: tunable options, check AT24_FLAG_* defines
* @setup: an optional callback invoked after eeprom is probed; enables kernel
code to access eeprom via nvmem, see example
* @context: optional parameter passed to setup()
*
* If you set up a custom eeprom type, please double-check the parameters.
* Especially page_size needs extra care, as you risk data loss if your value
* is bigger than what the chip actually supports!
*
* An example in pseudo code for a setup() callback:
*
* void get_mac_addr(struct nvmem_device *nvmem, void *context)
* {
* u8 *mac_addr = ethernet_pdata->mac_addr;
* off_t offset = context;
*
* // Read MAC addr from EEPROM
* if (nvmem_device_read(nvmem, offset, ETH_ALEN, mac_addr) == ETH_ALEN)
* pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr);
* }
*
* This function pointer and context can now be set up in at24_platform_data.
*/
struct at24_platform_data {
u32 byte_len; /* size (sum of all addr) */
u16 page_size; /* for writes */
u8 flags;
#define AT24_FLAG_ADDR16 BIT(7) /* address pointer is 16 bit */
#define AT24_FLAG_READONLY BIT(6) /* sysfs-entry will be read-only */
#define AT24_FLAG_IRUGO BIT(5) /* sysfs-entry will be world-readable */
#define AT24_FLAG_TAKE8ADDR BIT(4) /* take always 8 addresses (24c00) */
#define AT24_FLAG_SERIAL BIT(3) /* factory-programmed serial number */
#define AT24_FLAG_MAC BIT(2) /* factory-programmed mac address */
#define AT24_FLAG_NO_RDROL BIT(1) /* does not auto-rollover reads to */
/* the next slave address */
void (*setup)(struct nvmem_device *nvmem, void *context);
void *context;
};
#endif /* _LINUX_AT24_H */