From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 426183A48C6 for ; Tue, 12 May 2026 14:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594594; cv=none; b=X9dvvwWxnKRJEYuX/9yuRkDjiCaHiVR3cUKchowWzqN45zsPV4XH/1BL8i3rQcBf7JWUOMrzfWEyGh1pzeZGouOlSqs1ZKfpVkE0qNlbwVWuW3nFHxh/jUcfpTsRkwAnX3Np+htvIT4Iqz2qwFjm/tOgoOof0xViqAU0x1qURZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594594; c=relaxed/simple; bh=sKQwdKKL/JMpRHTTOh3jn4xUyP5t5QnoujPIwQmXG34=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ne5hcEja5dH+zROuGsBO5eQdDjCxYo4LCcNzklqiwZ7C2DHhm2+rE77EzWLZWQH5S1tuYpCJJ+0xwCcG/K2+YJ4MgBnDdObzL2I9wqsmBPfCiadD6Lm03XvH5wjQxQjc6+2dMiU3KWWqeLK77B/DuXYAw+ZY3cvEhlAv7KXrBYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=drD1PAkj; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="drD1PAkj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778594592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srBIRipIOpUCo0r8OoyxLtPUrnK6wFC7oQvN0EhexUM=; b=drD1PAkjZMD3u97uitSEfZh1uqJgAoiQzxkMIiDZcw1kVf20sZISYfybsTT6E3rEt69/M3 oHCSX2LDpKfILE2qeE1H5F3I0qWaInaTRfFreiEl+dZlx4l7J4v6eRGt+kwkmNWq0m/RMZ 9DikRTIky6Bh3N/yPmv+qzFLKb3J3EY= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-512-HoSHA4RrPa2qp1yvx0DXZA-1; Tue, 12 May 2026 10:03:03 -0400 X-MC-Unique: HoSHA4RrPa2qp1yvx0DXZA-1 X-Mimecast-MFC-AGG-ID: HoSHA4RrPa2qp1yvx0DXZA_1778594582 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 24C7A1800367; Tue, 12 May 2026 14:03:00 +0000 (UTC) Received: from gmonaco-thinkpadt14gen3.rmtit.csb (unknown [10.44.34.139]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0707D1800591; Tue, 12 May 2026 14:02:56 +0000 (UTC) From: Gabriele Monaco To: linux-kernel@vger.kernel.org, Steven Rostedt , Gabriele Monaco , Masami Hiramatsu , Nam Cao , linux-trace-kernel@vger.kernel.org Cc: kernel test robot , Wen Yang Subject: [PATCH 1/9] rv: Fix __user specifier usage in extract_params() Date: Tue, 12 May 2026 16:02:42 +0200 Message-ID: <20260512140250.262190-2-gmonaco@redhat.com> In-Reply-To: <20260512140250.262190-1-gmonaco@redhat.com> References: <20260512140250.262190-1-gmonaco@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 The attributes variables extracted from syscalls in the helper are both defined with the __user specifier although only the actual pointer to user data should be marked. Remove the __user specifier from attr. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604150820.Ny143u6X-lkp@intel.com Fixes: b133207deb72 ("rv: Add nomiss deadline monitor") Signed-off-by: Gabriele Monaco --- kernel/trace/rv/monitors/deadline/deadline.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trace/rv/monitors/deadline/deadline.h b/kernel/trace/rv/monitors/deadline/deadline.h index 0bbfd2543329..78fca873d61e 100644 --- a/kernel/trace/rv/monitors/deadline/deadline.h +++ b/kernel/trace/rv/monitors/deadline/deadline.h @@ -95,7 +95,8 @@ static inline u8 get_server_type(struct task_struct *tsk) static inline int extract_params(struct pt_regs *regs, long id, pid_t *pid_out) { size_t size = offsetofend(struct sched_attr, sched_flags); - struct sched_attr __user *uattr, attr; + struct sched_attr __user *uattr; + struct sched_attr attr; int new_policy = -1, ret; unsigned long args[6]; -- 2.54.0