diff for duplicates of <1471852859.3746.42.camel@perches.com> diff --git a/a/1.txt b/N1/1.txt index 1120614..2a8ffda 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,9 +2,9 @@ On Mon, 2016-08-22 at 09:24 +0200, Michal Hocko wrote: > On Sat 20-08-16 01:00:17, Joe Perches wrote: > [...] > > -> > static int proc_maps_open(struct inode *inode, struct file *file, -> > const struct seq_operations *ops, int psize) -> > { +> > static int proc_maps_open(struct inode *inode, struct file *file, +> > const struct seq_operations *ops, int psize) +> > { > > - struct proc_maps_private *priv = __seq_open_private(file, ops, psize); > > + struct proc_maps_private *priv; > > + struct mm_struct *mm; @@ -12,10 +12,10 @@ On Mon, 2016-08-22 at 09:24 +0200, Michal Hocko wrote: > > + mm = proc_mem_open(inode, PTRACE_MODE_READ); > > + if (IS_ERR(mm)) > > + return PTR_ERR(mm); -> > +> > > > + priv = __seq_open_private_bufsize(file, ops, psize, -> > + mm && mm->map_count ? -> > + mm->map_count * 0x300 : PAGE_SIZE); +> > + mm && mm->map_count ? +> > + mm->map_count * 0x300 : PAGE_SIZE); > NAK to this! > > Seriously, this just gives any random user access to user @@ -49,9 +49,3 @@ size allocated << 1 and tries again. > changelog and repost. I've tried it, I wish you would. - --- -To unsubscribe, send a message with 'unsubscribe linux-mm' in -the body to majordomo@kvack.org. For more info on Linux MM, -see: http://www.linux-mm.org/ . -Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> diff --git a/a/content_digest b/N1/content_digest index 4445aab..b345b53 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -15,9 +15,9 @@ "> On Sat 20-08-16 01:00:17, Joe Perches wrote:\n" "> [...]\n" "> > \n" - "> > static int proc_maps_open(struct inode *inode, struct file *file,\n" - "> > \t\t\tconst struct seq_operations *ops, int psize)\n" - "> > {\n" + "> > \302\240static int proc_maps_open(struct inode *inode, struct file *file,\n" + "> > \302\240\t\t\tconst struct seq_operations *ops, int psize)\n" + "> > \302\240{\n" "> > -\tstruct proc_maps_private *priv = __seq_open_private(file, ops, psize);\n" "> > +\tstruct proc_maps_private *priv;\n" "> > +\tstruct mm_struct *mm;\n" @@ -25,10 +25,10 @@ "> > +\tmm = proc_mem_open(inode, PTRACE_MODE_READ);\n" "> > +\tif (IS_ERR(mm))\n" "> > +\t\treturn PTR_ERR(mm);\n" - "> > \n" + "> > \302\240\n" "> > +\tpriv = __seq_open_private_bufsize(file, ops, psize,\n" - "> > +\t\t\t\t\t mm && mm->map_count ?\n" - "> > +\t\t\t\t\t mm->map_count * 0x300 : PAGE_SIZE);\n" + "> > +\t\t\t\t\t\302\240\302\240mm && mm->map_count ?\n" + "> > +\t\t\t\t\t\302\240\302\240mm->map_count * 0x300 : PAGE_SIZE);\n" "> NAK to this!\n" ">\n" "> Seriously, this just gives any random user access to user\n" @@ -61,12 +61,6 @@ "> above __seq_open_private_bufsize, re-measure and add the results to the\n" "> changelog and repost.\n" "\n" - "I've tried it, I wish you would.\n" - "\n" - "--\n" - "To unsubscribe, send a message with 'unsubscribe linux-mm' in\n" - "the body to majordomo@kvack.org. For more info on Linux MM,\n" - "see: http://www.linux-mm.org/ .\n" - "Don't email: <a href=mailto:\"dont@kvack.org\"> email@kvack.org </a>" + I've tried it, I wish you would. -c37ee8762205a10d429ab5ccd0b5b54b2b23674511d6f2bc567bf1c722465ebe +e8ea3d712850a07e1df3871f03c9baed4c60976f635a02d6eea3b843f01a9376
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.