dnsmasq: Fix potential dnsmasq crash with TCP
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 6 Jan 2020 15:21:25 +0000 (16:21 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 6 Jan 2020 16:46:00 +0000 (17:46 +0100)
commitf58705b77eb20a3c39b2274168aba06233df2bc8
tree7ebd40a6a46d271364cf7de88f69cb08f86ac606
parent54711e528d03bdbfa4df94d982aac5e70b8f81e5
dnsmasq: Fix potential dnsmasq crash with TCP

This is a backport from the dnsmasq master which should fix a bug which
could cause a crash in dnsmasq.

I saw the following crashes in my log:
[522413.117215] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 2a001450
[522413.124464] epc = 004197f1 in dnsmasq[400000+23000]
[522413.129459] ra  = 004197ef in dnsmasq[400000+23000]
This is happening in blockdata_write() when block->next is
dereferenced, but I am not sure if this is related to this problem or if
this is a different problem. I am unable to reproduce this problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 414d0541381d432e69190f394dfe2a6e8122d6bb)
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/patches/0040-Fix-crash-when-negative-SRV-response-over-TCP-gets-s.patch [new file with mode: 0644]