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:44:22 +0000 (17:44 +0100)
commit414d0541381d432e69190f394dfe2a6e8122d6bb
treed08fe2fe013d82436fb8ba66ab805c79b27b05be
parent99dd2709b855baa9e68c7c7106743a7c4a91ee0c
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>
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]