sst-linux/drivers/hwmon
Tasos Sahanidis ad387704e9 hwmon: (nct6775-core) Fix out of bounds access for NCT679{8,9}
[ Upstream commit 815f80ad20b63830949a77c816e35395d5d55144 ]

pwm_num is set to 7 for these chips, but NCT6776_REG_PWM_MODE and
NCT6776_PWM_MODE_MASK only contain 6 values.

Fix this by adding another 0 to the end of each array.

Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link: https://lore.kernel.org/r/20250312030832.106475-1-tasos@tasossah.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:39 +02:00
..
occ
peci
pmbus hwmon: (pmbus) Initialise page count in pmbus_identify() 2025-03-13 12:53:16 +01:00
abituguru3.c hwmon: (abitguru3) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-09-25 14:22:11 -07:00
abituguru.c
acpi_power_meter.c hwmon: (acpi_power_meter) Fix 4.29 MW bug 2023-12-13 18:39:14 +01:00
ad7314.c hwmon: (ad7314) Validate leading zero bits and return error 2025-03-13 12:53:17 +01:00
ad7414.c
ad7418.c
adc128d818.c hwmon: (adc128d818) Fix underflows seen when writing limit attributes 2024-09-12 11:10:23 +02:00
adcxx.c
adm1021.c
adm1025.c
adm1026.c
adm1029.c
adm1031.c
adm1177.c
adm9240.c
ads7828.c
ads7871.c
adt7x10.c
adt7x10.h
adt7310.c
adt7410.c
adt7411.c
adt7462.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
adt7470.c
adt7475.c hwmon: (adt7475) Fix default duty on fan is disabled 2024-08-03 08:48:54 +02:00
aht10.c
amc6821.c hwmon: (amc6821) add of_match table 2024-04-03 15:19:32 +02:00
applesmc.c
aquacomputer_d5next.c hwmon: (aquacomputer_d5next) Add selective 200ms delay after sending ctrl report 2023-08-30 16:11:10 +02:00
as370-hwmon.c hwmon: (as370-hwmon) Use HWMON_CHANNEL_INFO macro 2022-05-22 11:32:31 -07:00
asb100.c hwmon updates for v6.1 2022-10-04 19:02:54 -07:00
asc7621.c
aspeed-pwm-tacho.c hwmon: (aspeed-pwm-tacho) mutex for tach reading 2024-02-16 19:06:26 +01:00
asus_atk0110.c
asus_wmi_sensors.c
asus-ec-sensors.c hwmon: (asus-ec-sensors) remove VRM temp X570-E GAMING 2024-09-30 16:23:47 +02:00
atxp1.c
axi-fan-control.c hwmon: (axi-fan-control) Fix possible NULL pointer dereference 2023-11-20 11:51:57 +01:00
bt1-pvt.c
bt1-pvt.h
coretemp.c hwmon: (coretemp) Enlarge per package core count limit 2024-03-01 13:26:29 +01:00
corsair-cpro.c hwmon: (corsair-cpro) Protect ccp->wait_input_report with a spinlock 2024-05-17 11:56:12 +02:00
corsair-psu.c hwmon: (corsair-psu) Fix probe when built-in 2024-01-20 11:50:06 +01:00
da9052-hwmon.c
da9055-hwmon.c
dell-smm-hwmon.c
dme1737.c
drivetemp.c
ds620.c
ds1621.c
emc6w201.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
emc1403.c
emc2103.c
emc2305.c
f71805f.c
f71882fg.c hwmon: (f71882fg) prevent possible division by zero 2023-07-19 16:21:19 +02:00
f75375s.c
fam15h_power.c
fschmd.c
ftsteutates.c
g760a.c
g762.c hwmon: use simple i2c probe function 2020-09-23 09:42:39 -07:00
gl518sm.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
gl520sm.c
gpio-fan.c
gsc-hwmon.c hwmon: (gsc-hwmon) fix fan pwm temperature scaling 2023-07-19 16:21:26 +02:00
hih6130.c hwmon: use simple i2c probe function 2020-09-23 09:42:39 -07:00
hwmon-vid.c
hwmon.c
i5k_amb.c hwmon: (i5k_amb, vt8231) Drop uses of pci_read_config_*() return value 2020-08-04 14:24:39 -07:00
i5500_temp.c hwmon: (i5500_temp) fix missing pci_disable_device() 2022-11-20 06:04:16 -08:00
ibmaem.c hwmon: (ibmaem) don't call platform_device_del() if platform_device_add() fails 2022-07-01 11:53:29 -07:00
ibmpex.c
ibmpowernv.c
iio_hwmon.c hwmon: (iio_hwmon) Make use of device properties 2022-09-19 06:17:05 -07:00
ina2xx.c hwmon: replace snprintf in show functions with sysfs_emit 2021-04-20 06:50:14 -07:00
ina209.c
ina238.c
ina3221.c hwmon: (ina3221) return prober error code 2023-03-22 13:33:52 +01:00
intel-m10-bmc-hwmon.c
it87.c
jc42.c hwmon: (jc42) Fix missing unlock on error in jc42_write() 2022-12-31 13:33:06 +01:00
k8temp.c
k10temp.c hwmon: (k10temp) Check return value of amd_smn_read() 2024-09-08 07:53:11 +02:00
Kconfig hwmon: (adt7470) Add missing dependency on REGMAP_I2C 2024-10-17 15:22:24 +02:00
lan966x-hwmon.c
lineage-pem.c
lm63.c
lm70.c
lm73.c
lm75.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
lm75.h
lm77.c
lm78.c
lm80.c
lm83.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
lm85.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
lm87.c
lm90.c
lm92.c
lm93.c
lm95234.c hwmon: (lm95234) Fix underflows seen when writing limit attributes 2024-09-12 11:10:23 +02:00
lm95241.c
lm95245.c
lochnagar-hwmon.c
ltc2945.c hwmon: (ltc2945) Handle error case in ltc2945_value_store 2023-03-10 09:33:20 +01:00
ltc2947-core.c
ltc2947-i2c.c
ltc2947-spi.c
ltc2947.h
ltc2990.c hwmon: replace snprintf in show functions with sysfs_emit 2021-04-20 06:50:14 -07:00
ltc2992.c hwmon: (ltc2992) Fix memory leak in ltc2992_parse_dt() 2024-08-29 17:30:51 +02:00
ltc4151.c hwmon: cleanup non-bool "valid" data fields 2021-10-12 07:22:41 -07:00
ltc4215.c
ltc4222.c hwmon: replace snprintf in show functions with sysfs_emit 2021-04-20 06:50:14 -07:00
ltc4245.c hwmon: use simple i2c probe function 2020-09-23 09:42:39 -07:00
ltc4260.c hwmon: replace snprintf in show functions with sysfs_emit 2021-04-20 06:50:14 -07:00
ltc4261.c
ltq-cputemp.c
Makefile
max127.c hwmon: (max127) Add Maxim MAX127 hardware monitoring driver 2020-12-02 17:42:24 -08:00
max197.c
max1111.c
max1619.c
max1668.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
max6620.c
max6621.c
max6639.c hwmon: (max6639) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-09-25 14:22:12 -07:00
max6642.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
max6650.c
max6697.c hwmon: (max6697) Fix swapped temp{1,8} critical alarms 2024-08-03 08:48:56 +02:00
max16065.c hwmon: (max16065) Fix alarm attributes 2024-10-17 15:20:48 +02:00
max31722.c hwmon: (max31722) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-09-25 14:22:12 -07:00
max31730.c
max31760.c drivers: hwmon: Add max31760 fan speed controller driver 2022-09-20 07:10:58 -07:00
max31790.c
mc13783-adc.c hwmon: (mc13783-adc) Use permission specific SENSOR[_DEVICE]_ATTR variants 2019-02-18 14:23:29 -08:00
mcp3021.c
menf21bmc_hwmon.c
mlxreg-fan.c
mr75203.c hwmon: Make use of devm_clk_get_enabled() 2022-09-25 14:22:11 -07:00
nct6683.c
nct6775-core.c hwmon: (nct6775-core) Fix out of bounds access for NCT679{8,9} 2025-04-10 14:33:39 +02:00
nct6775-i2c.c
nct6775-platform.c
nct6775.h
nct7802.c hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled 2023-08-03 10:24:12 +02:00
nct7904.c
npcm750-pwm-fan.c hwmon: (npcm750-pwm-fan) Remove dev_err() usage after platform_get_irq() 2019-09-03 12:47:17 -07:00
nsa320-hwmon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 408 2019-06-05 17:37:14 +02:00
ntc_thermistor.c hwmon: (ntc_thermistor) Fix the ncpXXxh103 sensor table 2025-03-13 12:53:17 +01:00
nzxt-kraken2.c hwmon: (nzxt-kraken2) Fix error handling path in kraken2_probe() 2023-12-13 18:39:14 +01:00
nzxt-smart2.c hwmon: (nzxt-smart2) add another USB ID 2023-10-10 22:00:37 +02:00
pc87360.c hwmon: (pc87360) Bounds check data->innr usage 2024-08-29 17:30:33 +02:00
pc87427.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
pcf8591.c
powr1220.c
pwm-fan.c
raspberrypi-hwmon.c hwmon: (raspberrypi) Exit immediately in case of error in init 2021-12-26 15:02:06 -08:00
s3c-hwmon.c
sbrmi.c
sbtsi_temp.c
sch56xx-common.c Revert "hwmon: (sch56xx-common) Add automatic module loading on supported devices" 2023-11-20 11:51:58 +01:00
sch56xx-common.h
sch5627.c hwmon: (sch5627) Disallow write access if virtual registers are locked 2023-11-20 11:51:58 +01:00
sch5636.c hwmon: (sch56xx) Autoload modules on platform device creation 2022-02-27 17:03:17 -08:00
scmi-hwmon.c
scpi-hwmon.c hwmon/drivers/core: Switch to new of thermal API 2022-08-17 14:09:39 +02:00
sht3x.c
sht4x.c hwmon: (sht4x) do not overflow clamping operation on 32-bit platforms 2022-09-25 14:22:11 -07:00
sht15.c
sht21.c
shtc1.c hwmon: (shtc1) Fix property misspelling 2024-06-12 11:03:59 +02:00
sis5595.c
sl28cpld-hwmon.c hwmon: (sl28cpld) Fix typo in comment 2022-05-22 11:32:32 -07:00
smm665.c
smsc47b397.c
smsc47m1.c
smsc47m192.c
sparx5-temp.c hwmon: (sparx5) Use devm_clk_get_enabled() helper 2022-09-19 06:17:05 -07:00
stts751.c
sy7636a-hwmon.c
tc74.c
tc654.c hwmon: (tc654) Add thermal_cooling device support 2022-02-27 17:03:18 -08:00
thmc50.c
tmp102.c hwmon: (tmp102) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-09-25 14:22:12 -07:00
tmp103.c
tmp108.c
tmp401.c
tmp421.c hwmon: move from strlcpy with unused retval to strscpy 2022-09-19 06:17:05 -07:00
tmp464.c
tmp513.c hwmon: (tmp513) Fix division of negative numbers 2025-01-23 17:17:10 +01:00
tps23861.c hwmon: (tps23861) Fix reporting of negative temperatures 2024-12-14 19:53:48 +01:00
ultra45_env.c
vexpress-hwmon.c
via686a.c
via-cputemp.c
vt1211.c hwmon: cleanup non-bool "valid" data fields 2021-10-12 07:22:41 -07:00
vt8231.c
w83l785ts.c
w83l786ng.c
w83627ehf.c hwmon: (w83627ehf) Fix underflows seen when writing limit attributes 2024-09-12 11:10:23 +02:00
w83627hf.c
w83773g.c
w83781d.c
w83791d.c hwmon updates for v6.1 2022-10-04 19:02:54 -07:00
w83792d.c
w83793.c
w83795.c
wm831x-hwmon.c
wm8350-hwmon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 271 2019-06-05 17:30:30 +02:00
xgene-hwmon.c hwmon: fix a NULL vs IS_ERR_OR_NULL() check in xgene_hwmon_probe() 2025-03-13 12:53:17 +01:00