bsnmp: drop messages with an unsupported SNMP version
snmp_pdu_decode_header() returned SNMP_CODE_BADENC for an unknown
version. snmp_input_start() treats BADENC as a bad value in a SET and
carries on, so its version check, which runs only for SNMP_CODE_OK, was
skipped. The message then reached snmp_pdu_auth_access(), which with
snmp_vacm loaded switched on pdu->version and called abort() for
SNMP_Verr. A single unauthenticated packet could stop bsnmpd.
Return SNMP_CODE_BADVERS instead, as bsnmplib(3) documents, so the
message is counted in snmpInBadVersions and dropped. Remove the
mapping in snmp_pdu_decode() that tried to do this but was never
reached, and have snmp_pdu_auth_access() deny an unknown version
rather than abort.
Reported by: Hila Cohen, Apiiro (hillalee on github)
Reviewed by: harti
MFC after: 3 days
(cherry picked from commit 72d7d152c2ff4708928ae1f94b940b5528ba5013)
bsnmp: drop messages with an unsupported SNMP version
snmp_pdu_decode_header() returned SNMP_CODE_BADENC for an unknown
version. snmp_input_start() treats BADENC as a bad value in a SET and
carries on, so its version check, which runs only for SNMP_CODE_OK, was
skipped. The message then reached snmp_pdu_auth_access(), which with
snmp_vacm loaded switched on pdu->version and called abort() for
SNMP_Verr. A single unauthenticated packet could stop bsnmpd.
Return SNMP_CODE_BADVERS instead, as bsnmplib(3) documents, so the
message is counted in snmpInBadVersions and dropped. Remove the
mapping in snmp_pdu_decode() that tried to do this but was never
reached, and have snmp_pdu_auth_access() deny an unknown version
rather than abort.
Reported by: Hila Cohen, Apiiro (hillalee on github)
Reviewed by: harti
MFC after: 3 days
(cherry picked from commit 72d7d152c2ff4708928ae1f94b940b5528ba5013)
[CIR][OpenMP] Fix critical region cleanups at -O2 (#236140)
A local in a `critical` body broke CIR verification at -O2. Emit its
cleanups before `omp.terminator`, using a new `omp::CriticalOp` body
builderEmit the body inside an omp.critical region
[IVDescriptors] Allow non-compare conditions in any-of selects (#236420)
`isAnyOfPattern` only matched `select(cmp, phi, inv)`. Since #204927,
InstCombine turns `zext(and(trunc nuw %flag, %c))` into `select(%c,
%flag, 0)`. A bool flag kept as i8 and updated with `flag &= (x >= a) &
(x <= b)` then becomes `select(and(cmp, cmp), %flag, 0)`, and the loop
is no longer vectorized. LLVM 22 vectorized it as an and reduction.
The vectorizer only uses the condition as a mask, so it can be any i1
value, including one defined outside the loop. It can't be part of the
reduction chain, since the vectorizer replaces the chain and the
condition would become poison. A compare is the exception: the
vectorizer rewrites a compare of the reduction phi to compare the start
value. AddReductionVar checks this once the reduction walk is done.
The first commit adds the tests, so the second shows the change in
output.
Reported in https://github.com/JuliaLang/julia/issues/64384, where the
[2 lines not shown]
[MLIR] Include <unordered_map> in LevelZero runtime wrapper (#247290)
The file uses std::unordered_map but included <unordered_set> instead.
Follow up to review comment on #243623.
[VectorCombine] Make TryEarlyFoldsOnly parameter printable and parseable (#247180)
Print the option in `-print-pipeline-passes` and parse in
`-passes='vector-combine<early-folds-only>'`.