Re: [PATCH] futex:fix robust futex alignment exception

2019-03-18 Thread Chenjie (K)
The test case: #include #include #include #include #include int main() { char *p = malloc(128); struct robust_list_head *ro1; struct robust_list *entry; struct robust_list *pending; int ret = 0; pid_t pid = getpid(); print

Re: [PATCH] futex:fix robust futex alignment exception

2019-03-18 Thread Peter Zijlstra
On Sun, Mar 17, 2019 at 03:36:35PM +0100, Thomas Gleixner wrote: > On Fri, 15 Mar 2019, Peter Zijlstra wrote: > > That is; why aren't there any alignment tests anywhere? Or am I just > > gone blind? > > uaddrs for the futex syscalls are checked in get_futex_key(). blind it is... Thanks!

Re: [PATCH] futex:fix robust futex alignment exception

2019-03-17 Thread Thomas Gleixner
On Fri, 15 Mar 2019, Peter Zijlstra wrote: > On Fri, Mar 15, 2019 at 03:44:38AM +, chenj...@huawei.com wrote: > > From: chen jie > > > [11542.215247] [] (cmpxchg_futex_value_locked) from [] > > (handle_futex_death+0x78/0xcc) > > [11542.215259] [] (handle_futex_death) from [] > > (exit_robu

Re: [PATCH] futex:fix robust futex alignment exception

2019-03-15 Thread Peter Zijlstra
On Fri, Mar 15, 2019 at 03:44:38AM +, chenj...@huawei.com wrote: > From: chen jie > [11542.215247] [] (cmpxchg_futex_value_locked) from [] > (handle_futex_death+0x78/0xcc) > [11542.215259] [] (handle_futex_death) from [] > (exit_robust_list+0x104/0x160) > [11542.215273] [] (exit_robust_list

[PATCH] futex:fix robust futex alignment exception

2019-03-14 Thread chenjie6
From: chen jie trinity test bug fix: /tmp/trinity --children 4 --quiet -N 1000 --logging=off -X -x perf_event_open --enable-fds=testfile [1542.195981] Task track: trinity-c3(6911)>trinity-main(28313)>sh(839)>bash(824)>sshd(820)>sshd(662)>init(1) [11542.214694] Alignment trap: not handling