[PATCH AUTOSEL for 4.4 040/101] IB/mlx4: Change vma from shared to private

2018-03-07 Thread Sasha Levin
From: Maor Gottlieb [ Upstream commit ca37a664a8e4e9988b220988ceb4d79e3316f195 ] Anonymous VMA (->vm_ops == NULL) cannot be shared, otherwise it would lead to SIGBUS. Remove the shared flags from the vma after we change it to be anonymous. This is easily reproduced by

[PATCH AUTOSEL for 4.4 040/101] IB/mlx4: Change vma from shared to private

2018-03-07 Thread Sasha Levin
From: Maor Gottlieb [ Upstream commit ca37a664a8e4e9988b220988ceb4d79e3316f195 ] Anonymous VMA (->vm_ops == NULL) cannot be shared, otherwise it would lead to SIGBUS. Remove the shared flags from the vma after we change it to be anonymous. This is easily reproduced by doing modprobe -r while