Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1133442imm; Fri, 17 Aug 2018 12:26:08 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwABr6H2+qTMJGEdXG/M+Xf//+s95QuXbkziGfpC7Yzzru7b3ipTMV3Gr1SpfB1+BAfasfR X-Received: by 2002:a62:e511:: with SMTP id n17-v6mr38138486pff.210.1534533968079; Fri, 17 Aug 2018 12:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534533968; cv=none; d=google.com; s=arc-20160816; b=puxnOEpb2hcbvieJojYWYbFP9l3vNiqEecey8BE9PrKgw0IZI15kzDQIWZJnBqWkgg YLuEHNoHCEKO91ebINJjD8LT6f47L3PJ/jrqNlX8TzFEpVqFf6RB27I8kGnccyyyipdN t9vXRvEh82VKdED9E1KLaT8Cjyyz9MfHBuu9WqMheXV+hXGng9vUcgrza/FnWZrgQ8SO HUh44NzP+k1lYouWjXB6K+eXgWP5USvtbVFgpZH1F8vWrKNRhsf+pHcsbgmVCD+sT9al GmUpVOEamvF8jvJoXvz8ZwOhg6POtqOwWmNglxNb7u6b4lvaje7l0WFJCDHP/hvoA4JU 3l9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=RLD8N3zlGN3Uhe8kqnA5LjR7l5C7sBg+J7tPR6nqx68=; b=timUXhh1hxnwONZu77fxFyXnTPkrb6tBBPQqtGhlaYQvmuKS+ZwiabGb8dKCZ9tvW9 bpvWHMbrYNrOpwFZYRMcCmXHuYOESPS2127EvnW9ubK5m4szdzZoqoMVtimHJ4eUXvYN wv/laBsao1q+O+KPaE96Jh46OKp15IN2ZPMQg6BEemaWSG2LiREreoFms8XH+L5h374p vdTxSverzHdj5kHY66I+JQDiB8h5Mwp+yFs1PwDfBDSQnvt88+DXSvz09MK2AF7FLR6X yvXlV87inneteNgDTB39kFhhfCcFV0Wvf3+KOSjF7jCopGukbVDG8iUNOPRwMHXu1TNc 5IUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13-v6si2675020pgg.346.2018.08.17.12.25.52; Fri, 17 Aug 2018 12:26:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbeHQW2w (ORCPT + 99 others); Fri, 17 Aug 2018 18:28:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46104 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbeHQW2w (ORCPT ); Fri, 17 Aug 2018 18:28:52 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9C2C0CD5; Fri, 17 Aug 2018 19:24:15 +0000 (UTC) Date: Fri, 17 Aug 2018 12:24:14 -0700 From: Andrew Morton To: ebiederm@xmission.com (Eric W. Biederman) Cc: Dmitry Vyukov , Linus Torvalds , Oleg Nesterov , LKML , Wen Yang , majiang , "J. Bruce Fields" , syzkaller-bugs , Andrey Vagin , Cyrill Gorcunov Subject: Re: [PATCH] signal: Don't send signals to tasks that don't exist Message-Id: <20180817122414.df0eee974434d170b1a54c31@linux-foundation.org> In-Reply-To: <87pnyg7rw3.fsf@xmission.com> References: <87efft5ncd.fsf_-_@xmission.com> <20180724032419.20231-7-ebiederm@xmission.com> <87k1orgdoo.fsf_-_@xmission.com> <87pnyg7rw3.fsf@xmission.com> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Aug 2018 13:46:36 -0500 ebiederm@xmission.com (Eric W. Biederman) wrote: > Dmitry Vyukov writes: > > > On Wed, Aug 15, 2018 at 9:04 PM, Eric W. Biederman > > wrote: > >> > >> Recently syzbot reported crashes in send_sigio_to_task and > >> send_sigurg_to_task in linux-next. Despite finding a reproducer > >> syzbot apparently did not bisected this or otherwise track down the > >> offending commit in linux-next. > >> > >> I happened to see this report and examined the code because I had > >> recently changed these functions as part of making PIDTYPE_TGID a real > >> pid type so that fork would does not need to restart when receiving a > >> signal. By examination I see that I spotted a bug in the code > >> that could explain the reported crashes. > >> > >> When I took Oleg's suggestion and optimized send_sigurg and send_sigio > >> to only send to a single task when type is PIDTYPE_PID or PIDTYPE_TGID > >> I failed to handle pids that no longer point to tasks. The macro > >> do_each_pid_task simply iterates for zero iterations. With pid_task > >> an explicit NULL test is needed. > >> > >> Update the code to include the missing NULL test. > >> > >> Fixes: 019191342fec ("signal: Use PIDTYPE_TGID to clearly store where file signals will be sent") > >> Reported-by: syzkaller-bugs@googlegroups.com > > > > Since the commit does not contain the syzbot-provided Reported-by tag, > > we need to tell syzbot that this is fixed explicitly: > > Nor will my commits ever contain that information. That is information > only of use to syzbot. That is not information useful to anyone else. > > Further syzbot did not track this down and report this. Syzbot said > something is fishy here and happened to CC a public mailing list. Only > by chance did I see the report. There was enough information to start > an investigation but it certainly was not any kind of useful bug report. > > It is very annoying that despite syzbot claming to have a reproducer > syzbot completely failed to locate the problem commit or the proper > people to repor the issue to. I looked at the syzbot website link and > there was no evidence that syzbot even tried to track down which branch > in linux-next the commit came from. Much less to identify the commit on > that branch. Dude, lighten up. These reports are useful. Even if they don't have a reproducer, we have a backtrace and we can go look and we have a good chance of fixing the bug. And as adding a single-line tag to the commit message helps the syzbot people keep track of things, why not do it? It's hardly a big effort. They're doing useful things - please don't get all bent out of shape because things aren't 100% perfect. > Very annoyingly syzbot sent out emails and report this before it found a > reproducer. This is despite several people explicitly asking syzbot > to not report issuing on linux-next where syzbot does not have a > reproducer and it can not track down the offending commit. Dear syzbot, please report linux-next issues when you do not have a reproducer and/or cannot track down the offending commit.