Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-linus-6.11-1' of https://github.com/cminyard/linux-ipmi

Pull IPMI updates from Corey Minyard:
"Some cleanups for device changes coming, and some range checks on data
coming from a host to a BMC"

* tag 'for-linus-6.11-1' of https://github.com/cminyard/linux-ipmi:
ipmi: Drop explicit initialization of struct i2c_device_id::driver_data to 0
ipmi: ssif_bmc: prevent integer overflow on 32bit systems

+11 -9
+2 -2
drivers/char/ipmi/ipmb_dev_int.c
··· 350 350 } 351 351 352 352 static const struct i2c_device_id ipmb_id[] = { 353 - { "ipmb-dev", 0 }, 354 - {}, 353 + { "ipmb-dev" }, 354 + {} 355 355 }; 356 356 MODULE_DEVICE_TABLE(i2c, ipmb_id); 357 357
+2 -2
drivers/char/ipmi/ipmi_ipmb.c
··· 561 561 #endif 562 562 563 563 static const struct i2c_device_id ipmi_ipmb_id[] = { 564 - { DEVICE_NAME, 0 }, 565 - {}, 564 + { DEVICE_NAME }, 565 + {} 566 566 }; 567 567 MODULE_DEVICE_TABLE(i2c, ipmi_ipmb_id); 568 568
+1 -1
drivers/char/ipmi/ipmi_ssif.c
··· 2049 2049 #endif 2050 2050 2051 2051 static const struct i2c_device_id ssif_id[] = { 2052 - { DEVICE_NAME, 0 }, 2052 + { DEVICE_NAME }, 2053 2053 { } 2054 2054 }; 2055 2055 MODULE_DEVICE_TABLE(i2c, ssif_id);
+6 -4
drivers/char/ipmi/ssif_bmc.c
··· 177 177 unsigned long flags; 178 178 ssize_t ret; 179 179 180 - if (count > sizeof(struct ipmi_ssif_msg)) 180 + if (count < sizeof(msg.len) || 181 + count > sizeof(struct ipmi_ssif_msg)) 181 182 return -EINVAL; 182 183 183 184 if (copy_from_user(&msg, buf, count)) 184 185 return -EFAULT; 185 186 186 - if (!msg.len || count < sizeof_field(struct ipmi_ssif_msg, len) + msg.len) 187 + if (!msg.len || msg.len > IPMI_SSIF_PAYLOAD_MAX || 188 + count < sizeof_field(struct ipmi_ssif_msg, len) + msg.len) 187 189 return -EINVAL; 188 190 189 191 spin_lock_irqsave(&ssif_bmc->lock, flags); ··· 852 850 MODULE_DEVICE_TABLE(of, ssif_bmc_match); 853 851 854 852 static const struct i2c_device_id ssif_bmc_id[] = { 855 - { DEVICE_NAME, 0 }, 856 - { }, 853 + { DEVICE_NAME }, 854 + { } 857 855 }; 858 856 MODULE_DEVICE_TABLE(i2c, ssif_bmc_id); 859 857