From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 944EE472762 for ; Wed, 2 Sep 2026 12:09:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788350985; cv=none; b=FPABquZT0K16N/ghUbsksd7DUNnSDMLK3/nWVAELU9lpK3VpCxdXClQjWLEog8XTz2PwiBRNYzHg3xSynhyCiYIlg7AOjmFzDePPlgmhj+YyK1sD20ystMHr21RmufMbRDdoEA0Mhm6RaDpH8+J0AYl2JGNL3AWATyeunf8MzZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788350985; c=relaxed/simple; bh=GTLCTugw7PjjvVnLCGl/oOTPq/b39jKFstNMsphi4vM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=R+X1T+jEPJwrf0Dc83uLaqzww5YJz/43dD4zGxD7fVgSHX8IBZj5uI/cA2mgt1OE+apMZIG57s1PeQW2zekvkZCenjwnFj9tdNK9vK/6wGC6GoigEKYnxFEF7VxodSy+Z9SxIuM2ZdPUATSGyMxW9WwmYwtuu4OXgbuBHwfH1Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Fx9WXIjc; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Fx9WXIjc" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-47fe89fb333so619258f8f.3 for ; Wed, 02 Sep 2026 05:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1788350977; x=1788955777; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cpv4ZZhQaX1kdYbkUZt5Cm50+G2KZgBu15PDYo6wGO0=; b=Fx9WXIjc9tFoB+puGS7uNB+7hiVoiTnw/bXD8PoBgNROG/eDIV0ogbpD7WkdmfIoph eyaCG1UYCyuu/DFeMW46YqPg1Jk1/duzRSRsBJW877JWSksGvz3ze01zhJyoW3pHla2K ffHleycdGK9KpU+lKApuGpLylXbWuneU+bDHTogu+VESouaUAdnSFHnaBsbBVK3qpSzv SknU520PLpW3QZdIObCmM7DR3pCF9fDxz1yLQR6ok5H8WlgVZz449rmoecS/gdAbtwsQ Gxp5SYGpJZuM7ZmOZx5sRDQkK41Jy+bwr/oJVRJp7IFX8UaXEkGNhaKaDQwrEp/MVyf4 zOFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788350977; x=1788955777; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cpv4ZZhQaX1kdYbkUZt5Cm50+G2KZgBu15PDYo6wGO0=; b=TnLt64WLWiapH9BlUeGCC3hDNF9IdArcVTIViBqlZI4JTzvZvCaKFdM9pcj6NmTfmd OCfRdrcGLuEBoEaU5Pvfh4Epj5GSd4aroj5UUAZZhTmGosizphUiEjWx8h0Kdjpawq2c ZJJmiICn6ucRMys7FW1zVYb5woEZ+t+9wnkT7nruz7DsyMIQ/mVwf5wOTfa7LAG40RaX ItNyQjfhxlCJZzuc21IL2O1AbxDuIxEqkumkGWNeS8HFvQeZCgmZdGd1fRof8HNJ3g6R JgFfabD7IHXSkr5oZaeJva9tkzixzmmqdoX66skpmxWaRVe3B9nX3Fm38Wb8cca2XNpR NfwQ== X-Gm-Message-State: AFuF++m4Yay/nTMGO568vMXGQ5LzP7VKgqwTJGBRxoUgBlBxjbAbBc5Q 35yBIwRU6B2dp6tdhSu1JyKArJjXvqDT4FN16+YYIAeofoZx2SVwjS6QeOPomPr9UbA= X-Gm-Gg: AYBFou2cSp3CthIJrfbFfKD5nzOhc0H0t2VNX+WGyJagMP1dF0zrhtBvC7XxSPUXNWq Iw7vq1KeYMRHoTEJLL/yXIdhLt45nTOVx5LhpA/fSd50DPAMC0E2vW+VFra29IfmfmWQ134euV8 NJHApDJH6ajsprGOPkR+m8ACo11lZtZ3KB7nQbTUo2joDrjcc6vMz1nPy1wtivZI6Oc64A/AW0f u67PNyeM2yOkYY3EUiSibazU1nFsytpP4WoKCiClieHBC7kiTs79JdiK33ehJHzEx4wZSLBsDbB s0ZRFeXzx7l5HXF6AWT51EYuBB8mwFUEJqJNO4OhmQ+ubU7QpKTEv2DJbCS9tiEpIfWgNBZbfFN 4oziCltnDjCPhodNSAeaCvEPVWFzJwHbSA263MrHJSyMRwzzVwFdGIICwvD3m6JgMaekUr1tG/h EO70IAYwvR6tRjE4cQJtX/Gq2GCTVCIq/ibN9hoJT1oz84/kgZd8BqDLYWndUa2BUfjjmlL4/MZ BSfISQEVEjlkX89u3cF0Oz8YCNIPxLcbDltucnl X-Received: by 2002:a05:6000:61e:b0:484:36c8:ffde with SMTP id ffacd0b85a97d-4847b625aafmr8604788f8f.0.1788350976883; Wed, 02 Sep 2026 05:09:36 -0700 (PDT) Received: from ?IPV6:2001:a61:1304:a201:f0d3:bdff:55cd:3f16? ([2001:a61:1304:a201:f0d3:bdff:55cd:3f16]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48448e6f604sm6073105f8f.2.2026.09.02.05.09.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2026 05:09:36 -0700 (PDT) Message-ID: Date: Wed, 2 Sep 2026 14:09:35 +0200 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [syzbot] [usb?] [input?] KASAN: slab-use-after-free Read in k90_record_led_work To: Jeffin Philip , syzbot+0b8bff5929865345b29e@syzkaller.appspotmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <6a937393.1d9ded08.62e62.0113.GAE@google.com> <20260831054632.18179-1-jeffinphilip14@gmail.com> Content-Language: en-US From: Oliver Neukum In-Reply-To: <20260831054632.18179-1-jeffinphilip14@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 31.08.26 07:46, Jeffin Philip wrote: > I believe there is a patch for this already[1], but it has not been merged > yet. Was written just as the merge window for v7.3 opened, so might have > been the reason for not being merged. > > [1]: https://lore.kernel.org/all/20260817072831.139954-1-ccc194101@163.com/ Looking at this patch the following sequence seems possible: CPU A CPU B enter k90_brightness_set() if (led->removed) [FALSE] Enter k90_cleanup_backlight() drvdata->backlight->removed = true; [TOO LATE] cancel_work_sync(&drvdata->backlight->work); [NOP] schedule_work(&led->work); [THIS IS BAD] Just cancelling the work is not enough. Regards Oliver