Comment 24 for bug 1958006

Revision history for this message
You-Sheng Yang (vicamo) wrote :

[ 52.051195] UBSAN: shift-out-of-bounds in /tmp/kernel-vicamo-8789bd62d725-b752/build/drivers/media/pci/intel/ipu6/ipu-resources.c:654:19
[ 52.051199] shift exponent 34 is too large for 32-bit type 'unsigned int'

https://git.launchpad.net/~vicamo/+git/ubuntu-kernel/tree/drivers/media/pci/intel/ipu6/ipu-resources.c?id=1648371a4229949b4ded06a6387332dd5008540d#n654

649 idx = alloc->resources - 1;
650 p = alloc->resource_alloc[idx].pos;
651 bmp = pm.dfm_port_bitmap[id];
652 bmp = bmp << p;
653 a_bmp = pm.dfm_active_port_bitmap[id];
654 a_bmp = a_bmp << p;