[PATCH 1/3] Fix a misaligned load inside ptrace_attach()

2015-04-30 Thread Palmer Dabbelt
The misaligned load exception arises when running ptrace_attach() on the RISC-V (which hasn't been upstreamed yet). The problem is that wait_on_bit() takes a void* but then proceeds to call test_bit(), which takes a long*. This allows an int-aligned pointer to be passed to test_bit(), which

[PATCH 1/3] Fix a misaligned load inside ptrace_attach()

2015-04-30 Thread Palmer Dabbelt
The misaligned load exception arises when running ptrace_attach() on the RISC-V (which hasn't been upstreamed yet). The problem is that wait_on_bit() takes a void* but then proceeds to call test_bit(), which takes a long*. This allows an int-aligned pointer to be passed to test_bit(), which