Bug 477607 - mkfontscale produces syscalls with EINVAL
Summary: mkfontscale produces syscalls with EINVAL
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: freetype
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-22 12:02 UTC by Steve Grubb
Modified: 2008-12-22 17:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-22 17:47:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch fixing problems described herein (606 bytes, patch)
2008-12-22 12:02 UTC, Steve Grubb
no flags Details | Diff

Description Steve Grubb 2008-12-22 12:02:52 UTC
Created attachment 327635 [details]
patch fixing problems described herein

Description of problem:
The mkfontscale program uses the freetype library. Our IDS work shows that the freetype library causes mmap syscalls with EINVAL return codes. This is because its not checking the length of the file before calling mmap. If the file is opened readonly and the length is 0, the kernel does not like it.


How reproducible:
always

Steps to Reproduce:
1. add to audit rules: -a always,exit -S mmap -F exit=-ENIVAL -k einval
2. reboot system
3. ausearch --start recent -k einval

Comment 1 Behdad Esfahbod 2008-12-22 17:47:53 UTC
Reported upstream:
http://savannah.nongnu.org/bugs/?25151


Note You need to log in before you can comment on or make changes to this bug.