diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-08-13 17:03:49 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-08-13 18:21:51 +0200 |
| commit | 9895573b0185f922be4cf500a0f2e5b9560ab1c3 (patch) | |
| tree | 411205260dbc8885180c4bac6e1adb13240809f7 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4cc25cdd3cffa475edb8dec8199b3227038ebcfb (diff) | |
ALSA: hda/intel: Add sanity check for BAR0 size
The recent reports from syzkaller showed that we can bind any wild PCI
device to HD-audio controller, and if PCI BAR of the device is too
small, it may lead to a crash, as the driver believes as if the full
register range were accessible.
For avoiding such a problem, add a safeguard before the actual probe
to check the available BAR0 size.
Note that the threshold (0x200) is chosen to cover all needed
registers at probing. But this doesn't mean that it would cover fully
for all features including the extended ones.
Reported-by: syzbot+10cd2d1efe8eeb604bee@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=10cd2d1efe8eeb604bee
Reported-by: syzbot+5ebe7cd17e48b4293660@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=5ebe7cd17e48b4293660
Link: https://patch.msgid.link/20260813150354.763502-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
