Closed
Bug 119214
Opened 24 years ago
Closed 24 years ago
crash enabling FIPS mode in NSS 3.4
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.4
People
(Reporter: bugz, Assigned: rrelyea)
Details
(Whiteboard: Add new test)
Attachments
(3 files, 2 obsolete files)
|
2.01 KB,
text/plain
|
Details | |
|
4.55 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.05 KB,
text/plain
|
Details |
I was playing with David's test code from bug 119059, and modified it to switch
back and forth between FIPS mode. After disabling FIPS (causing a load of the
softoken), a call to PK11_GetInternalKeySlot() will crash because the internal
module only has one slot.
| Reporter | ||
Comment 1•24 years ago
|
||
run program once to enable FIPS, then again to disable, crash.
| Reporter | ||
Comment 2•24 years ago
|
||
I'm including this patch here, which is part of what is needed to get FIPS
working. It does not fix the crash, however. The crash happens completely
outside of Stan code. When the internal SECMODModule is loaded, it only has
one slot.
Updated•24 years ago
|
Whiteboard: Add new test
Updated•24 years ago
|
Priority: -- → P1
Target Milestone: --- → 3.4
| Assignee | ||
Comment 4•24 years ago
|
||
The only way GetInternalKeySlot will try to reference a second slot is if
mod->isFIPS is False.
(follows is the relevent code from PK11_GetInternalKeySlot)
return PK11_ReferenceSlot(mod->isFIPS ? mod->slots[0] : mod->slots[1]);
So this can only crash if mod->slots[0] is invalid, or mod->isFIPS is
incorrectly set). I'll take a look at which.
bob
| Assignee | ||
Comment 5•24 years ago
|
||
Fix checked in to tip
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 6•24 years ago
|
||
First in the series of test programs that will go into
mozilla/nss/security/cmd/tests.
Since this already has a test program written, good candidate to try out the
build procedure. I will start attaching the other test programs for review for
checkin after the makefiles, etc. for this are approved.
Attaching makefile, and manifest file for review. Also attaching slightly
modified testfile.
The idea for the makefiles is that there will be one Makefile for the cmd/tests
directory, and each new test program will just be added to it.
this is the manifest file
Comment 7•24 years ago
|
||
attaching the makefile
Comment 8•24 years ago
|
||
Attaching previously written test program, slightly modified
Comment 10•24 years ago
|
||
Comment on attachment 83102 [details]
manifest file
Marking this attachment obsolete as duplicated in bug 144316, where Wan-Teh has
the right manifest file.
Attachment #83102 -
Attachment is obsolete: true
Comment 11•24 years ago
|
||
Comment on attachment 83103 [details]
makefile
Marking this attachment obsolete as duplicate of bug 144316, where Wan-Teh has
the right Makefile
Attachment #83103 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•