On Sun, Dec 01, 2024 at 03:03:41AM +0200, Dafna Hirschfeld wrote: > The error ENOSPC is translated in vmf_error to VM_FAULT_SIGBUS which is > further translated in EFAULT in i.e. pin/get_user_pages. > But when running out of pages/hugepages we expect to see ENOMEM and > not EFAULT. Do we? ENOSPC is for media full, and since memory is the medium, ENOSPC seems entirely appropriate to me. It's been this way since 2008, so any change should be done with due care and attention to what else we might break.