You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by Marcin Miroslaw and fixed in FreeBSD. We just need to review this change and make sure it's right for Linux before merging it in.
When calculating space needed for SA_BONUS buffers, hdrsize is always rounded
up to next 8-aligned boundary. However, in two places the round up was done
against sum of 'total' plus hdrsize. On the other hand, hdrsize increments by 4 each
time, which means in certain conditions, we would end up returning with
will_spill == 0 and (total + hdrsize) larger than full_space, leading to a failed
assertion because it's invalid for dmu_set_bonus.
Fix by: Xin Li
Sponsored by: iXsystems, Inc.
The kmem_vasprintf(), kmem_vsprintf(), kobj_open_file(), and vn_openat()
functions should all use the kmem_flags_convert() function to generate
the GFP_* flags. This ensures that they can be safely called in any
context and the correct flags will be used.
Signed-off-by: Brian Behlendorf <[email protected]>
Closesopenzfs#426
sdimitro
pushed a commit
to sdimitro/zfs
that referenced
this issue
May 23, 2022
Reported by Marcin Miroslaw and fixed in FreeBSD. We just need to review this change and make sure it's right for Linux before merging it in.
The text was updated successfully, but these errors were encountered: