Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7399864yba; Thu, 2 May 2019 09:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVXFT11BSyO6rNKEuQTy68/5EN1aBe2YD8LfFMILjjmd8oGsvJSkQysvqCdvReiNPXAV8E X-Received: by 2002:a17:902:7789:: with SMTP id o9mr4548450pll.300.1556813533963; Thu, 02 May 2019 09:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556813533; cv=none; d=google.com; s=arc-20160816; b=F8h31tQl+khi6UhRM0jNpmZczKZdX0IyZg//urPKSjpR+zWeVhcXKjBkInXh5eVf7z 8g9LFUl5gcFqsCoYQg8E7O4gRi0ofv8CESloTOeotAG2U9llEmHWJgyhi+bgPG6htX4P 2Iqa4GcfwXSRSjQPBt/FfGqbg7j/f5dBmwKPua4lx1wasAVuBWxhge17qOl/6tyut7yD eAkwiIdcC0XEJ+tddgONUp3/9DsLL8NeV3e3/Ur8R5IuHcX6dndORvRXrAkfWLoHzF7h D/FcuX4m4FOe20R3A8fmjqG5+OVyuOnCi+Vpj0NEpZSyRNpGXOJu2vh3oPM3siP0k+Wp R9ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=9xnFArciGrfO3ikzi57uVyk4LiBtt5n+h3mmuIaB6Rs=; b=jct/S2UY0EjJZmz/5ZnlLqE2qsDrcLUrX2dKCNww0rJNiBan6AN+crrmgTiT0GCAv4 xcx7a7Ym6mt9uhErXO2L/flkYRoJy8do0uqKr681Z+WSGinzdhrBGbOZlTpbfKKH994U bB9HBiYL/+kaum8crkOJBY5h3CXyKj3p2xNwyP0M5jrK0NJg11HW5QRJ0v9IpbMeLDcC jPeBcPJCKd73zCNz8riaDKXH6mnYR8QGuhgrirFLc8azWMWnzr56Ij40RuDLWduFMS78 ynjROQcTtNQstjm9RGq0qqtxH2Rl8xbz6sKfTDZJECRVIV0e5nYRDoeCAbcfyPSCmXqT OXKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Vt4bcNsm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si3260771pls.407.2019.05.02.09.11.56; Thu, 02 May 2019 09:12:13 -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=@google.com header.s=20161025 header.b=Vt4bcNsm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbfEBQJc (ORCPT + 99 others); Thu, 2 May 2019 12:09:32 -0400 Received: from mail-ot1-f74.google.com ([209.85.210.74]:41297 "EHLO mail-ot1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbfEBQJb (ORCPT ); Thu, 2 May 2019 12:09:31 -0400 Received: by mail-ot1-f74.google.com with SMTP id q15so1177960otl.8 for ; Thu, 02 May 2019 09:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=9xnFArciGrfO3ikzi57uVyk4LiBtt5n+h3mmuIaB6Rs=; b=Vt4bcNsmsQwdwzx2rVuQYIWmGuM1MudabGBak4VgLE+ddD/qUSnWDH10FuKsZhsUu7 ASj1xuuqygmryeruOZ2dQ1Yg+mscR1z5ARgj9GmIwNnHumfdBPpzcO8Uj8vH6+0pwt4i 8fMLi0L39i87GEfUtHLRLrfU7RUcdlqJwWMUy2voRATPxqUKhs6cJXKImmZTTnKRH9nk pIG+kvLZmz/WtMs/p1ZlKfCGWZK8WO1Vj3d9Kkr5Z1fS+GGSvpblZwkEzC8//aOdkpLZ 8TpLSvaQUxZeobuTFS4dzX+ALGm2AUn5YX/+RgIhlGK4LZS2TcSHKcfEckG1PJbgMdix qUFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=9xnFArciGrfO3ikzi57uVyk4LiBtt5n+h3mmuIaB6Rs=; b=UYK7iWzvXDoeHcRQvemAB3SpcLDAtoTfKGpM9TMEdSB0evWKeN9hD7d2B444TAJf1f MVmZPDG5GUF2JZJD3euyo4puCW/x/B0z90foMlp8eCip1XMpUOPMycQY6rl0BrDlSR1b GH+jyiOTpGrfYauivY6D/sjnYtEOBMyKfsEZAz0mCVayoRSnctYQnLmwkLsk/Gwv84Tf 1z0YLZyhXVEFQXjVrIQTanZypqt1HFjMVnG/c2/+uLlO/qBiGNWfq10nIwc0kOcfW5DQ Iskitnn8shFj+aPmaYaCpEYXOPMRqh5AhU1M2DGNVTeXSm3dfAlpbLo6FwFUYUBWmYgK DNlA== X-Gm-Message-State: APjAAAW0wSVFSVxljCeFtaDZ1/n3bAfzMwLEnkn9gjTI1q+g9GLvdgAF V5b9u+ELR7Jxiv375uwn5bhdMrM0QfEAUK6C X-Received: by 2002:a9d:6156:: with SMTP id c22mr2991816otk.363.1556813370975; Thu, 02 May 2019 09:09:30 -0700 (PDT) Date: Thu, 2 May 2019 18:09:26 +0200 Message-Id: Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] media: pvrusb2: use a different format for warnings From: Andrey Konovalov To: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-media@vger.kernel.org Cc: Alan Stern , Mike Isely , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Andrey Konovalov , syzbot+af8f8d2ac0d39b0ed3a0@syzkaller.appspotmail.com, syzbot+170a86bf206dd2c6217e@syzkaller.appspotmail.com 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 When the pvrusb2 driver detects that there's something wrong with the device, it prints a warning message. Right now those message are printed in two different formats: 1. ***WARNING*** message here 2. WARNING: message here There's an issue with the second format. Syzkaller recognizes it as a message produced by a WARN_ON(), which is used to indicate a bug in the kernel. However pvrusb2 prints those warnings to indicate an issue with the device, not the bug in the kernel. This patch changes the pvrusb2 driver to consistently use the first warning message format. This will unblock syzkaller testing of this driver. Reported-by: syzbot+af8f8d2ac0d39b0ed3a0@syzkaller.appspotmail.com Reported-by: syzbot+170a86bf206dd2c6217e@syzkaller.appspotmail.com Signed-off-by: Andrey Konovalov --- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 4 ++-- drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 6 +++--- drivers/media/usb/pvrusb2/pvrusb2-std.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c index 446a999dd2ce..a0f7b10045d2 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c @@ -1678,7 +1678,7 @@ static int pvr2_decoder_enable(struct pvr2_hdw *hdw,int enablefl) } if (!hdw->flag_decoder_missed) { pvr2_trace(PVR2_TRACE_ERROR_LEGS, - "WARNING: No decoder present"); + "***WARNING*** No decoder present"); hdw->flag_decoder_missed = !0; trace_stbit("flag_decoder_missed", hdw->flag_decoder_missed); @@ -2364,7 +2364,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, if (hdw_desc->flag_is_experimental) { pvr2_trace(PVR2_TRACE_INFO, "**********"); pvr2_trace(PVR2_TRACE_INFO, - "WARNING: Support for this device (%s) is experimental.", + "***WARNING*** Support for this device (%s) is experimental.", hdw_desc->description); pvr2_trace(PVR2_TRACE_INFO, "Important functionality might not be entirely working."); diff --git a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c index 8f023085c2d9..43e54bdbd4aa 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c @@ -343,11 +343,11 @@ static int i2c_hack_cx25840(struct pvr2_hdw *hdw, if ((ret != 0) || (*rdata == 0x04) || (*rdata == 0x0a)) { pvr2_trace(PVR2_TRACE_ERROR_LEGS, - "WARNING: Detected a wedged cx25840 chip; the device will not work."); + "***WARNING*** Detected a wedged cx25840 chip; the device will not work."); pvr2_trace(PVR2_TRACE_ERROR_LEGS, - "WARNING: Try power cycling the pvrusb2 device."); + "***WARNING*** Try power cycling the pvrusb2 device."); pvr2_trace(PVR2_TRACE_ERROR_LEGS, - "WARNING: Disabling further access to the device to prevent other foul-ups."); + "***WARNING*** Disabling further access to the device to prevent other foul-ups."); // This blocks all further communication with the part. hdw->i2c_func[0x44] = NULL; pvr2_hdw_render_useless(hdw); diff --git a/drivers/media/usb/pvrusb2/pvrusb2-std.c b/drivers/media/usb/pvrusb2/pvrusb2-std.c index 6b651f8b54df..37dc299a1ca2 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-std.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-std.c @@ -353,7 +353,7 @@ struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr, bcnt = pvr2_std_id_to_str(buf,sizeof(buf),fmsk); pvr2_trace( PVR2_TRACE_ERROR_LEGS, - "WARNING: Failed to classify the following standard(s): %.*s", + "***WARNING*** Failed to classify the following standard(s): %.*s", bcnt,buf); } -- 2.21.0.593.g511ec345e18-goog