Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3998691ybx; Mon, 4 Nov 2019 06:14:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzDix29RZIBAzq9gf6LHy4cqujQymYNNi7OxVAFRx3SXuAntW12Wgbc1T5Nk2X9gjgA2E+P X-Received: by 2002:a17:906:278a:: with SMTP id j10mr8430452ejc.125.1572876896765; Mon, 04 Nov 2019 06:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572876896; cv=none; d=google.com; s=arc-20160816; b=XoAV9yJbQ4P06ZS9CoyD/04bD3pw/Z4hVEsVjkYrUvaB0i/CsDkxc//Mk/nwvUW7da /HeaqRuzy4efQ7NsaDj/ghmjk8PftT15e0ShCYVodznH2sbLAGvj/IT1iK+xaMN14IwG ZH1otAUHE6OoSjc3JeV78y04mz3KIBMa7AVQE9Cu7Xi6a2eSkqyfinsl4LWhq7FnLNOi a+a628RztJaAoeluFMfE4aOougn6Bx+DrEi9yMHnKfR1GdNz5Kyky6xJbm5UyAoCBq5t GbBadd1GCzBmGJMEr74h5JENB+ptBcYOuxNXGHvnB7kVpLTwlmONTkXKcsWa3WK5OQUW 74yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=2MwvcJ5K000qPvOxUI6F4rY+oHfSb/j9RCrs2a/aoEc=; b=PBaHOEp6dkCR6i4J/Ue97lr7W3tNjLNOrBphM0DY9Woa8a7eXiYQwILgoI7n6IFtGN KsD3a7H0gLHCbkzSz5Fg4ViLQxXwxszJ1n2P71KuK/dybAiUDwBlYITS2Nijfw+LfpJ7 2YAtRWgdt/4cao9aIAzQEXiC2T+L5g3cvsIfqsK1L/DyfZdBdDF2yMQeahU59J7mVwK2 jDv3zmtG7UdkUpINDstmFjdpeJbADU3GTWYa0XKKGiokzALJsMLfqyUZm9hGTcm7Rd4G SbuEqPJqQ4gZxaqsjh8zbldKhFz8Hm2q5EU1b3gRtbuKB4j1i3HuJkZxklLEsZrCPGGG A1QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JKbtk3On; 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 b26si11173478ejv.191.2019.11.04.06.14.32; Mon, 04 Nov 2019 06:14:56 -0800 (PST) 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=JKbtk3On; 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 S1728386AbfKDOOC (ORCPT + 99 others); Mon, 4 Nov 2019 09:14:02 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:35284 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727782AbfKDOOC (ORCPT ); Mon, 4 Nov 2019 09:14:02 -0500 Received: by mail-qk1-f196.google.com with SMTP id i19so8589074qki.2; Mon, 04 Nov 2019 06:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2MwvcJ5K000qPvOxUI6F4rY+oHfSb/j9RCrs2a/aoEc=; b=JKbtk3On316fhVk3EO/By03AL5Lb/tbyMeNbuKix2nc8WDTh0Hv77IEaL+QyuMLDNg mHzmDwPWpuag4cnuYHktiL1EWs0NiWo9Eaonot/GhaYr54BWoR0o69kUsMeX4VkEjC8I itqDk29w6YiLIsd8wKaiv009FrcNDQqmCQOH2mHdqaRjUHV27MGZJ4cjSxA/0WC95QhX CcGGKP3z/I1wcVG+9VaQotfdVR0RWS7D3ugP7IYxRzGyNnfTBgpVtJ2BxfK00LuwDeFT a7ggU32FJ+Ddd/7dFS46f1hYvDe0pbkh4nBp3UNvFcHhRsXdpNTwSoDbYfJ1VvJj9y7s 9Auw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2MwvcJ5K000qPvOxUI6F4rY+oHfSb/j9RCrs2a/aoEc=; b=SMhhWELO9o0X+wCHpf0LquSkkvYSaJ/9Epmk0jsSij/iY7vS/6PHSOCNXg4xfsCL4p XVxCZA0oIQ25QWkggU5KvoVU7cxRst8VTjYzlPoSDonK5gZUaem8b/W2kw0gz5/yk9sw G31BQgDAToOL4qrLH1CBdFukphSsPqv41zrIxlxqJs8XY6FVESCNqRPAytgv6EXHRHKY hA8vKjAl69t0gWJ8jeJSsVn9u/XDUnVZuiBjyAwza9c6HBS1kRYl4Pq3hDBAjl3MWUda eJsd6pJl2DiQTnsX6hZ3xZQhcZqddN04CAk7+CKM1FPGuKt9OdZCpHyJ1XkKIq0VDNBd GJNA== X-Gm-Message-State: APjAAAU3MedIxWGYM2fwv/DS0DEF49funql51REbSGTHk8p9yXWGN8DG xU2rTImgFmOSQkFPgkwMQQ0TZOKG9cM3ZmqG5rY= X-Received: by 2002:ae9:e708:: with SMTP id m8mr1789934qka.428.1572876841206; Mon, 04 Nov 2019 06:14:01 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ad4:54a5:0:0:0:0:0 with HTTP; Mon, 4 Nov 2019 06:14:00 -0800 (PST) In-Reply-To: <20191104132508.GA53856@localhost.localdomain> References: <1572451637-14085-1-git-send-email-wallyzhao@gmail.com> <20191104084635.GM29418@shao2-debian> <20191104132508.GA53856@localhost.localdomain> From: Wei Zhao Date: Mon, 4 Nov 2019 22:14:00 +0800 Message-ID: Subject: Re: [sctp] 327fecdaf3: BUG:kernel_NULL_pointer_dereference,address To: Marcelo Ricardo Leitner Cc: kernel test robot , vyasevich@gmail.com, nhorman@tuxdriver.com, davem@davemloft.net, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wally.zhao@nokia-sbell.com, lkp@lists.01.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/4/19, Marcelo Ricardo Leitner wrote: > On Mon, Nov 04, 2019 at 04:46:35PM +0800, kernel test robot wrote: >> [ 35.312661] BUG: kernel NULL pointer dereference, address: >> 00000000000005d8 >> [ 35.316225] #PF: supervisor read access in kernel mode >> [ 35.319178] #PF: error_code(0x0000) - not-present page >> [ 35.322078] PGD 800000021b569067 P4D 800000021b569067 PUD 21b688067 PMD >> 0 >> [ 35.325629] Oops: 0000 [#1] SMP PTI >> [ 35.327965] CPU: 0 PID: 3148 Comm: trinity-c5 Not tainted >> 5.4.0-rc3-01107-g327fecdaf39ab #12 >> [ 35.332863] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS >> 1.10.2-1 04/01/2014 >> [ 35.337932] RIP: 0010:sctp_packet_transmit+0x767/0x822 > > Right, as asoc can be NULL by then. (per the check on it a few lines > before the change here). Yes, apologize for missing the NULL check (Actually I realized some further check is need to correctly identify the first in flight packet, as outstanding_bytes has already been increased by this first in flight packet itself before getting into sctp_packet_transmit). Anyway, I think I do not need further action, as the patch is anyway not going to be merged, the 0day robot picks up the patch from the mail list directly instead of git repo, right? Thanks a lot, Wally > > Marcelo >