* A potential bug in drivers/tty/serial/jsm/jsm.ko
@ 2016-09-05 9:11 Pavel Andrianov
0 siblings, 0 replies; only message in thread
From: Pavel Andrianov @ 2016-09-05 9:11 UTC (permalink / raw)
To: Gabriel Krisman Bertazi
Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel,
Vaishali Thakkar, ldv-project
Hi!
There is a potential bug in drivers/tty/serial/jsm/jsm.ko.
In neo_parse_isr, line 764 a field ch->ch_flags is updated under
spinlock protection. In neo_copy_data_from_uart_to_queue the same values
are written to the field without any protection, as the function is
always called without locks.
Should the same lock be used in these cases?
--
Pavel Andrianov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org
e-mail: andrianov@ispras.ru
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-05 9:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05 9:11 A potential bug in drivers/tty/serial/jsm/jsm.ko Pavel Andrianov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).