struct dirent related hooks incorrectly bound to those from glibc directly

Bug #1596772 reported by You-Sheng Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
In Progress
Critical
Unassigned
libhybris
Fix Committed
Critical
Simon Fels

Bug Description

Android Bionic defines struct dirent to utilize 64 bit d_ino/d_off fields in all architectures, which is not the case in glibc. Current statuses of calls related to struct dirent are:

  * readdir, readdir_r: hooked with special care to d_ino/d_off fields
  * scandir, scandir64: hooked directly to glibc calls
  * readdir64 (5.0+), readdir64_r (5.0+), alphasort, alphasort64: not hooked
  * scandirat (n-preview+), scandirat64 (n-preview+): not hooked

So some calls are commonly available starting at least from AOSP 4.4 but are either not hooked or hooked direct to glibc calls. readdir is one of the them that causes segmentation fault in Midori.

See: https://wiki.canonical.com/PES/Engineering/Premium/PhoneArticles/PhoneBringUpSteps/CheckHybrisWorkable

You-Sheng Yang (vicamo)
description: updated
Simon Fels (morphis)
Changed in libhybris:
importance: Undecided → Critical
assignee: nobody → Simon Fels (morphis)
status: New → In Progress
Revision history for this message
Bin Li (binli) wrote :
Revision history for this message
Bin Li (binli) wrote :

I made a new MP for the libhybris-maintainer's branch.

https://code.launchpad.net/~binli/libhybris/+git/libhybris/+merge/298514

Changed in canonical-devices-system-image:
status: New → In Progress
Simon Fels (morphis)
Changed in libhybris:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
milestone: none → 13
importance: Undecided → Critical
assignee: nobody → John McAleely (john.mcaleely)
Changed in canonical-devices-system-image:
milestone: 13 → x1
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.