[Bug 273207] pf_syncookie_mac for IPv6 random cause panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 19 Aug 2023 01:17:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273207

--- Comment #13 from Rin Cat <dev@rincat.ch> ---
(kgdb) frame 9
#9  0xffffffff804b6ce9 in SipBuf (ctx=ctx@entry=0xfffffe00c5fc38b8,
src=src@entry=0xfffffe00c5fc3880, len=len@entry=2, final=2, final@entry=0) at
/usr/src/sys/crypto/siphash/siphash.c:103


(kgdb) p ctx
$1 = (SIPHASH_CTX *) 0xfffffe00c5fc38b8
(kgdb) p *ctx
$2 = {v = {12591897065586319223, 3410300342546510073, 4381067403221538949,
14075035438097627711}, buf = {b64 = 0, b8 = "\000\000\000\000\000\000\000"},
bytes = 34, buflen = 0 '\000', rounds_compr = 2 '\002', rounds_final = 4
'\004', initialized = 2 '\002'}
(kgdb) p src
$3 = (const uint8_t **) 0xfffffe00c5fc3880
(kgdb) p *src
$4 = (const uint8_t *) 0x0
(kgdb) p **src
Cannot access memory at address 0x0
(kgdb) p len
$5 = 2
(kgdb) p final
$6 = 2
(kgdb) p x
$7 = 2
(kgdb) p ctx->buf.b64
$8 = 0
(kgdb) p &ctx->buf.b8
$9 = (uint8_t (*)[8]) 0xfffffe00c5fc38d8
(kgdb) p ctx->buf.b8
$10 = "\000\000\000\000\000\000\000"
(kgdb) p ctx->buflen
$11 = 0 '\000'
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.