Linux-Next Archive on
 help / color / Atom feed
* Coverity: drm_dp_get_adjust_request_post_cursor(): Memory - corruptions
@ 2019-10-28 23:05 coverity-bot
  0 siblings, 0 replies; only message in thread
From: coverity-bot @ 2019-10-28 23:05 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Lyude Paul, Philipp Zabel, Gustavo A. R. Silva, linux-next


This is an experimental automated report about issues detected by Coverity
from a scan of next-20191025 as part of the linux-next weekly scan project:

You're getting this email because you were associated with the identified
lines of code (noted below) that were touched by recent commits:

79465e0ffeb9 ("drm/dp: Add helper to get post-cursor adjustments")

Coverity reported the following:

*** CID 1487366:  Memory - corruptions  (OVERRUN)
/drivers/gpu/drm/drm_dp_helper.c: 127 in drm_dp_get_adjust_request_post_cursor()
121     EXPORT_SYMBOL(drm_dp_get_adjust_request_pre_emphasis);
123     u8 drm_dp_get_adjust_request_post_cursor(const u8 link_status[DP_LINK_STATUS_SIZE],
124     					 unsigned int lane)
125     {
126     	unsigned int offset = DP_ADJUST_REQUEST_POST_CURSOR2;
vvv     CID 1487366:  Memory - corruptions  (OVERRUN)
vvv     Overrunning buffer pointed to by "link_status" of 6 bytes by passing it to a function which accesses it at byte offset 10 using argument "offset" (which evaluates to 524).
127     	u8 value = dp_link_status(link_status, offset);
129     	return (value >> (lane << 1)) & 0x3;
130     }
131     EXPORT_SYMBOL(drm_dp_get_adjust_request_post_cursor);

If this is a false positive, please let us know so we can mark it as
such, or teach the Coverity rules to be smarter. If not, please make
sure fixes get into linux-next. :) For patches fixing this, please

Reported-by: coverity-bot <>
Addresses-Coverity-ID: 1487366 ("Memory - corruptions")
Fixes: 79465e0ffeb9 ("drm/dp: Add helper to get post-cursor adjustments")

Thanks for your attention!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 23:05 Coverity: drm_dp_get_adjust_request_post_cursor(): Memory - corruptions coverity-bot

Linux-Next Archive on

Archives are clonable:
	git clone --mirror linux-next/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-next linux-next/ \
	public-inbox-index linux-next

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone