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();
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
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
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
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
_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
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.
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.
_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
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
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
11 matches
Mail list logo