diff for duplicates of <878tz22peb.fsf@gmail.com> diff --git a/a/1.txt b/N1/1.txt index e434751..34a8fc1 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -70,8 +70,3 @@ I'll send patches addressing the above two issues. >> fail("cover mmap failed"); >> >> And it's the mmap() that fails with -ENODEV. - --------------- next part -------------- -An embedded and charset-unspecified text was scrubbed... -Name: debugfs_unsupp_fops.cocci -URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20160522/23b3ce79/attachment.ksh> diff --git a/N1/2.hdr b/N1/2.hdr new file mode 100644 index 0000000..82c379f --- /dev/null +++ b/N1/2.hdr @@ -0,0 +1,2 @@ +Content-Type: text/plain +Content-Disposition: inline; filename=debugfs_unsupp_fops.cocci diff --git a/N1/2.txt b/N1/2.txt new file mode 100644 index 0000000..8134ac1 --- /dev/null +++ b/N1/2.txt @@ -0,0 +1,30 @@ +virtual report +virtual org + +@unsupp_fops@ +identifier fops; +expression e; +identifier m != {owner, open, release, llseek, read, write, poll, unlocked_ioctl}; +@@ +struct file_operations fops = { + .m = e, +}; + +@unsupp_debugfs_fops@ +expression name, mode, parent, data; +identifier unsupp_fops.fops; +position p; +@@ +debugfs_create_file@p(name, mode, parent, data, &fops) + + + +@script:python depends on report@ +p << unsupp_debugfs_fops.p; +@@ +coccilib.report.print_report(p[0], "unsupported file_operations given to debugfs") + +@script:python depends on org@ +p << unsupp_debugfs_fops.p; +@@ +cocci.print_main("unsupported file_operations given to debugfs", p) diff --git a/a/content_digest b/N1/content_digest index 329b8bb..7614ddc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -6,11 +6,25 @@ "ref\020160518160520.GA5407@kroah.com\0" "ref\0573F4200.3080208@oracle.com\0" "ref\0874m9rcmzx.fsf@gmail.com\0" - "From\0nicstange@gmail.com (Nicolai Stange)\0" - "Subject\0[Cocci] [PATCH v6 2/8] debugfs: prevent access to removed files' private data\0" + "From\0Nicolai Stange <nicstange@gmail.com>\0" + "Subject\0Re: [PATCH v6 2/8] debugfs: prevent access to removed files' private data\0" "Date\0Sun, 22 May 2016 15:28:12 +0200\0" - "To\0cocci@systeme.lip6.fr\0" - "\00:1\0" + "To\0Sasha Levin <sasha.levin@oracle.com>\0" + "Cc\0Nicolai Stange <nicstange@gmail.com>" + Greg Kroah-Hartman <gregkh@linuxfoundation.org> + Rasmus Villemoes <linux@rasmusvillemoes.dk> + Paul E. McKenney <paulmck@linux.vnet.ibm.com> + Alexander Viro <viro@zeniv.linux.org.uk> + Jonathan Corbet <corbet@lwn.net> + Jan Kara <jack@suse.com> + Andrew Morton <akpm@linux-foundation.org> + Julia Lawall <Julia.Lawall@lip6.fr> + Gilles Muller <Gilles.Muller@lip6.fr> + Nicolas Palix <nicolas.palix@imag.fr> + Michal Marek <mmarek@suse.com> + linux-kernel@vger.kernel.org + " cocci@systeme.lip6.fr\0" + "\01:1\0" "b\0" "Nicolai Stange <nicstange@gmail.com> writes:\n" "\n" @@ -83,11 +97,39 @@ ">> \tif ((void*)th->cover_data == MAP_FAILED)\n" ">> \t\tfail(\"cover mmap failed\");\n" ">>\n" - ">> And it's the mmap() that fails with -ENODEV.\n" + >> And it's the mmap() that fails with -ENODEV. + "\01:2\0" + "fn\0debugfs_unsupp_fops.cocci\0" + "b\0" + "virtual report\n" + "virtual org\n" + "\n" + "@unsupp_fops@\n" + "identifier fops;\n" + "expression e;\n" + "identifier m != {owner, open, release, llseek, read, write, poll, unlocked_ioctl};\n" + "@@\n" + "struct file_operations fops = {\n" + " .m = e,\n" + "};\n" + "\n" + "@unsupp_debugfs_fops@\n" + "expression name, mode, parent, data;\n" + "identifier unsupp_fops.fops;\n" + "position p;\n" + "@@\n" + "debugfs_create_file@p(name, mode, parent, data, &fops)\n" + "\n" + "\n" + "\n" + "@script:python depends on report@\n" + "p << unsupp_debugfs_fops.p;\n" + "@@\n" + "coccilib.report.print_report(p[0], \"unsupported file_operations given to debugfs\")\n" "\n" - "-------------- next part --------------\n" - "An embedded and charset-unspecified text was scrubbed...\n" - "Name: debugfs_unsupp_fops.cocci\n" - URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20160522/23b3ce79/attachment.ksh> + "@script:python depends on org@\n" + "p << unsupp_debugfs_fops.p;\n" + "@@\n" + "cocci.print_main(\"unsupported file_operations given to debugfs\", p)" -acfb847f8f5fca75705348ceae2a27aa950a209e1266de4ad758952508dc3468 +6337021baeb09cb2d69296d90486608533b8cda0098ff38fbd904642ef5e72db
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.