From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756039AbeCHPn0 (ORCPT ); Thu, 8 Mar 2018 10:43:26 -0500 Received: from mail-pl0-f53.google.com ([209.85.160.53]:42154 "EHLO mail-pl0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755990AbeCHPnY (ORCPT ); Thu, 8 Mar 2018 10:43:24 -0500 X-Google-Smtp-Source: AG47ELvyd+oQ7iDU2OqdXB6ixLfe1c5rM7rjOL+JqS8Pb9LMul69aiLnabemdiaVkgoTR7+24tQ+0w== Date: Thu, 8 Mar 2018 07:43:21 -0800 From: Stephen Hemminger To: Dmitry Vyukov Cc: David Miller , Willem de Bruijn , Eric Dumazet , netdev , LKML , kasan-dev , Cong Wang , andreyknvl Subject: Re: KASAN poisoning for skb linear data Message-ID: <20180308074321.5d57bbda@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Mar 2018 10:20:44 +0100 Dmitry Vyukov wrote: > On Mon, Jan 15, 2018 at 3:15 PM, Dmitry Vyukov wrote: > > Hi, > > > > As far as I understand pskb_may_pull() plays important role in packet > > parsing for all protocols. And we did custom fragmentation of packets > > emitted via tun (IFF_NAPI_FRAGS). However, it seems that it does not > > give any results (bugs found), and I think the reason for this is that > > linear data is rounded up and is usually quite large. So if a parsing > > function does pskb_may_pull(1), or does not do it at all, it can > > usually access more and it will go unnoticed. KASAN has an ability to > > do custom poisoning: it can poison/unpoison any memory range, and then > > detect any reads/writes to that range. What do you think about adding > > custom KASAN poisoning to pskb_may_pull() and switching it to > > non-eager mode (pull only what was requested) under KASAN? Do you > > think it has potential for finding important bugs? What amount of work > > is this? > > Filed https://bugzilla.kernel.org/show_bug.cgi?id=199055 for this so > it's not get lost. Linux kernel networking does really use kernel bugzilla. It is a conduit for bug reports but not used for managing most issues.