NetBSD Problem Report #55852
From www@netbsd.org Tue Dec 8 23:55:25 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9EFD21A9217
for <gnats-bugs@gnats.NetBSD.org>; Tue, 8 Dec 2020 23:55:25 +0000 (UTC)
Message-Id: <20201208235524.9202C1A9239@mollari.NetBSD.org>
Date: Tue, 8 Dec 2020 23:55:24 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: Need to audit selnotify() call sites for adherence to NOTE_SUBMIT locking contract
X-Send-Pr-Version: www-1.0
>Number: 55852
>Category: kern
>Synopsis: Need to audit selnotify() call sites for adherence to NOTE_SUBMIT locking contract
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 09 00:00:00 +0000 2020
>Originator: Jason Thorpe
>Release: NetBSD 9.99.77
>Organization:
RISCy Business
>Environment:
NetBSD 9.99.77
>Description:
Through observation, I have notices several selnotify() call sites that do not correctly adhere to the NOTE_SUBMIT locking protocol. It is critical for non-KERNEL_LOCK users of selnotify() to correctly adhere to the NOTE_SUBMIT locking contract, otherwise corruption of selinfo::sel_klist can occur.
This PR tracks that an audit of these call sites is needed.
>How-To-Repeat:
N/A
>Fix:
N/A
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.