From nobody Tue Dec 2 02:33:05 2025 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 6F5C535FF6C for ; Tue, 18 Nov 2025 17:13:01 +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=1763485983; cv=none; b=WBmbh6A2KndvAaF7X3BPI28oQKZL91LIc/SE8wootRgcyCwvFpFuSFfdIhwmVh7bFoENtpn8aWC08nikpGxukbDrRLM42vWaPTWnUzPjwXQWzARtZHlsFIU2AKV44zYBY/YkVbefq4iBU+dRzSrnwDKCV2JJZLSINzaOWMPwqcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763485983; c=relaxed/simple; bh=PE0zI+OZJHLU1quBzm4LWARULk+qnbaLkYH+9shj+6U=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=PMKFh2G1p6M4lvt8e5qUmAw93S4wYNIi92EgSC5+04GRpHIYYY4wwvLjD8/DtmD3IjR6L1xe1k9YbOhlDchHXyC097ZlnSDbkyUzsljwVAkyFBJJx9bSCl85rD4DBPwGoUXiI3b41RiF4HABvFg1L7W4JPjJGDTz/K+N6Fq9/6U= 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-43329b607e0so64704585ab.2 for ; Tue, 18 Nov 2025 09:13:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763485980; x=1764090780; 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=BKknmskPKUiMbCOf0+Qq7qH4aLfeKsuei9BGSxJDjRo=; b=YvC3hbjWm86O2YVKzcVX4xNxo3SbNxiGeS1Dm04WGBqaVTzfWGsp47Y1/8Tp+rGpiB F+bODe65In9kVrXXnl2g6LyG5Tv8U43G35jq0BVb5y6OnO6FpfXbWNhIrnf8YsK950xO WXl+JHUyeoXhn+NVs2r9laHdr9UtWq6FWAA7vx9QR0pCCZy//3ekZfskxpLDxEKI4oE8 kF+9IMnw+QeIyvSAvDTYngggAJZk9YsBxaFXORtiZuaaZnpiatPiteNAEUUggB+BD3nl KI+0DEs9dwhZ4dijQxIu2oPHA+4/ZBPA94rDthGplXn2xDPlO8XxBbMGUv42QZIMyYbu HUzg== X-Gm-Message-State: AOJu0YzeaFnq5zOGmZkPbuRtU/eJDuldogof6L+CV4EWZL1ZR6kgWNBs 5HXdLF7YEkKfisraArp5rFureA27iD6HpN7I2rvRJ5g2qcjMGpEa/Rk+kAyhLmAs8BpdI7tekQa w3UT+X+ButAglCupx9OjQIgR8MMmmT0y5rA1WrlJ6iICytJu1a5p6p3k7wEc= X-Google-Smtp-Source: AGHT+IFaM1YTBdEWBRkTR+nQhlcZobO68SGzEDBhI+hUkdbp33ThW4ArC4uKwBGGWg8tPDl7BKStAFyemjNpTpfobYsBTFQI8Dsx Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a92:c6c7:0:b0:434:96ea:ff64 with SMTP id e9e14a558f8ab-43496eb0194mr121423445ab.37.1763485980651; Tue, 18 Nov 2025 09:13:00 -0800 (PST) Date: Tue, 18 Nov 2025 09:13:00 -0800 In-Reply-To: <691b044b.a70a0220.3124cb.009d.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <691ca91c.a70a0220.3124cb.00d2.GAE@google.com> Subject: Forwarded: [syzbot] [kernel?] general protection fault in put_ipc_ns From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [syzbot] [kernel?] general protection fault in put_ipc_ns Author: hellouser819@gmail.com #syz test diff --git a/ipc/namespace.c b/ipc/namespace.c index 535f16e..ea3015c 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c @@ -201,7 +201,7 @@ static void free_ipc(struct work_struct *unused) */ void put_ipc_ns(struct ipc_namespace *ns) { - if (ns_ref_put_and_lock(ns, &mq_lock)) { + if (ns !=3D NULL && ns_ref_put_and_lock(ns, &mq_lock)) { mq_clear_sbinfo(ns); spin_unlock(&mq_lock);