netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New Coverity defect in BPF verifier
@ 2017-05-22 16:05 Stephen Hemminger
  2017-05-22 16:16 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2017-05-22 16:05 UTC (permalink / raw)
  To: David Miller; +Cc: netdev



Date: Mon, 22 May 2017 04:40:24 -0700
From: scan-admin@coverity.com
To: stephen@networkplumber.org
Subject: New Defects reported by Coverity Scan for Linux


Hi,

Please find the latest report on new defect(s) introduced to Linux found with Coverity Scan.

1 new defect(s) introduced to Linux found with Coverity Scan.
17 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1409762:  Control flow issues  (DEADCODE)
/kernel/bpf/verifier.c: 815 in check_pkt_ptr_alignment()


________________________________________________________________________________________________________
*** CID 1409762:  Control flow issues  (DEADCODE)
/kernel/bpf/verifier.c: 815 in check_pkt_ptr_alignment()
809     	}
810     
811     	/* skb->data is NET_IP_ALIGN-ed, but for strict alignment checking
812     	 * we force this to 2 which is universally what architectures use
813     	 * when they don't set CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS.
814     	 */
>>>     CID 1409762:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression "0" inside this statement: "ip_align = (strict ? 2 : 0);".  
815     	ip_align = strict ? 2 : NET_IP_ALIGN;
816     	if ((ip_align + reg_off + off) % size != 0) {
817     		verbose("misaligned packet access off %d+%d+%d size %d\n",
818     			ip_align, reg_off, off, size);
819     		return -EACCES;
820     	}

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

* Re: New Coverity defect in BPF verifier
  2017-05-22 16:05 New Coverity defect in BPF verifier Stephen Hemminger
@ 2017-05-22 16:16 ` David Miller
  2017-05-22 17:26   ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2017-05-22 16:16 UTC (permalink / raw)
  To: stephen; +Cc: netdev


Stephen, if you had even lightly scanned netdev today, you can see
that we are discussing this already and there are at least two
patches proposed.

Thank you.

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

* Re: New Coverity defect in BPF verifier
  2017-05-22 16:16 ` David Miller
@ 2017-05-22 17:26   ` Stephen Hemminger
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2017-05-22 17:26 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

On Mon, 22 May 2017 12:16:04 -0400 (EDT)
David Miller <davem@davemloft.net> wrote:

> Stephen, if you had even lightly scanned netdev today, you can see
> that we are discussing this already and there are at least two
> patches proposed.
> 
> Thank you.

Sorry hadn't gotten that far. Doing full scan of 100's of messages
a day is not always possible.

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

end of thread, other threads:[~2017-05-22 17:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22 16:05 New Coverity defect in BPF verifier Stephen Hemminger
2017-05-22 16:16 ` David Miller
2017-05-22 17:26   ` Stephen Hemminger

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).