Re: [PATCH net] gtp: fix an use-before-init in gtp_newlink()

2020-10-25 Thread Masahiro Fujiwara
Hi, Thanks for the review. Will send a new patch with the fixes soon. Fujiwara On Mon, Oct 26, 2020 at 6:05 AM Jakub Kicinski wrote: > > On Sat, 24 Oct 2020 15:42:33 + Masahiro Fujiwara wrote: > > *_pdp_find() from gtp_encap_recv() would trigger a crash when a peer > > sends GTP packet

Re: [PATCH net] gtp: fix an use-before-init in gtp_newlink()

2020-10-25 Thread Jakub Kicinski
On Sat, 24 Oct 2020 15:42:33 + Masahiro Fujiwara wrote: > *_pdp_find() from gtp_encap_recv() would trigger a crash when a peer > sends GTP packets while creating new GTP device. > > RIP: 0010:gtp1_pdp_find.isra.0+0x68/0x90 [gtp] > > Call Trace: > > gtp_encap_recv+0xc2/0x2e0 [gtp] > ? gtp1

[PATCH net] gtp: fix an use-before-init in gtp_newlink()

2020-10-25 Thread Masahiro Fujiwara
*_pdp_find() from gtp_encap_recv() would trigger a crash when a peer sends GTP packets while creating new GTP device. RIP: 0010:gtp1_pdp_find.isra.0+0x68/0x90 [gtp] Call Trace: gtp_encap_recv+0xc2/0x2e0 [gtp] ? gtp1_pdp_find.isra.0+0x90/0x90 [gtp] udp_queue_rcv_one_skb+0x1fe/0x530 udp_queue