patchdmidecode - Patches: patch #10202, Fix SIGSEGV caused by negative...


You are not allowed to post comments on this tracker with your current authentication level.

patch #10202: Fix SIGSEGV caused by negative mmoffset in 32bit system

Submitter:  liuchang <dreamtale90>
Submitted:  Thu 21 Apr 2022 10:13:48 AM UTC
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  khali Open/Closed:  Open

Mon 11 Dec 2023 02:26:18 PM UTC, comment #1: 

I am not able to reproduce the problem. I have an old Thinkpad laptop where the DMI table is located at 0xDAE9C000, which would be a negative number if 32-bit and signed, so I thought it would trigger the bug you reported. However dmidecode works just fine on it. I tried removing -D_FILE_OFFSET_BITS=64 from CFLAGS to force off_t to be a signed 32-bit type, but even that does not lead to a SIGSEGV for me. The only bug from that change is that dmidecode will report the table at 0xFFFFFFFFDAE9C000 instead (which is incorrect, but harmless).

Can you provide more details about how to reproduce the bug?

Jean Delvare <khali>
Group administrator
Thu 21 Apr 2022 10:13:48 AM UTC, original submission:  

On an x86_32 bit user environment, I found that in mem_chunk function, if base is a very high address(base is a signed number), a negative mmoffset will be obtained here, which will lead to subsequent crashes. I dealt with the problem. Please refer to the attachment.

liuchang <dreamtale90>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by khali (Posted a comment)
  • -email is unavailable- added by dreamtale90 (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-11 khali Assigned toNone khali
    2022-04-21 dreamtale90 Attached File- Added 0001-Fix-SIGSEGV-caused-by-negative-mmoffset-in-32bit-sys.patch, #53124

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code