aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2019-04-22 15:16:04 +0000
committerGreg Kroah-Hartman <[email protected]>2019-04-25 09:11:41 +0000
commitc114944d7d67f24e71562fcfc18d550ab787e4d4 (patch)
tree04f2d076bcc3f9a00ebf3395bfb90e21cc5eaf31 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentUSB: yurex: Fix protection fault after device removal (diff)
downloadkernel-c114944d7d67f24e71562fcfc18d550ab787e4d4.tar.gz
kernel-c114944d7d67f24e71562fcfc18d550ab787e4d4.zip
USB: w1 ds2490: Fix bug caused by improper use of altsetting array
The syzkaller USB fuzzer spotted a slab-out-of-bounds bug in the ds2490 driver. This bug is caused by improper use of the altsetting array in the usb_interface structure (the array's entries are not always stored in numerical order), combined with a naive assumption that all interfaces probed by the driver will have the expected number of altsettings. The bug can be fixed by replacing references to the possibly non-existent intf->altsetting[alt] entry with the guaranteed-to-exist intf->cur_altsetting entry. Signed-off-by: Alan Stern <[email protected]> Reported-and-tested-by: [email protected] CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions