🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6700

F_RSETLK vs. F_SETLK puzzle resolved -- it is a kernel bug.

#6700
From: Eric Ho
Date: Thu, 24 Jan 1991 17:01
15 lines
1265 bytes
OK, I've been told (and after carefully re-read fcntl(2)) that F_RSETLK is
used by lockd only.  The man pages DIDN'T WARN ordinary users/applications
NOT to use this flag however.

Nevertheless, at the very least, the kernel shouldn't panic and in fact
the kernel (or better barf from libc.a) should barf when this flag is
used.

Well, I guess that it is now all up to Sun to plug this hole.  As of now,
any ordinary users can just write several lines of code and bingo,
crashing the system (all s/he needs to do is to find a nfs-mounted
file/directory that s/he can get to and nobody can stop him/her).

+ Eric Ho                          Email: eric@sbi.com
+ Salomon Brothers, Inc.  [SISS]   Phone: (212) 855-3003
Technical Details
Message-ID: <1449@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: eric@picard.sbi.com (Eric Ho)
Newsgroups: comp.sys.sun
Subject: F_RSETLK vs. F_SETLK puzzle resolved -- it is a kernel bug.
Keywords: SunOS
Message-ID: <1449@brchh104.bnr.ca>
Date: 24 Jan 91 17:01:04 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 15
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 10, Issue 31, message 1
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu