From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 ADE34329E6C for ; Tue, 25 Aug 2026 17:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787680207; cv=none; b=UfZq8lhqVBCACitHF68oFtyytabIBIk7ab8Lhja4r52WEXAVJNQ9XCURIbEG46CAGetoWNvxTg+Z+YfGaewqzrPi/eep+qTU7eB4s2cxzXGsdorhH5AJTSFxSmccggbjLuYv1hz6ANOqsYbvkvCXB3BjDh5T9plYevtNFXozfDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787680207; c=relaxed/simple; bh=8egc17aJsxo+XLzfODsGFs+cw6HnikJ9yyd7qOoc3Hw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wc2vh15qeICxnjl/G2rvK+RrCjRjLVHLkVuHtTGcP/6fqlHUWuRKq0GDGJE3pPZ/I5e4H/bXBk9gFchEJOVSBUbefnf/bMOtuTyDRqpb1PdOD7aOjiHWCJRUF55bnP2RVWueaB+yRs8ZpDbtUGITe6C305B/gKZCGXhCm7BtMok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JiRI+VoH; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JiRI+VoH" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-ca766c1c9ccso20518a12.0 for ; Tue, 25 Aug 2026 10:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787680206; x=1788285006; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=yu0Gq3fjgHPasjEMfj89sasnK5MsRemePuJkB5crV9w=; b=JiRI+VoHrs2wDq2lOR+5guR8RziiV5yqACFZF1M4E8jvsSaVTsKwBBTqeKpLUmDgJ0 EvWQuCEkqGn6zDb1KgKfKY8afXWK6YTAXRBCrEVp8ZfSqURsUpbh/EXZDo4Ere/44I+i aQB3ItTCPYZw9VW2wrF662Hoe5+dgAfje7426t0j+2bWcCeGsguuVCi9Y0pUQNRFJykc j23Rm7Q7Eluvd4WojRnolqFmOtXwiVs1dzmrZZ+ALOv4VvAUg84eoU0T6jRRr//6dtil mqZjgnPiham4vjHRHsXflUB3F8hFQSkCqG6abHXjlAqd5ltvYMtiFbklu047WER+p1XI 0eVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787680206; x=1788285006; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yu0Gq3fjgHPasjEMfj89sasnK5MsRemePuJkB5crV9w=; b=PVxWqGtEz9T0uhZuoP7qSqquSTy/qa83yOnbWsVi6cF7CPOonqg3FH2LttAM2U/iPk jNfc8x1Ehf79sL6ZLGSRqkt9POQBGSGIMklc6tSiF397rG+WJ4XMupwJ4MwGvI/K5Oet B81CBOWp3ri3oM40bOYB0RlVISbR4Jzy6lnoisG19yU9N1N6Dp4Sieon2KaRTroL0gjM u8bn8Ak09uIjeLf5Q53DswfJQ8YGQpkKH3h8aBCI0hM9leTsctdFp6p54l7wbSq8/YtU +PYlZHGrUq+x7KocECjKX+fHWZah+mzoORKztygLNz5n058NCsa2KEPWsFKoTp1Zj5Va fxgQ== X-Forwarded-Encrypted: i=1; AHgh+Rpnaa0DMT/Nww078SBei2tM+w3MYl3dQWCvK3+WR8ePJTPvgisHB1xWz3ca2/4kJzR2vrYyBaFxd6uIifc=@vger.kernel.org X-Gm-Message-State: AFuF++ltI3ATDA08z61R2UoiRmM65hHP9ZHVrOPwN0G/gdGUs1yyLw7z lvGUoWiBNUTwriHuibN7vgNI8pALdoczB+cW5Dwoq8e6AI11wtjeF7Fb79+S+Q== X-Gm-Gg: AR+sD10P8sK22K69N3ElthbS6NNy7frDTaty/Jm6lj0/lyXPi//YNuMjFJcpkpXm6fA FMIXojBEtMaKMGjOn+32Te2BC5cV6VGOqZsrEB80U6xMUTq8e+PW/HVOxOqkmbuVPCY1lstRBoO qKb0p/+EzITHYDyDFZVrybATHAQZ8kr0+YBc3/lyZIj/fcr0peSdm8At3SGLEKMfQdrJp1jpkHx qbh8icyY1Yd97q1Mc034CY7oIW5Zp7x42/3ca9J4EDIZ/EvVSvl7TA4GJ46cdzzmgF6JtMznGFa UyMQkbLUzy5Zg3CpRUZZ3AjuUL+fbNGfpMPCMs8abxvmWDXPRJ5N9KZRIFrxtDcuMgauqqKZ0KQ HK8VVyyx76+VDsO7FoZL9Hn96VmoGrTYLXSrKXRx84IwlHTUMgrTtrinLszpHvwCXEOr6pLdqM3 /4qIZZlG4zw8w6V9QTMbZ5HYdlxpHmZHzbDBYPuVl1mzPT5IEt+ZEEhwAJl5QF6Ol1FQ== X-Received: by 2002:a05:6a20:2451:b0:3c4:42d9:58e3 with SMTP id adf61e73a8af0-3cf8413a961mr195092637.13.1787680205909; Tue, 25 Aug 2026 10:50:05 -0700 (PDT) Received: from user ([2405:201:c052:b00b:5f40:1719:f321:a33e]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-141a8eefd98sm1767218c88.3.2026.08.25.10.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2026 10:50:04 -0700 (PDT) Date: Tue, 25 Aug 2026 23:19:43 +0530 From: Yalagada Pavan Kumar To: syzbot Cc: anna-maria@linutronix.de, frederic@kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tglx@kernel.org Subject: Re: [syzbot] [kernel?] BUG: sleeping function called from invalid context in posix_cpu_timer_wait_running Message-ID: References: <6a8bd336.ae6ddae5.3da009.0074.GAE@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a8bd336.ae6ddae5.3da009.0074.GAE@google.com> #syz test diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index 436ba794cc0b..5e580b4223de 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -1057,9 +1057,9 @@ static void posix_timer_delete(struct k_itimer *timer) while (timer->kclock->timer_del(timer) == TIMER_RETRY) { guard(rcu)(); - spin_unlock_irq(&timer->it_lock); + spin_unlock_irq_enable(&timer->it_lock); timer_wait_running(timer); - spin_lock_irq(&timer->it_lock); + spin_lock_irq_disable(&timer->it_lock); } }