Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6427600ybe; Wed, 18 Sep 2019 03:21:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTAnwEJGRzKrILsVfYFolUxCBmpJGdd8cv50FICjzT8+KCHCOEIJIFQeFT5yX0WPYAVIft X-Received: by 2002:a17:906:1f14:: with SMTP id w20mr8594407ejj.272.1568802085609; Wed, 18 Sep 2019 03:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568802085; cv=none; d=google.com; s=arc-20160816; b=XDSy+J8QJ7MkEqw0sYlBbJYniCZvkpVJvr5ORxsP2ojZRjizwdfb4kwv/xb9XjWh3F 4eQXgh5Qj8zdm1l3uOraVsy13fWKuhjmG97qXFv+Ok6ahw879egJzf9SCapyzo+YL4C6 Ns1pB5bDz4NbtnQ0HhsnZCvoJRB+EfYrlNFyXI69vQsZFZITQqKwkxwzbTsgpgRa3B9j 0g/lM3bNXkNWf3k68H6UTtq+DM/aXVN6Nw0YtZgufbiVTOg/IwQajhx0bW+0u77Hs2JW I5lB/nqQgRbuLJqjV43+Z5jiET5Lzv90ajOZbvhWohepZ2Ok8/ZjiGWwEngiNzWRxZDg Lf1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=96CtskRVCyIhaAKO+sSNyyBpkm2SbKef8Ee9AWjrlh4=; b=U/UdsoCqXT8/Ke5gXKwpDNRofzfFId86Aw/6/DSyxey+soBGJfJTKOR7B5FoosgfOj 0QiYoqQpC3E/wqaGbf90myM1ZJrlgm9YhKL5GZMu2hvnIOaPs4mvokgN8lw2NpkplIgy jA+6qRn2ThLkErPRMC3VfkiJpje+IDXweHBdVpMXWO8oEm09EYITds6MvIiknWs6GxT1 60h8P+15pElTiAX+SamQ61uj9nEdXzhhQ0nwiP/i3d5xl/IyEdrfWwR56UGKiqtr8lWg ezTPK64jX+nkDcglmcE7tt30czkTBysghWBUEbH0Lsyt9hc6/QnY0QSmoCb+AwCQoYA8 kOiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iHa0UBM0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si3122644edb.433.2019.09.18.03.21.01; Wed, 18 Sep 2019 03:21:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iHa0UBM0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729720AbfIRKTM (ORCPT + 99 others); Wed, 18 Sep 2019 06:19:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33192 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728427AbfIRKTL (ORCPT ); Wed, 18 Sep 2019 06:19:11 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so4118945pfl.0; Wed, 18 Sep 2019 03:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=96CtskRVCyIhaAKO+sSNyyBpkm2SbKef8Ee9AWjrlh4=; b=iHa0UBM0kjKshaEZj62nIXMbVRlVv5bnQ9VqnCc7T/8eiqdR73BAoL8GYK9hiIq6A+ z2WVgbExWiUEADVie/AqV4Uf0Vp7eTDJs6Q7iFVZeV5KhrnlBzEraEq6x/d6WsL5VY0J tCa4DbKxUdTfXsbMWZuwltSdc1dxJk0g+imrm7HI5t1PTZ1V62/Zooj+7B8GNmQl25Ma gHbEgsdZY5aUYRwUwISV9l/zcPIitHn62W+BwWADCqM+75n7fjtdNpbXTFOO310anOPJ 55R4zDffdJn/8CCZQTs2I5vXNjoGO2dFMvq4xcUXUuheTK3lriMr/IyAghXSZGuJJqBi vKLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=96CtskRVCyIhaAKO+sSNyyBpkm2SbKef8Ee9AWjrlh4=; b=O9RJ0ftU/hYNSqFSWTj4erbV7/0yTDE+VOWIRi63rBKdiGWpBNR2F7IN372M3KXS9L kiXOi04+GXQY40AZjZVIurt6fiAoaJ/JuYdV/woZKAR8rorJHJJt3Ol3gyRfW53XCgVw VWvI5jj9YwO7LrVSK43UW4kMi/LN5CaGxFeuslg5wbkhT6xR+8l2Une0ZZnGwlHnQKOT z2WoRtsnOQIAz79vkd5M27rAe6qi2Ze5Uw0HrMiJK5ejnbDhYUA7lFn3VmUygcCrvE88 EX9zRTLb2DbdHRVqBjqSwfhFBb/kzQKyfu28TgkzwQQRZqDBkTTfjHG1KjYAjF8gFTPE +qAw== X-Gm-Message-State: APjAAAVRNp1UH3haHX1Hm3fMo7Tey3htnNOMXTmi/pauFn0pJqAayY2t p05IAaj5q8R/LN940Qpr5WY= X-Received: by 2002:a17:90a:2e04:: with SMTP id q4mr3014403pjd.43.1568801951226; Wed, 18 Sep 2019 03:19:11 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.36]) by smtp.gmail.com with ESMTPSA id c16sm6833207pja.2.2019.09.18.03.19.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 03:19:10 -0700 (PDT) Date: Wed, 18 Sep 2019 15:49:04 +0530 From: Bharath Vedartham To: Xin Long Cc: davem , Greg Kroah-Hartman , allison@lohutok.net, tglx@linutronix.de, network dev , LKML , Jon Maloy Subject: Re: net/dst_cache.c: preemption bug in net/dst_cache.c Message-ID: <20190918101904.GB4519@bharath12345-Inspiron-5559> References: <20190822195132.GA2100@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 09, 2019 at 05:48:25PM +0800, Xin Long wrote: > On Fri, Aug 23, 2019 at 3:58 PM Bharath Vedartham wrote: > > > > Hi all, > > > > I just want to bring attention to the syzbot bug [1] > > > > Even though syzbot claims the bug to be in net/tipc, I feel it is in > > net/dst_cache.c. Please correct me if I am wrong. > > > > This bug is being triggered a lot of times by syzbot since the day it > > was reported. Also given that this is core networking code, I felt it > > was important to bring this to attention. > > > > It looks like preemption needs to be disabled before using this_cpu_ptr > > or maybe we would be better of using a get_cpu_var and put_cpu_var combo > > here. > b->media->send_msg (tipc_udp_send_msg) > -> tipc_udp_xmit() -> dst_cache_get() > > send_msg() is always called under the protection of rcu_read_lock(), which > already disabled preemption. If not, there must be some unbalanced calls of > disable/enable preemption elsewhere. > > Agree that this could be a serious issue, do you have any reproducer for this? > > Thanks. Hi Xin, Sorry for the delayed response. I do not have a reproducer for this. You can submit a patch to syzbot which can run the patch on the same system on which it found the bug. Thank you Bharath > > > > [1] https://syzkaller.appspot.com/bug?id=dc6352b92862eb79373fe03fdf9af5928753e057 > > > > Thank you > > Bharath