On 11/30/26 4:53 AM, Andrew Lunn wrote:
> On Mon, Nov 30, 2026 at 02:55:14AM +0200, Cristian Ciocaltea wrote:
>> aeon_ipc_send_msg() writes the message payload to the shared
>> VEND1_IPC_DATA registers before taking ipc_lock. Two concurrent
>> senders may interleave, so that one overwrites the payload of the
>> other before the corresponding command is issued. The firmware would
>> then execute a command with the wrong arguments.
>>
>> Take ipc_lock before writing the payload, so that filling the data
>> registers and issuing the command happen atomically with respect to
>> other IPC users. The argument checks remain outside the lock.
>
> How theoretical is this? phylib operations are protected by the phylib
> mutex. That should include LEDs.
>
> What is outside of phylib is things like hwmon devices. Does this
> driver have any paths which don't take the phydev mutex?
>
> The patch seems theoretically valid, but does it actually bother
> anybody? If not, net-next.
The driver defines IPC_CMD_TEMP_MON_GET but doesn't use it to support any hwmon
temperature features yet, so I'll move it to net-next.
Thanks,
Cristian