Hello, Hauke Mehrtens wrote: > The bounds check used the uninitialized variable vaddr, it should use > the given parameter kaddr instead. When using the uninitialized value > the compiler assumed it to be 0 and optimized this function to just > return 0 in all cases. > > This should make the function check the range of the given address and > only do the page map check in case it is in the expected range of > virtual addresses. > > Fixes: 074a1e1167af ("MIPS: Bounds check virt_addr_valid") > Cc: stable@xxxxxxxxxxxxxxx # v4.12+ > Cc: Paul Burton <paul.burton@xxxxxxxx> > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> Applied to mips-fixes. Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paul.burton@xxxxxxxx to report it. ]