From nobody Tue Dec 2 02:31:43 2025 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2814D2F12A5 for ; Wed, 19 Nov 2025 08:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763539851; cv=none; b=OEclhNRq5FjGzpuh2kAE/HF92TVye4igZbjVzHlscIJKRrtp6CfFRVRC/UxL2ON6jvpiri4KaDxuerSJfUwC6uD5xBEmY8lf+nCg+Z281E3g4vHjzQ0ThrR5jykwBk9IsPVGhC2I68N3k5usUKQx2M+QfHv6wICFK0utLfPhhBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763539851; c=relaxed/simple; bh=1T1+jAbl7kIhgWk6qUK1AsoH0OKPzv/Ln63uJS+N5NM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=DyY/ZOPYDD7T+Cqk1JRBV8kwaojqZmXMIK0oC835BOiU+Z1NDxVAuT51IDQd+WsRicli/oWEBhR9BzuHdF7OpeCelsvzEn4gip8KymaT1Qkli61E2qYHtPFpTAm9P5piyZZypQzRX5LET3Bp/CwBcABVrgPxakNIhExIC5Anopw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W2XaDnbb; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W2XaDnbb" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-42b32a3e78bso5132671f8f.0 for ; Wed, 19 Nov 2025 00:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763539847; x=1764144647; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=wMN2hgnHRjdnPSJYW5xImXYTzHzljoemIaE/vDCS39g=; b=W2XaDnbbRaLxqLzH2/xIIKTFThGvuZXHaOGZtmW31XBQNHjUpaWZqsmpSNbNyIcfec tu+6HHNRpnR86VbGe6C+HFtXbvNy+TeaCtYFILKKeaF2KXgmlK1dUPAICNW+/BsIE9FU VnfXxL6Bpt9LqjHuyYrwb0XQIQwyRMBqli47tVHGEBZufFApXfowrJzoJtdrBmfwyXd2 YAaHsDYMTbVbsGCJB+D6jQmTiFqs5PsVSrJEiI9kWqaiDHSfzaTPLksUqzep5qCvhT6L 7sAaJuOEZLZGI5+dXBcEnA+1PPyANC+Feo+GdCrLa2hAgOcEDyklucJ/XQB2CiRc5nIR z8rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763539847; x=1764144647; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wMN2hgnHRjdnPSJYW5xImXYTzHzljoemIaE/vDCS39g=; b=kAI/UbjpBYFix1EdxvRMVlMogUZ22s5o1GJb6NxtEhMiL5DrVrEwQBPAG7sQCBe1DT rtBAmNFlNKgZcd3IgOPn3WQAuRT1+UeYmf+f+duz4C5MIJJdA/5cA5ZYS6DpsKJN5+uT thcpz4fcgBO60RwhHBGn8aGyS7+FggvtTysc7DPQnBtoZ4eL2SK2vHpJTvNLYlPsIx4N PA2n+tF8m41Ub4CYh3wDWCWAlBdrriMEGyyWV8uf6PqdrNwK3y+4KLljGT+dkkVXgYEo rqp0/wG3y3ioXqx0rabPbQvjDoTjS2cY/NxPF83FxN9oN9zsJe1cUlYVaUR1JBeSebmr O9Cg== X-Forwarded-Encrypted: i=1; AJvYcCWfWy2V4HlWvqP2E1at3Mhbko3IIuiAZ8qOJlxtydL90Gd/NJ4juWYnB3kYdu1npBYW9hhkCM4srsMxS5U=@vger.kernel.org X-Gm-Message-State: AOJu0YxifiSZM6yFQjwwoGJe0BNrq/uRvPlIo0mnsZnTiqXAcHQeDGyx +TSf+JPBEdw7oZXm10VT43hVaUyASPw8rUHYR6Om5Eg4GJWt174Ec3RwhLEc9MPF4Xk= X-Gm-Gg: ASbGncu2y+W2nP4a4MS6Bc/M2ocdX1jVW6/Jo8wmDhvUHhBQ7gj8gRgQdm3743TuXv8 BDEwaKo6BiQw8j5T6uuy8MvWTGVwNypeuAuhVx6C1brrYrUKxF03FcTeudiTXTeF+5b+2GvTh4h Lv5wS2/6iE+YAHnLZmHb7agjKwgkFCTIF5Ae0NtGVzj4KP92BNPYSCj3U6f55cCwLpY+CTX6Ktg iffSpI8BBuKyvg1O2Bq18JCS/lQAzAVEvSgbSFWI2p509jaQdJ4XRtoaWIJ9CKV4E1pbiUwEA6H qra1JhgGzWUXZgyEfipsgI7pGZ5aBDkadwO3w56CZdSGrfcXPcQ95ytOfcJHQav1aTXgUOvUqcu oO9qBgAuPd3Vncrh19Bdsegm5P3gjWpIJrsEs0Mc8Wcrxv5MkEiYt3jLR6Dpb1V/wwhbAr2/rD+ 9qIHe7AHhjTPiJWtoZUDi9CnJYBZ4= X-Google-Smtp-Source: AGHT+IFMAB84W75/smMpky/NBlEFmUpRSjSTcnjp+yIeuN1AfzdIXu0eJmDXc3YZJMHtKEA4S1hqEQ== X-Received: by 2002:a05:6000:22c1:b0:429:b8e2:1064 with SMTP id ffacd0b85a97d-42b5938f05emr18865514f8f.47.1763539846777; Wed, 19 Nov 2025 00:10:46 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-42b53e7b074sm35135682f8f.7.2025.11.19.00.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 00:10:46 -0800 (PST) Date: Wed, 19 Nov 2025 11:10:43 +0300 From: Dan Carpenter To: Steven Rostedt Cc: Josh Poimboeuf , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] unwind: Fix signedness bug in unwind_deferred_request() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The "bit" value comes from "work->bit". It is set to -1 if we cancel the work in unwind_deferred_cancel(). It needs to be signed because we check for negative values. Change the type from unsigned long to int. Fixes: 357eda2d7450 ("unwind deferred: Use SRCU unwind_deferred_task_work()= ") Signed-off-by: Dan Carpenter --- kernel/unwind/deferred.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/unwind/deferred.c b/kernel/unwind/deferred.c index a88fb481c4a3..8dc11e0d9374 100644 --- a/kernel/unwind/deferred.c +++ b/kernel/unwind/deferred.c @@ -232,8 +232,7 @@ int unwind_deferred_request(struct unwind_work *work, u= 64 *cookie) struct unwind_task_info *info =3D ¤t->unwind_info; int twa_mode =3D TWA_RESUME; unsigned long old, bits; - unsigned long bit; - int ret; + int bit, ret; =20 *cookie =3D 0; =20 --=20 2.51.0