Re: [PATCH] MIPS: Fix bounds check virt_addr_valid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. ]




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux