[lkml]   [2018]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Slab out of bounds in setxattr

Looking at the crash some more, it seems that if value_len > PAGE_SIZE
then e_buf->max_size is rounded up nearest page size [1]. If a new
attribute is added with value_len < e_buf->max_size - EA_SIZE(ea) then
no new space is allocated for the attiribute list [2] and this
triggers the KASAN slab out of bounds error. This is the case in the C
repro I provided.


On Fri, Jun 1, 2018 at 1:52 PM, shankarapailoor
<> wrote:
> Hi Dave et al,
> I have been fuzzing linux 4.17-rc4 with JFS using Syzkaller KASAN:
> slab-out-of-bounds in jfs_xattr.
> Attached are my kernel configs and a C reproducer. In the first
> setxattr call it appears that length is much larger than the name. In
> __jfs_setxattr, I don't see where the length is checked against the
> actual value length.
> Regards,
> Shankara Pailoor

Shankara Pailoor

 \ /
  Last update: 2018-06-02 06:08    [W:0.043 / U:4.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site