Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next/50x/20220531/v2 #7453

Merged
merged 7 commits into from
Jun 1, 2022

Conversation

victorjulien
Copy link
Member

#7449 with a rustdoc fixup

victorjulien and others added 7 commits May 24, 2022 09:40
Since GCC 12 the memcmp code using `_mm_blendv_epi8` failed to work.
Inspection of the disassembled objects suggests that it simply omits
the instruction on systems that are not AVX512 capable. On AVX512
it does replace it with VPCMPB logic that appears to work.

Luckily our use of blend is actually uncessary. A simple AND is sufficient.

Bug: OISF#5312.
(cherry picked from commit 87c5d69)
cppcheck:

src/util-memcmp.h:281:18: warning: Identical condition 'len-offset<16', second condition is always false [identicalConditionAfterEarlyExit]
        if (diff < 16) {
                 ^
src/util-memcmp.h:280:24: note: 'diff' is assigned value 'len-offset' here.
        int diff = len - offset;
                       ^
src/util-memcmp.h:269:33: note: If condition 'len-offset<16' is true, the function will return/exit
        if (likely(len - offset < 16)) {
                                ^
src/util-memcmp.h:281:18: note: Testing identical condition 'len-offset<16'
        if (diff < 16) {
                 ^
src/util-memcmp.h:344:18: warning: Identical condition 'len-offset<16', second condition is always false [identicalConditionAfterEarlyExit]
        if (diff < 16) {
                 ^
src/util-memcmp.h:343:24: note: 'diff' is assigned value 'len-offset' here.
        int diff = len - offset;
                       ^
src/util-memcmp.h:318:33: note: If condition 'len-offset<16' is true, the function will return/exit
        if (likely(len - offset < 16)) {
                                ^
src/util-memcmp.h:344:18: note: Testing identical condition 'len-offset<16'
        if (diff < 16) {
                 ^
src/util-memcmp.h:171:18: warning: Identical condition 'len-offset<16', second condition is always false [identicalConditionAfterEarlyExit]
        if (diff < 16) {
                 ^
src/util-memcmp.h:170:24: note: 'diff' is assigned value 'len-offset' here.
        int diff = len - offset;
                       ^
src/util-memcmp.h:159:33: note: If condition 'len-offset<16' is true, the function will return/exit
        if (likely(len - offset < 16)) {
                                ^
src/util-memcmp.h:171:18: note: Testing identical condition 'len-offset<16'
        if (diff < 16) {
                 ^
src/util-memcmp.h:233:18: warning: Identical condition 'len-offset<16', second condition is always false [identicalConditionAfterEarlyExit]
        if (diff < 16) {
                 ^
src/util-memcmp.h:232:24: note: 'diff' is assigned value 'len-offset' here.
        int diff = len - offset;
                       ^
src/util-memcmp.h:208:33: note: If condition 'len-offset<16' is true, the function will return/exit
        if (likely(len - offset < 16)) {
                                ^
src/util-memcmp.h:233:18: note: Testing identical condition 'len-offset<16'
        if (diff < 16) {
                 ^

(cherry picked from commit ca97ed4)
Rust generates warnings that are treated as errors for documentation
blocks before `extern` blocks.

(cherry picked from commit 6ccc01a)
@victorjulien victorjulien requested review from jasonish and a team as code owners May 31, 2022 16:00
@suricata-qa
Copy link

ERROR:

ERROR: QA failed on tlpw1_files_sha256.

ERROR: QA failed on tlpr1_alerts_cmp.

Pipeline 7615

@victorjulien victorjulien merged commit 720f84e into OISF:master-5.0.x Jun 1, 2022
@victorjulien victorjulien deleted the next/50x/20220531/v2 branch July 17, 2023 11:57
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Dec 23, 2024
ldap.request.operation matches on Lightweight Directory Access Protocol request operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 6, 2025
ldap.request.operation matches on Lightweight Directory Access Protocol request operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 6, 2025
ldap.request.operation matches on Lightweight Directory Access Protocol request operations
ldap.responses.operation matches on Lightweight Directory Access Protocol response operations
Both are unsigned 8-bit integer
Don't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 17, 2025
ldap.request.operation matches on Lightweight Directory Access Protocol request operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 17, 2025
ldap.responses.operation matches on Lightweight Directory Access Protocol response operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 17, 2025
ldap.responses.count matches on the number of LDAP responses
It is an unsigned 32-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 20, 2025
ldap.request.operation matches on Lightweight Directory Access Protocol request operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 20, 2025
ldap.responses.operation matches on Lightweight Directory Access Protocol response operations
It is an unsigned 8-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
AkakiAlice added a commit to AkakiAlice/suricata that referenced this pull request Jan 20, 2025
ldap.responses.count matches on the number of LDAP responses
It is an unsigned 32-bit integer
Doesn't support prefiltering

Ticket: OISF#7453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants