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

People

(Reporter: bugz, Assigned: rrelyea)

Details

(Whiteboard: Add new test)

Attachments

(3 files, 2 obsolete files)

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.
Attached file test program
run program once to enable FIPS, then again to disable, crash.
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.
Whiteboard: Add new test
Sounds like a bug I need to look at.
Assignee: wtc → relyea
Priority: -- → P1
Target Milestone: --- → 3.4
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
Fix checked in to tip
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Attached file manifest file (obsolete) —
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
Attached file makefile (obsolete) —
attaching the makefile
Attached file test file
Attaching previously written test program, slightly modified
changed QA contact to myself
QA Contact: sonja.mirtitsch → bishakhabanerjee
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 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.

Attachment

General

Creator:
Created:
Updated:
Size: