Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17248

Improve ASAN memory pool instrumentation

Details

    Description

      Inside alloc_root() TRASH_ALLOC() unpoisons already aligned size. And f.ex. in case when 6 bytes are requested from MEM_ROOT 8 bytes will be unpoisoned and accessing 1 or 2 bytes after memory block won't be catched by ASAN.

      Attachments

        Issue Links

          Activity

            kevg Eugene Kosov (Inactive) created issue -
            kevg Eugene Kosov (Inactive) made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            kevg Eugene Kosov (Inactive) made changes -
            Summary Improve Valgrind/ASAN memory pool instrumentation Improve ASAN memory pool instrumentation
            kevg Eugene Kosov (Inactive) made changes -
            Description Inside {{alloc_root()}} {{TRASH_ALLOC()}} unpoisons already aligned size. And f.ex. in case when 6 bytes are requested from {{MEM_ROOT}} 8 bytes will be unpoisoned and accessing 1 or 2 bytes after memory block won't be catched by Valgrind/ASAN. Inside {{alloc_root()}} {{TRASH_ALLOC()}} unpoisons already aligned size. And f.ex. in case when 6 bytes are requested from {{MEM_ROOT}} 8 bytes will be unpoisoned and accessing 1 or 2 bytes after memory block won't be catched by ASAN.
            kevg Eugene Kosov (Inactive) made changes -
            Assignee Eugene Kosov [ kevg ] Marko Mäkelä [ marko ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            marko Marko Mäkelä made changes -
            issue.field.resolutiondate 2018-09-21 11:47:32.0 2018-09-21 11:47:32.579
            marko Marko Mäkelä made changes -
            Component/s Debug [ 14208 ]
            Fix Version/s 5.5.62 [ 22915 ]
            Fix Version/s 10.0.37 [ 22917 ]
            Fix Version/s 10.2.18 [ 23112 ]
            Fix Version/s 10.3.10 [ 23140 ]
            Fix Version/s 10.1.37 [ 23204 ]
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 5.5 [ 15800 ]
            Fix Version/s 10.0 [ 16000 ]
            Fix Version/s 10.1 [ 16100 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            Assignee Marko Mäkelä [ marko ] Eugene Kosov [ kevg ]
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]
            marko Marko Mäkelä made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 89678 ] MariaDB v4 [ 133682 ]

            People

              kevg Eugene Kosov (Inactive)
              kevg Eugene Kosov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.