dnsmasq: Fix potential dnsmasq crash with TCP
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 6 Jan 2020 15:21:25 +0000 (16:21 +0100)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 16 Jan 2020 17:26:27 +0000 (12:26 -0500)
commit250290dde6ea9b765f46a9d80bcab8f159feafdb
treed101b27710443e6f3e35cfd38bb7c30f992dfd9d
parent83ee7c5fc488b58ebe2af1655aa1a87750a44c9c
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]