Re: [kernfs] e19dfdc83b: BUG:KASAN:global-out-of-bounds_in_s

2019-03-26 Thread Ondrej Mosnacek
On Mon, Mar 25, 2019 at 6:06 PM Ondrej Mosnacek wrote: > On Mon, Mar 25, 2019 at 4:17 PM Paul Moore wrote: > > Ondrej, please look into this. > > > > You've looked at this code more recently than I have, but it looks > > like there might be an issue with __kernfs_iattrs() returning a > > pointer

Re: [kernfs] e19dfdc83b: BUG:KASAN:global-out-of-bounds_in_s

2019-03-25 Thread Ondrej Mosnacek
On Mon, Mar 25, 2019 at 4:17 PM Paul Moore wrote: > Ondrej, please look into this. > > You've looked at this code more recently than I have, but it looks > like there might be an issue with __kernfs_iattrs() returning a > pointer to a kernfs_iattrs object without taking a kernfs reference > (kernf

Re: [kernfs] e19dfdc83b: BUG:KASAN:global-out-of-bounds_in_s

2019-03-25 Thread Paul Moore
Ondrej, please look into this. You've looked at this code more recently than I have, but it looks like there might be an issue with __kernfs_iattrs() returning a pointer to a kernfs_iattrs object without taking a kernfs reference (kernfs_get(kn)). Although I would be a little surprised if this wa