Re: Problem: overflow in fs/jfs/jfs_imap.c

Dave Kleikamp <[email protected]>
Newsgroups gmane.comp.file-systems.jfs.general
Message-ID <[email protected]>
On 03/07/2016 03:40 PM, [email protected] wrote:
> Hi Dave,
> 
> Moving from kernel 4.1.7 to 4.4.2 for me resulted in an overflow in
> function diMount in fs/jfs/jfs_imap.c
> 
> When mounting a JFS partition, PAX notes the following:
> 'PAX: size overflow detected in function diMount fs/jfs/jfs_imap.c:143
> cicus.289_68 max, count: 23, decl: inofree; num: 0; context: iagctl;'
> 
> I got this on a Gentoo with gcc version 4.8.5 (Gentoo Hardened 4.8.5
> p1.3, pie-0.6.2) (see also [1]). Someone else seems to also have bumped
> into this, as reported here [2].
> 
> If there is anything I can do to help, please let me know.

[2] indicates that the problem is an incompatibility between the signed
structure members and their __le32 on-disk counterparts, since __le32 is
defined as unsigned. The simplest solution would be to make all of them
unsigned. I've responded to [2] to ask advice, since I'm not familiar
with PAX.

> 
> Kind regards,
> Sam
> 
> [1] https://bugs.gentoo.org/show_bug.cgi?id=576628
> [2] https://forums.grsecurity.net/viewtopic.php?f=3&t=4398

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.