linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove useless assignment in do_blockdev_direct_IO
@ 2018-02-22 17:11 C0deAi
  2018-02-22 17:40 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: C0deAi @ 2018-02-22 17:11 UTC (permalink / raw)
  To: viro, linux-fsdevel

Hi my name is Benjamin Bales.

I am the founder and creator of CodeAI,
the first non-human contributor to your software project. CodeAI finds
and fixes security defects for you. It fixed 327. It wants to merge a
fix for a useless assignment. To view all 327 fixed issues from the
run claim your free open source account at mycode.ai and the
Dockerfile used to build and run your project in CodeAI, here-
https://drive.google.com/drive/folders/1KB9WQQyWQgYccmiSjy2E1JWJ4vWuoLYd
.
It is always free for open source projects.

If you have any questions about these results or have general
inquiries about CodeAI, please send an email to techsupport@mycode.ai

Signed-off-by: Benjamin Bales <techsupport@mycode.ai>
---
 fs/direct-io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/direct-io.c b/fs/direct-io.c
index a0ca9e4..700fd8f 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -1301,7 +1301,6 @@ do_blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
 	if (!(dio->flags & DIO_SKIP_DIO_COUNT))
 		inode_dio_begin(inode);
 
-	retval = 0;
 	sdio.blkbits = blkbits;
 	sdio.blkfactor = i_blkbits - blkbits;
 	sdio.block_in_file = offset >> blkbits;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Remove useless assignment in do_blockdev_direct_IO
  2018-02-22 17:11 [PATCH] Remove useless assignment in do_blockdev_direct_IO C0deAi
@ 2018-02-22 17:40 ` Al Viro
  2018-02-27 16:55   ` Code AI
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2018-02-22 17:40 UTC (permalink / raw)
  To: C0deAi; +Cc: linux-fsdevel

On Thu, Feb 22, 2018 at 12:11:53PM -0500, C0deAi wrote:
> Hi my name is Benjamin Bales.
> 
> I am the founder and creator of CodeAI,
> the first non-human contributor to your software project.

Assuming that your average checkpatch.pl wanker doesn't qualify, you mean?

> CodeAI finds
> and fixes security defects for you. It fixed 327. It wants to merge a
> fix for a useless assignment.

Which is not a security defect by any stretch of imagination.  Incidentally,
any compiler is going to be capable of detecting and removing that...

It's -><- this close to spamming links to one's project/community/social
shmedia webshite/whatnot.  Complete with "if you want to see how good it is,
sign up for free account", even...

You might want to tone that down.  If it's really a bot posting (and not
a human-curated output of a script[1]), it's very close to the "banned
as a spambot" territory.

[1] in which case there would be arseloads of prior art, going back to at
least 2004 or so - and that's the ones I know about.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Remove useless assignment in do_blockdev_direct_IO
  2018-02-22 17:40 ` Al Viro
@ 2018-02-27 16:55   ` Code AI
  0 siblings, 0 replies; 3+ messages in thread
From: Code AI @ 2018-02-27 16:55 UTC (permalink / raw)
  To: Al Viro; +Cc: linux-fsdevel

Hi Al,

While this patch was generated by a machine (CodeAI), we manually
reviewed and submitted it to this mailing list.  I do apologize for
the marketing speech.  We'll try to tone that down.  You are correct
in saying this isn't really a security defect.  It's more of a code
quality issue.  Perhaps we should be more specific in our defect
classification by stating that CodeAI finds and fixes CWEs (common
weakness enumeration defects).  This issue corresponds to CWE 563
"Assignment to Variable without Use".

-Ben

On Thu, Feb 22, 2018 at 12:40 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> On Thu, Feb 22, 2018 at 12:11:53PM -0500, C0deAi wrote:
>> Hi my name is Benjamin Bales.
>>
>> I am the founder and creator of CodeAI,
>> the first non-human contributor to your software project.
>
> Assuming that your average checkpatch.pl wanker doesn't qualify, you mean?
>
>> CodeAI finds
>> and fixes security defects for you. It fixed 327. It wants to merge a
>> fix for a useless assignment.
>
> Which is not a security defect by any stretch of imagination.  Incidentally,
> any compiler is going to be capable of detecting and removing that...
>
> It's -><- this close to spamming links to one's project/community/social
> shmedia webshite/whatnot.  Complete with "if you want to see how good it is,
> sign up for free account", even...
>
> You might want to tone that down.  If it's really a bot posting (and not
> a human-curated output of a script[1]), it's very close to the "banned
> as a spambot" territory.
>
> [1] in which case there would be arseloads of prior art, going back to at
> least 2004 or so - and that's the ones I know about.



-- 
Sincerely,

CodeAI Tech Support Team

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-27 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-22 17:11 [PATCH] Remove useless assignment in do_blockdev_direct_IO C0deAi
2018-02-22 17:40 ` Al Viro
2018-02-27 16:55   ` Code AI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).