vcsm: Treat EBUSY as success rather than SIGBUS
authorpopcornmix <popcornmix@gmail.com>
Tue, 2 May 2017 15:36:05 +0000 (16:36 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:11 +0000 (15:54 +0100)
commitff7721467a7c8a1fd1b1790e66e8bafd907bdc30
tree27dad70ff1a38db558579f54a61ba16f76e5b8b8
parent9c32f95eb6a8421e08a68988fca3cb613200320b
vcsm: Treat EBUSY as success rather than SIGBUS

Currently if two cores access the same page concurrently one will return VM_FAULT_NOPAGE
and the other VM_FAULT_SIGBUS crashing the user code.

Also report when mapping fails.

Signed-off-by: popcornmix <popcornmix@gmail.com>
drivers/char/broadcom/vc_sm/vmcs_sm.c