Date: Sat, 30 Jan 2016 18:26:18 +0330 From: mokhi <mokhi64@gmail.com> To: freebsd-current <freebsd-ports@freebsd.org> Subject: thread-unsafety problems as spl*() ones are NOP Message-ID: <CAByVWPW=eWSUWMfUV1nocxGmkCv6N%2Bd2kzYRH735XT0th_Y9_w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi. in kbd.c there are many places spltty()/splx() used assuming it locks/unlocks. though there is bug filed for this, and ive asked in #bsddev, Ive preferred to ask and ensure it from here again. As these functions are obsoleted now, this assumption is incorrect and some places we have thread-unsafely which leads to security problems (and/or for example double-free, etc) can i use mutex/spin/lock/unlock under where assumed a lock/unlock by using spltty()/splx() to patch it? Thanks, Mokhi.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAByVWPW=eWSUWMfUV1nocxGmkCv6N%2Bd2kzYRH735XT0th_Y9_w>