Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1264047lqz; Sun, 31 Mar 2024 23:46:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI2ENgNRLqHFYyJZAA8yGa+yA7P6y2tbYt2ZtW9lXLXoRGa5j89ekWSoKvt2TOHW4Ei1ZLbMvLpbVJqBVhxCXkXOQzOFnNggVGxruuIg== X-Google-Smtp-Source: AGHT+IGZH9044gEBqF6wJP2Eamb/RMc10EA7g1UmDuwnNjez9YHcIrfvRZbfTTMa7ZdmTnLwxkyv X-Received: by 2002:a05:620a:987:b0:789:ea49:e8af with SMTP id x7-20020a05620a098700b00789ea49e8afmr9266600qkx.46.1711953978873; Sun, 31 Mar 2024 23:46:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711953978; cv=pass; d=google.com; s=arc-20160816; b=T4GpZS/acAShzYmJO0V1grVbPUavRgasixz8lDIhXaMHLAUSDZH/5A9WsfgQx7rMXo jjleyjXw/uXkZvsdsHJRm4SYpCBT63M2KOdJQ5V82x08Kkxa4z3KhztN1vq1J8MDUPQi toO8LAF5X7P6DUPPfBu9nDAIZfINSazG6OqqYG4vDAMRWVg0NIYmLlfoEgVkggQukn4T SG4C/8GQwIB5qn+I8BE9V5UcOfmKREaPOxF2TGeoubIxwnibUWrsEz129H0XmR5uzpnd Y81ep8PLzCfrQC1v2/jTRlPJgkjtXKPvbkibqBfH/vBgVKBW8O3QMlXcWdFDZIl3eywb QCQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=Pby83MlY0XkssxPCJzUArMF2ixNrubj91LLN/7UnyX4=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=VcHMr/02PM+fu3/mziKHG1kwTd6UH6E/nA8pmHppy+s8nESRp0O80OKBDcK3TMgx2L eEQiwRHjPs74ju2UKgIEYHAA+Kuf4y9Cztgyv++o55YNCeGpVQ+lwn4AN+ceSG7+s37w 2KFxjnxGbywkGyTsrK3Battxf/YbUfyRUxC4gmCst8oBwSfdABrWmii4K7GOgNJYJaZi F6UkbAyIc4oOsr15AbaS7LGFAUYGHndWQdS4NZzrtp9OFt7IhfzhjSD16f86jR0hDnrK xGqnGHKQE+KNRJqczS0nlOeLDg0ntTaiXHgT5AkuzwzbGBn41SI8dUMR4+TUao1XOkKQ TvVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-126477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g20-20020a05620a13d400b00789e14dcb79si8768751qkl.402.2024.03.31.23.46.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 23:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-126477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 83BBB1C209AA for ; Mon, 1 Apr 2024 06:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E5E78F7A; Mon, 1 Apr 2024 06:46:13 +0000 (UTC) Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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 23FFB1113 for ; Mon, 1 Apr 2024 06:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711953972; cv=none; b=kdoA+86xRbuMXCamMsMlBv4Y1oVEe8l/1hkTQlTJ03pA00YpaN1xpQwJo7doTlnT9jtXe8o9x/8uhosgaBHLQR7FCPj+cHXBrLpE9d97X8OCIILzutr6inQVCyy4Q5zRJZrqRh6/TD4GjCVZiMKVkexbM5WWn43Nu6zk34nldRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711953972; c=relaxed/simple; bh=tl1vN8fFb0/Vz0vN+unGzixhxvc68Srm4LbCshnhKQw=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=DN2fxGG2YODMchSk+cshe0hxProoITGY/ku4vmduPBYVSKRyqCsH7h/FxnU8ecf3DGEv9n+dBoR5F32um+JtqwNybjk8+TAzDYPhpU8vRS5uXPIVtSmj5lqj813zJiA1+MPLL6Xug7jACastfhBdkHqWR42zcvSUAYNNUf49w6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-369b59f2547so3684815ab.2 for ; Sun, 31 Mar 2024 23:46:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711953970; x=1712558770; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Pby83MlY0XkssxPCJzUArMF2ixNrubj91LLN/7UnyX4=; b=oKL5kxv/aPJwznPXRWgr2kGYE9887dLeT6SvIF/Na1YzhozoGK4hOjvLqRTWnYJMno t+huYWUwQ27OC9ZknHLQhsymjS+OT2qaUjc9+oSdzWWQ0E0IvXYtPkPmu+Hv5v8EFOxX hSnYUyPvzHYWhzAAftNzYlQ+/QSte2Y2fJLWinh3YHtNC7t4KIzi/5lYt7FJh71sUK8K dqojyttUqQostOnAK3djt7N8uQJa3OObqzw2oY1wi3t8Y12mvY73o71HjfoZb4VgiNEY 9z3EX5D//TJVcJ7YIPOw+XohIt5meS17yKReFlHotwuUZ5l0b29SR+MgbU56tR9TvBlG UvBg== X-Gm-Message-State: AOJu0YxHqDfT387CVH7RYI37ZTribVchp7wusb5tbk+rI+2pBNfOktet 7tV6ngrla0eE950pg3ztD6CZlbikH8vwKXtvK3XKLWdoWVwBQLDHMuXBzo4Az3lF2pbN+4tj6LA 0bW2bOmAVJqdlesARyGeckWoypqx3jcC5AEuDf1JVTVKAV8gQcHGmUTi2AA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:152d:b0:368:b289:38b2 with SMTP id i13-20020a056e02152d00b00368b28938b2mr485272ilu.1.1711953970304; Sun, 31 Mar 2024 23:46:10 -0700 (PDT) Date: Sun, 31 Mar 2024 23:46:10 -0700 In-Reply-To: <0000000000003ad27a0614fa0b99@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000045aaf30615035889@google.com> Subject: Re: [syzbot] [syzbot] [kernel?] inconsistent lock state in sock_hash_delete_elem From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [syzbot] [kernel?] inconsistent lock state in sock_hash_delete_elem Author: lizhi.xu@windriver.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d44efa0d0611..07a3c1d2c2d8 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5676,7 +5676,7 @@ void scheduler_tick(void) sched_clock_tick(); - rq_lock(rq, &rf); + rq_lock_irqsave(rq, &rf); update_rq_clock(rq); thermal_pressure = arch_scale_thermal_pressure(cpu_of(rq)); @@ -5688,7 +5688,7 @@ void scheduler_tick(void) sched_core_tick(rq); task_tick_mm_cid(rq, curr); - rq_unlock(rq, &rf); + rq_unlock_irqrestore(rq, &rf); if (sched_feat(LATENCY_WARN) && resched_latency) resched_latency_warn(cpu, resched_latency);