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();

arm: why set MIN_GAP to 128M size

2016-11-06 Thread Chenjie (K)
Hi everyone arm: /* gap between mmap and stack */ #define MIN_GAP (128*1024*1024UL) The min_gap is 128M, in the mmap_base function unsigned long gap = rlimit(RLIMIT_STACK); if (gap < MIN_GAP) gap = MIN_GAP; else if (gap > MAX_GAP) gap = MAX_GAP; I can not use the

arm: why set MIN_GAP to 128M size

2016-11-06 Thread Chenjie (K)
Hi everyone arm: /* gap between mmap and stack */ #define MIN_GAP (128*1024*1024UL) The min_gap is 128M, in the mmap_base function unsigned long gap = rlimit(RLIMIT_STACK); if (gap < MIN_GAP) gap = MIN_GAP; else if (gap > MAX_GAP) gap = MAX_GAP; I can not use the

Re: [PATCH] memory:bugxfix panic on cat or write /dev/kmem

2016-06-24 Thread Chenjie (K)
On 2016/6/23 20:42, Michal Hocko wrote: On Fri 24-06-16 01:30:10, chenj...@huawei.com wrote: From: chenjie cat /dev/kmem and echo > /dev/kmem will lead panic Writing to /dev/kmem without being extremely careful is a disaster AFAIK and even reading from the file can

Re: [PATCH] memory:bugxfix panic on cat or write /dev/kmem

2016-06-24 Thread Chenjie (K)
On 2016/6/23 20:42, Michal Hocko wrote: On Fri 24-06-16 01:30:10, chenj...@huawei.com wrote: From: chenjie cat /dev/kmem and echo > /dev/kmem will lead panic Writing to /dev/kmem without being extremely careful is a disaster AFAIK and even reading from the file can lead to unexpected

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
_write+0x238/0x494) from [] (do_sync_write+0x74/0x98) [] (do_sync_write+0x74/0x98) from [] (vfs_write+0xcc/0x1a8) [] (vfs_write+0xcc/0x1a8) from [] (SyS_write+0x38/0x64) [] (SyS_write+0x38/0x64) from [] (ret_fast_syscall+0x0/0x60) [RSM][SIG]init(pid:9134|tid:9134) deliver SIG[9]. [RSM][SIG]init

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
r/sbin/sshd : nrpages = 226. /usr/bin/ssh : nrpages = 202. /usr/lib/libbfd-2.23.2.so : nrpages = 195. /volatile/log/syslog : nrpages = 192. /volatile/log/kern.log : nrpages = 186. /lib/libm-2.18.so : nrpages = 173. /volatile/log/error : nrpages = 162.

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
r/sbin/sshd : nrpages = 226. /usr/bin/ssh : nrpages = 202. /usr/lib/libbfd-2.23.2.so : nrpages = 195. /volatile/log/syslog : nrpages = 192. /volatile/log/kern.log : nrpages = 186. /lib/libm-2.18.so : nrpages = 173. /volatile/log/error : nrpages = 162.

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
_write+0x238/0x494) from [] (do_sync_write+0x74/0x98) [] (do_sync_write+0x74/0x98) from [] (vfs_write+0xcc/0x1a8) [] (vfs_write+0xcc/0x1a8) from [] (SyS_write+0x38/0x64) [] (SyS_write+0x38/0x64) from [] (ret_fast_syscall+0x0/0x60) [RSM][SIG]init(pid:9134|tid:9134) deliver SIG[9]. [RSM][SIG]init

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Chenjie (K)
My kernel version is 3.10 ,but the 4.3 is the same and the newest code is for_each_process(p) { if (!process_shares_mm(p, mm)) continue; if (same_thread_group(p, victim)) continue; if

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Chenjie (K)
My kernel version is 3.10 ,but the 4.3 is the same and the newest code is for_each_process(p) { if (!process_shares_mm(p, mm)) continue; if (same_thread_group(p, victim)) continue; if