Kernel code is unreachable from user space.

This commit is contained in:
Bartosz Taudul 2021-06-15 21:29:25 +02:00
parent f1bf663160
commit 48fe6550a6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -6201,7 +6201,7 @@ void Worker::ProcessSymbolInformation( const QueueSymbolInformation& ev )
sd.size.SetVal( it->second.size );
m_data.symbolMap.emplace( ev.symAddr, std::move( sd ) );
if( m_codeTransfer && it->second.size > 0 && it->second.size <= 128*1024 )
if( m_codeTransfer && it->second.size > 0 && it->second.size <= 128*1024 && ( ev.symAddr >> 63 ) == 0 )
{
assert( m_pendingSymbolCode.find( ev.symAddr ) == m_pendingSymbolCode.end() );
m_pendingSymbolCode.emplace( ev.symAddr );