Skip to contentSkip to conversation

Patch "staging: greybus: uart: Fix atomicity violation in get_serial_info()" has been added to the 6.12-stable tree

DISCUSSION Johan Hovold 2 participants 2 messages Dec 2, 2024 – Dec 3, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Sasha,

Quoted 31 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

staging: greybus: uart: Fix atomicity violation in get_serial_info()

to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
staging-greybus-uart-fix-atomicity-violation-in-get_.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 61937fd741031632e0a1337553e51b754748ca0d

Author: Qiu-ji Chen <[email protected]>
Date:   Thu Nov 7 19:33:37 2024 +0800

staging: greybus: uart: Fix atomicity violation in get_serial_info()

[ Upstream commit fe0ebeafc3b723b2f8edf27ecec6d353b08397df ]

Our static checker found a bug where set_serial_info() uses a mutex, but get_serial_info() does not. Fortunately, the impact of this is relatively minor. It doesn't cause a crash or any other serious issues. However, if a race condition occurs between set_serial_info() and get_serial_info(), there is a chance that the data returned by get_serial_info() will be meaningless.

Quoted 8 lines

The CC stable tag was omitted on purpose here so please drop this one and any dependencies from all stable queues.

Johan

#2 lore raw
Quoted 43 lines · Johan Hovold

Hi Sasha,

Quoted 31 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

staging: greybus: uart: Fix atomicity violation in get_serial_info()

to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
staging-greybus-uart-fix-atomicity-violation-in-get_.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 61937fd741031632e0a1337553e51b754748ca0d

Author: Qiu-ji Chen <[email protected]>
Date:   Thu Nov 7 19:33:37 2024 +0800

staging: greybus: uart: Fix atomicity violation in get_serial_info()

[ Upstream commit fe0ebeafc3b723b2f8edf27ecec6d353b08397df ]

Our static checker found a bug where set_serial_info() uses a mutex, but get_serial_info() does not. Fortunately, the impact of this is relatively minor. It doesn't cause a crash or any other serious issues. However, if a race condition occurs between set_serial_info() and get_serial_info(), there is a chance that the data returned by get_serial_info() will be meaningless.

Quoted 8 lines
Quoted 2 lines

The CC stable tag was omitted on purpose here so please drop this one and any dependencies from all stable queues.

Now dropped from all queues, thanks.

greg k-h