| Summary: | sys-kernel/hardened-sources-4.8.17-r2: PAX: size overflow detected in function mwifiex_alloc_dma_align_buf ./include/linux/skbuff.h:2009 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | René Korthaus <rk> |
| Component: | Hardened | Assignee: | The Gentoo Linux Hardened Team <hardened> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | pageexec, spender |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
dmesg output
kernel config |
||
|
Description
René Korthaus
2017-02-16 10:26:47 UTC
Created attachment 463914 [details]
dmesg output
Created attachment 463916 [details]
kernel config
Okay passing this upstream. note we've moved to 4.9 in the meantime however the following workaround should apply to 4.8 too. can you test it please?
--- a/drivers/net/wireless/marvell/mwifiex/util.c 2016-12-13 12:11:36.927700689 +0100
+++ b/drivers/net/wireless/marvell/mwifiex/util.c 2017-02-16 16:47:48.362832854 +0100
@@ -751,7 +751,7 @@
void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags)
{
struct sk_buff *skb;
- int buf_len, pad;
+ long buf_len, pad;
buf_len = rx_len + MWIFIEX_RX_HEADROOM + MWIFIEX_DMA_ALIGN_SZ;
Patch works fine on 4.8.17-hardened-r2. Thank you. |