Closed Bug 1640963 Opened 6 years ago Closed 6 years ago

Set NSS_PKCS_2_0_COMPAT for ESR68

Categories

(Core :: Security: PSM, enhancement, P1)

All
Linux
enhancement

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr68 - wontfix

People

(Reporter: jcj, Assigned: jcj)

References

(Blocks 1 open bug)

Details

(Whiteboard: [psm-assigned][nss])

Attachments

(2 obsolete files)

[Tracking Requested - why for this release]:

We added NSS_PKCS_2_0_COMPAT to NSS 3.52 to enable fallbacks for struct changes. ESR68 won't use the new PKCS3 structs, so it should really set this compiler flag to avoid runtime incompatibility if used with a newer-than-specified NSS release (newer than NSS 3.44 which ships with ESR).

Just adding DEFINES['NSS_PKCS_2_0_COMPAT'] = True to security/moz.build isn't sufficient, it looks like we might need to add a flag to the gyp configuration that can be toggled.

When does NSS 3.52 ship? We're already in the middle of RC week for the 68.9esr release.

Flags: needinfo?(jjones)

It shipped 1 May 2020. https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.52_release_notes

I'm not sure how common it is for distros to use newer NSS than the one we define for ESR, but it brought up Bug 1637488..

Worst case scenario if we don't do this, we have to write some documentation recommending people use NSS 3.44.4 for ESR 68.x and not a later NSS.

I'll check in with Kevin on the reviews though.

Flags: needinfo?(jjones)

Mmm, these patches wouldn't actually solve the issue anyway, because if they're using a system NSS, then it's already built. In my defense, it was late last night when I fashioned these.

Kevin, do we have any options left that are compatible for NSS 3.44 and 3.53? A #define in PSM or something?

Flags: needinfo?(kjacobs.bugzilla)

Given where we are in the current cycle (and absent any complaining about it over the past few weeks), I think we should stick with "Don't do that" guidance for now. I'm open to taking a patch for the 68.10 release shipping in late June if we think it's needed, though.

(In reply to J.C. Jones [:jcj] (he/him) [increased latency due to COVID-19] from comment #6)

Mmm, these patches wouldn't actually solve the issue anyway, because if they're using a system NSS, then it's already built. In my defense, it was late last night when I fashioned these.

Kevin, do we have any options left that are compatible for NSS 3.44 and 3.53? A #define in PSM or something?

I think #define NSS_PKCS11_2_0_COMPAT 1 somewhere near each non-NSS include of struct CK_GCM_PARAMSwould work, but I'm curious if we can't just use the same approach as https://searchfox.org/mozilla-central/source/third_party/prio/moz.build#49? As long as the define is present when we pull in the headers, we should be good.

Flags: needinfo?(kjacobs.bugzilla)
Attachment #9151974 - Attachment is obsolete: true
Attachment #9151975 - Attachment is obsolete: true

Given the short life of ESR 68 past this point, let's call this WONTFIX for now and if things warrant it, we can reopen for 68.10

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: