Re: [PATCH] iio: gyro: bmg160: bail out when bandwidth/filter is not in table

From: Jonathan Cameron

Date: Sat May 16 2026 - 06:45:35 EST


On Wed, 13 May 2026 13:12:51 +0500
Stepan Ionichev <sozdayvek@xxxxxxxxx> wrote:

> Fixes: 22b46c45fb9b ("iio:gyro:bmg160 Gyro Sensor driver")
>
> The set_filter() path is reachable from userspace via the
> sysfs in_anglvel_filter_low_pass_3db_frequency interface, so
> userspace can trivially trigger the out-of-bounds read with a
> value that is not in bmg160_samp_freq_table[].filter.

Thanks. Applied with both the fixes tag and that extra bit of analysis
added. Also marked for stable inclusion.

Jonathan

>
> Stepan