Re: [PATCH] net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails

2019-02-27 Thread David Miller
From: Yue Haibing Date: Fri, 22 Feb 2019 15:37:58 +0800 > From: YueHaibing > > KASAN report this: . .. > nfc_llcp_build_tlv will return NULL on fails, caller should check it, > otherwise will trigger a NULL dereference. > > Reported-by: Hulk Robot > Fixes: eda21f16a5ed ("NFC: Set MIU and RW

[PATCH] net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails

2019-02-21 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: null-ptr-deref in nfc_llcp_build_gb+0x37f/0x540 [nfc] Read of size 3 at addr by task syz-executor.0/5401 CPU: 0 PID: 5401 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS