]> git.baikalelectronics.ru Git - kernel.git/commit
amt: use READ_ONCE() in amt module
authorTaehee Yoo <ap420073@gmail.com>
Sun, 17 Jul 2022 16:09:05 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Jul 2022 10:37:02 +0000 (12:37 +0200)
commitc08d6d15350d1bed42039750472145231bd638be
tree737f628a1b97aa91a61be68c10865d9b454ca384
parent64d687cf9d21d69b3b5ef756189369b3025d0e06
amt: use READ_ONCE() in amt module

There are some data races in the amt module.
amt->ready4, amt->ready6, and amt->status can be accessed concurrently
without locks.
So, it uses READ_ONCE() and WRITE_ONCE().

Fixes: 19284cc854b3 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/amt.c