In the Linux kernel, the following vulnerability has been resolved:
venus: pm_helpers: Fix warning in OPP during probe
Fix the following WARN triggered during Venus driver probe on 5.19.0-rc8-next-20220728:
WARNING: CPU: 7 PID: 339 at drivers/opp/core.c:2471 devpmoppsetconfig+0x49c/0x610 Modules linked in: qcomspmiadc5 rtcpm8xxx qcomspmiadctm5 ledsqcomlpg ledclassmulticolor qcompon qcomvadccommon venuscore(+) qcomspmitempalarm v4l2mem2mem videobuf2v4l2 msm(+) videobuf2common crct10difce spigeniqcom sndsocsm8250 i2cqcomgeni gpusched sndsocqcomcommon videodev qcomq6v5pas soundwireqcom drmdpauxbus qcomstats drmdisplayhelper qcompilinfo soundwirebus sndsoclpassvamacro mc qcomq6v5 phyqcomsnpsfemtov2 qcomrng sndsoclpassmacrocommon sndsoclpasswsamacro lpassgfmsm8250 slimbus qcomsysmon qcomcommon qcomglinksmem qmihelpers qcomwdt mdtloader socinfo iccosml3 displayconnector drmkmshelper qnocsm8250 drm fuse iptables xtables ipv6 CPU: 7 PID: 339 Comm: systemd-udevd Not tainted 5.19.0-rc8-next-20220728 #4 Hardware name: Qualcomm Technologies, Inc. Robotics RB5 (DT) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : devpmoppsetconfig+0x49c/0x610 lr : devpmoppsetconfig+0x58/0x610 sp : ffff8000093c3710 x29: ffff8000093c3710 x28: ffffbca3959d82b8 x27: ffff8000093c3d00 x26: ffffbca3959d8e08 x25: ffff4396cac98118 x24: ffff4396c0e24810 x23: ffff4396c4272c40 x22: ffff4396c0e24810 x21: ffff8000093c3810 x20: ffff4396cac36800 x19: ffff4396cac96800 x18: 0000000000000000 x17: 0000000000000003 x16: ffffbca3f4edf198 x15: 0000001cba64a858 x14: 0000000000000180 x13: 000000000000017e x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000000a60 x9 : ffff8000093c35c0 x8 : ffff4396c4273700 x7 : ffff43983efca6c0 x6 : ffff43983efca640 x5 : 00000000410fd0d0 x4 : ffff4396c4272c40 x3 : ffffbca3f5d1e008 x2 : 0000000000000000 x1 : ffff4396c2421600 x0 : ffff4396cac96860 Call trace: devpmoppsetconfig+0x49c/0x610 devmpmoppsetconfig+0x18/0x70 vcodecdomainsget+0xb8/0x1638 [venuscore] coregetv4+0x1d8/0x218 [venuscore] venusprobe+0xf4/0x468 [venuscore] platformprobe+0x68/0xd8 reallyprobe+0xbc/0x2a8 _driverprobedevice+0x78/0xe0 driverprobedevice+0x3c/0xf0 _driverattach+0x70/0x120 busforeachdev+0x70/0xc0 driverattach+0x24/0x30 busadddriver+0x150/0x200 driverregister+0x64/0x120 _platformdriverregister+0x28/0x38 qcomvenusdriverinit+0x24/0x1000 [venuscore] dooneinitcall+0x54/0x1c8 doinitmodule+0x44/0x1d0 loadmodule+0x16c8/0x1aa0 _dosysfinitmodule+0xbc/0x110 _arm64sysfinitmodule+0x20/0x30 invokesyscall+0x44/0x108 el0svccommon.constprop.0+0xcc/0xf0 doel0svc+0x2c/0xb8 el0svc+0x2c/0x88 el0t64synchandler+0xb8/0xc0 el0t64_sync+0x18c/0x190 qcom-venus: probe of aa00000.video-codec failed with error -16
The fix is re-ordering the code related to OPP core. The OPP core expects all configuration options to be provided before the OPP table is added.