Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105935
b: refs/heads/master
c: 24d5288
h: refs/heads/master
i:
  105933: 077c22f
  105931: abca492
  105927: 3cde35a
  105919: 5a10c77
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 25, 2008
1 parent 4c35ded commit 35f0841
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15b9f360c0316c06d37c09b02d85565edbaf9dd3
refs/heads/master: 24d5288f06ed8b3a368eba967d587cdb012dfdf7
6 changes: 6 additions & 0 deletions trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,9 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
rcu_read_lock();
do_each_thread(g, p)
if (p->mm == dump_task->mm) {
if (p->flags & PF_KTHREAD)
continue;

t = kzalloc(offsetof(struct elf_thread_core_info,
notes[info->thread_notes]),
GFP_ATOMIC);
Expand Down Expand Up @@ -1724,6 +1727,9 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
rcu_read_lock();
do_each_thread(g, p)
if (current->mm == p->mm && current != p) {
if (p->flags & PF_KTHREAD)
continue;

ets = kzalloc(sizeof(*ets), GFP_ATOMIC);
if (!ets) {
rcu_read_unlock();
Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/binfmt_elf_fdpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,9 @@ static int elf_fdpic_core_dump(long signr, struct pt_regs *regs,
rcu_read_lock();
do_each_thread(g,p)
if (current->mm == p->mm && current != p) {
if (p->flags & PF_KTHREAD)
continue;

tmp = kzalloc(sizeof(*tmp), GFP_ATOMIC);
if (!tmp) {
rcu_read_unlock();
Expand Down

0 comments on commit 35f0841

Please sign in to comment.