[{"id":3685431,"web_url":"http://patchwork.ozlabs.org/comment/3685431/","msgid":"<20260503154557.GA1455207@rocinante>","list_archive_url":null,"date":"2026-05-03T18:46:27","subject":"Re: [PATCH] PCI/proc: check __get_user() return value in\n proc_bus_pci_write()","submitter":{"id":77280,"url":"http://patchwork.ozlabs.org/api/people/77280/","name":"Krzysztof Wilczyński","email":"kw@linux.com"},"content":"Hello,\n\n> Check __get_user() and return -EFAULT on failure.\n[...]\n> @@ -136,7 +136,10 @@ static ssize_t proc_bus_pci_write(struct file *file, const char __user *buf,\n>  \n>  \tif ((pos & 1) && cnt) {\n>  \t\tunsigned char val;\n> -\t\t__get_user(val, buf);\n> +\t\tif (__get_user(val, buf)) {\n> +\t\t\tret = -EFAULT;\n> +\t\t\tgoto out;\n> +\t\t}\n\nWe could move to get_user() here.  This would allow you to drop\nthe access_ok(), too, as get_user() would return -EFAULT on error.\n\nSo, something simple, like:\n\n  if (get_user(val, buf))\n  \tgoto err;\n\n> +out:\n\nUse \"err\" for a single goto label for the error path.\n\n>  \tpci_config_pm_runtime_put(dev);\n> -\n>  \t*ppos = pos;\n> -\ti_size_write(ino, dev->cfg_size);\n> -\treturn nbytes;\n> +\tif (ret > 0)\n> +\t\ti_size_write(ino, dev->cfg_size);\n> +\treturn ret;\n\nThis can be kept simple:\n\n  err:\n  \tpci_config_pm_runtime_put(dev);\n  \treturn -EFAULT;\n\nThe i_size_write() is such an unfortunate band-aid, but unless we have a\nway to set the size before the procfs entry is created/made visible, then\nthe problem that this aims to fix is here to stay for now, see:\n\n  ecb3908046ce (\"pci: write file size to inode on proc bus file write\")\n\nHaving said all that, since you are looking at proc_bus_pci_write(),\nthen perhaps an update to proc_bus_pci_read() to use put_user() would\nalso be prudent.\n\nThank you!\n\n\tKrzysztof","headers":{"Return-Path":"\n <linux-pci+bounces-53644-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-53644-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.175","smtp.subspace.kernel.org;\n dmarc=fail (p=none dis=none) header.from=linux.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g7tzH6yW6z1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 04:46:35 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 163BC300C5BC\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  3 May 2026 18:46:32 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7A93639DBFB;\n\tSun,  3 May 2026 18:46:31 +0000 (UTC)","from mail-pf1-f175.google.com (mail-pf1-f175.google.com\n [209.85.210.175])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E33F399374\n\tfor <linux-pci@vger.kernel.org>; Sun,  3 May 2026 18:46:29 +0000 (UTC)","by mail-pf1-f175.google.com with SMTP id\n d2e1a72fcca58-837dfccd950so12004b3a.0\n        for <linux-pci@vger.kernel.org>; Sun, 03 May 2026 11:46:29 -0700 (PDT)","from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-835158bc863sm8514553b3a.26.2026.05.03.11.46.28\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 03 May 2026 11:46:28 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777833991; cv=none;\n b=AB9j0De4PSLAuimnIMkLgoH59dQhB+TfSI70tN2LJ0PGqXfehkpQdSQhFfoYmL8aBL7bgyBqsgzrZDhXUd7Sy3e3tggMhs9WLZhGbJ86GZCK2z2PNuucXqh321hJ3fM7v/ek9QCnUaREgnM0j/At1EUfITvPP8mKuHHJrgCFY6I=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777833991; c=relaxed/simple;\n\tbh=hXqSns0mZXRsTyQvYM1QQtbBtCTGXJw/NDYOYiyyiuI=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=BtPCgVuTGUVXyrTTl3gc9eezLCeuUaKEAAQukXPF2s90bnGOGvvCeQbQykVXsdp/SMruUElzXKL1lkVenNsZGwpFcQqsnHsw0ptuZN0Hy2CLn4b2cSfJ9FI235gZe7Vi4EWPF6XeloMWeQqxE6Z9O53GQEkc5hZUkF24Q8y5hmE=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=fail (p=none dis=none) header.from=linux.com;\n spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.175","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777833989; x=1778438789;\n        h=in-reply-to:content-disposition:mime-version:references:message-id\n         :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n         :subject:date:message-id:reply-to;\n        bh=i2HxLSSoyWjc7srvpQpGKBdhtVDS99Q1hYlUtIuh62k=;\n        b=LmIOvEucb4PIFanRxSCdK+hPj33YqBmcfGUiwZVlCCioze+lZO03LK/dUHRzhBWbA+\n         +J5qYv4A9MacMO4vO7o6H0WIU3ltGC5CoDOgdPd/zHtUH+H/5V6qEKEev/64/cVQYktH\n         s51bzy3t94naAxW/H9PuQ3US20ctPl0rjDVbhKh0EquY4/MYFCjU7w5c5ljAxKOPTymR\n         dEMWjIcC6hMA1LGyPnVei30cvlC7Syg4CPxpx5C3lTcpj8chzuhpPchWNl6Nfqd4A+WS\n         Obb4B7H7jba/UF79Hh/Z2X1afOYrBTI8holTLUcJ9C0oRxRjtxVb85kPIU/xeo8mxr/k\n         XG9g==","X-Forwarded-Encrypted":"i=1;\n AFNElJ9o4bYEiRU1oeQuYDvsEjKWlDrJJxh0ukfsfYxVGXSpVa0lX0wbnUlusTcfd+SfsgPCS7SEPE/C4Ho=@vger.kernel.org","X-Gm-Message-State":"AOJu0YxSARomU8c4wbsgybGsgO1gRPiYs8UpgpmVBx+CIQCdiML73o76\n\tKniz/+/li7njO87UMmfaFEijTFtfo+YN9vzN2d6ZD8KmEYtKxF08xcg4","X-Gm-Gg":"AeBDieuxm9HCVmzjV3k7GdXzFtEa95GmdAa5SMKxs6olPcmuGZrJjOQEjzuWb2SVnCv\n\t7SNegf7e99UcGAjARxFtShg1p8YOE1OS9zou25dM9IPQdedO7+epMH0CgBrIQw8n7tRVfc6ikVZ\n\tOOyx6a6XkGF2HbbUemnhmLTWQVqee+ec2h2f93h+yxdMzM0ZFx9oMvRhuoJDuoCW7BmVbUN23Q7\n\ttGQl792m8cG2oQ0MGkpxCo0Clbd94xbgN2kEyaqWDYaCYSvMWyhL3mfpTEdwNo+q9/WlMRwIBsu\n\tTQsePDtsLAxkugRWKq4q87ZCtIEsPiWBe2HJ84boEmNLke/HGjPfzT9KYkccYjXIe1RP1LfJppO\n\tprIq1G1dRv1AryMYtjoW8gcJK+OkPqFx3wafJyUSgO//sK+xAUtjuX0YmG64w9ptwJaF7gpPuhx\n\tJaWfwMQFdmkSowLlvlS069j0iGEPYySSQhPkNi0WQE1hXNhNf9ugJKwZGj4iELQUPERDEXLvL9/\n\tsnCUcAXQ8EMM/kLl8imdLQfMbV8qmD7QGaw+n7B4+Lwf2UHNIkHwwJjDK5SWElAVg5l5K4ja8SQ\n\tyVIVq+2WQu9Olah+Efn50PU3ccaKUG1RWRi1U/9wKQ==","X-Received":"by 2002:a05:6a00:bd0d:b0:82c:212a:a9b5 with SMTP id\n d2e1a72fcca58-8352d24425fmr6654243b3a.36.1777833989242;\n        Sun, 03 May 2026 11:46:29 -0700 (PDT)","Date":"Mon, 4 May 2026 03:46:27 +0900","From":"Krzysztof =?utf-8?q?Wilczy=C5=84ski?= <kw@linux.com>","To":"Deepanshu Kartikey <kartikey406@gmail.com>","Cc":"bhelgaas@google.com, linux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n syzbot+c7604c9fdd7580cca4e0@syzkaller.appspotmail.com","Subject":"Re: [PATCH] PCI/proc: check __get_user() return value in\n proc_bus_pci_write()","Message-ID":"<20260503154557.GA1455207@rocinante>","References":"<20260502011446.125268-1-kartikey406@gmail.com>","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20260502011446.125268-1-kartikey406@gmail.com>"}},{"id":3685468,"web_url":"http://patchwork.ozlabs.org/comment/3685468/","msgid":"<CADhLXY41kZbPT5EdkCRMqjvmw7iguLaTMcrGDf+-5JRW1xE7pg@mail.gmail.com>","list_archive_url":null,"date":"2026-05-04T01:23:19","subject":"Re: [PATCH] PCI/proc: check __get_user() return value in\n proc_bus_pci_write()","submitter":{"id":91725,"url":"http://patchwork.ozlabs.org/api/people/91725/","name":"Deepanshu Kartikey","email":"kartikey406@gmail.com"},"content":"On Mon, May 4, 2026 at 12:16 AM Krzysztof Wilczyński <kw@linux.com> wrote:\n>\n> Hello,\n>\n> > Check __get_user() and return -EFAULT on failure.\n> [...]\n> > @@ -136,7 +136,10 @@ static ssize_t proc_bus_pci_write(struct file *file, const char __user *buf,\n> >\n> >       if ((pos & 1) && cnt) {\n> >               unsigned char val;\n> > -             __get_user(val, buf);\n> > +             if (__get_user(val, buf)) {\n> > +                     ret = -EFAULT;\n> > +                     goto out;\n> > +             }\n>\n> We could move to get_user() here.  This would allow you to drop\n> the access_ok(), too, as get_user() would return -EFAULT on error.\n>\n> So, something simple, like:\n>\n>   if (get_user(val, buf))\n>         goto err;\n>\n> > +out:\n>\n> Use \"err\" for a single goto label for the error path.\n>\n> >       pci_config_pm_runtime_put(dev);\n> > -\n> >       *ppos = pos;\n> > -     i_size_write(ino, dev->cfg_size);\n> > -     return nbytes;\n> > +     if (ret > 0)\n> > +             i_size_write(ino, dev->cfg_size);\n> > +     return ret;\n>\n> This can be kept simple:\n>\n>   err:\n>         pci_config_pm_runtime_put(dev);\n>         return -EFAULT;\n>\n> The i_size_write() is such an unfortunate band-aid, but unless we have a\n> way to set the size before the procfs entry is created/made visible, then\n> the problem that this aims to fix is here to stay for now, see:\n>\n>   ecb3908046ce (\"pci: write file size to inode on proc bus file write\")\n>\n> Having said all that, since you are looking at proc_bus_pci_write(),\n> then perhaps an update to proc_bus_pci_read() to use put_user() would\n> also be prudent.\n>\n> Thank you!\n>\n>         Krzysztof\n\nThanks for the detailed feedback. I will send patch v2 shortly.\n\nThanks\n\nDeepanshu Kartikey","headers":{"Return-Path":"\n <linux-pci+bounces-53650-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Py3hqYbY;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-53650-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"Py3hqYbY\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=209.85.128.172","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"],"Received":["from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g83nR3KZBz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 11:23:39 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 466613001187\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  4 May 2026 01:23:35 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CE4F91A5B90;\n\tMon,  4 May 2026 01:23:33 +0000 (UTC)","from mail-yw1-f172.google.com (mail-yw1-f172.google.com\n [209.85.128.172])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C15C8248B\n\tfor <linux-pci@vger.kernel.org>; Mon,  4 May 2026 01:23:32 +0000 (UTC)","by mail-yw1-f172.google.com with SMTP id\n 00721157ae682-79a7109f568so38977157b3.1\n        for <linux-pci@vger.kernel.org>; Sun, 03 May 2026 18:23:32 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777857813; cv=pass;\n b=jRqmoCQFE+kfihC0Swd4jX4e5QiU6mnNT3SaGswphY2hdxvHATg3XS58D/tAMVXnD8uiDA3i1kTX4eJLSbNGyKVp3vNBwIrmGVpCw3trgxLQGsU/dJV7WeiSl2bF6LnaKoW9GZM9ffcCeXSqhzXWmrdMoQWMpr4MPwnFnz/iX1Y=","i=1; a=rsa-sha256; t=1777857811; cv=none;\n        d=google.com; s=arc-20240605;\n        b=DKfp1dXGWsHnmQD/Tfxf3UnQuvIlLkg6ux92bxdoAJ/Gozy6Hw6RLK+5ZSVkz0Sbdk\n         kL/7jcxf7EX76v80wy9lBRsEJKzZ4geSsBlxrJQAnkS7kmTiSSi/QLd4OGtGx96CfK7Z\n         QGgtbzq44M34w9IUb/eiJbHWhpftk6dkHQgutlu+zmhHbuGkyortTHyhm5Vru6z1PUQ/\n         NgqnWsgkzWnwJWbM5ZqcahmXje3AQFDKw1ntieyiIwshyaEXMM7IrKV60PwgfiCCOoAX\n         eKMYgK1VSff166S+8ZCxSoRZVc+9blglEjcy2hm3vjtQUCoGybt+/DVkx5j0a0gcd/cn\n         g78g=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777857813; c=relaxed/simple;\n\tbh=8sdI02B/mV8t0/D1hNqUUuDuSgv5DnBU3ptBK27Rk1E=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=HzJTZJnuqUPdnes/IRTPIkYaX9+UuJvi2furglbn8X1WEQ2HcRQVtPMelOYLHv03yuRLQYY9KeWQmiH62xIw7vGXZ4rq6zDE1iJeFSoQT5JZzQ/oqrU3Uk5gQG2pPXr7k6/A01I2UIcSGvZSm5MDW8FuX0f4sDfm/nIw411bPyI=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:dkim-signature;\n        bh=GnnjZJnxpC114lgHTXq4H9DIaCx9qFlYg4tgp/jUJVQ=;\n        fh=99/qQXvzscAM7yzbIbgYcELHOp+r/6xWiQuPGB9MxbA=;\n        b=azIlFCCOCJ3KZOgncNueIrBz2SdhsWlRIEWRaL9IB5NKprDPe2jSD3MxKJos/iF1qD\n         pi4KCO5hjeI5sSjWjGxAJ8iddFdrgHmmIqk+cM46aMRakDfdLGIJe0PZSJ5xYR2KZsFr\n         /qmNUdEmLPFWQdiCy4x4Jyj7GQdvX5LYgoGjZG2C4x2RIjy74aVymC9W5vjM0ecNFWCY\n         MTR2hu/2QmYE0uizuMwXobVaay3y33SsEPNxSbu5d9OJxNVnkacPXZHQFTGZyVKKPqOu\n         ZUGTmfwhoPQ5u7owZE5rAjaeNeiEzU/GELzumDGyvI6TNTFnDOXLqMOTno/oqcv4ZhpZ\n         UXJA==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=Py3hqYbY; arc=pass smtp.client-ip=209.85.128.172","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777857811; x=1778462611;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=GnnjZJnxpC114lgHTXq4H9DIaCx9qFlYg4tgp/jUJVQ=;\n        b=Py3hqYbYtD8Ot3eb5yo03KWIeBc0BH2JQJs55rr7VF6beAZb007z215kO6wAjjGy4y\n         8AG5EXT+iMlLBgrBeuYmvmnTFuG2SiMEsrK7UgW6YCc24/9WIcvx1alfuIYv4W/pJ2m5\n         D3xy22QyMQyUHI7QtUmAf1GzllTr/SWI/eKEgoTgpFSXDjgBe6O0321eAs8J2eXRJWpg\n         /KM64BW+Zi8Ei30dTTnQH8l3uQELMwsoxJRPFU4czruYfMnthzKeJcGSaxzFe2fnIc2a\n         Qts2faR5jF97SOiKUG/8BKUVtJeNSvsKnCFrxHlpReptUjAzOUpP/tQusWolk8bdXR/R\n         YnLA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777857811; x=1778462611;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=GnnjZJnxpC114lgHTXq4H9DIaCx9qFlYg4tgp/jUJVQ=;\n        b=jHZPIRR3Owqe2tKD1M0yZUhYjVS5lMm6ZYZccWPohEtB8Pr7byPYRUWy5/FXXtSMxX\n         1p8Woua43pZzwqsXFiaKrSh7EEWpMJ8SJjbVmnfSWZWmXx478Y+DbPaJUITIYb9lGuDm\n         lX8j2Wkg2/9errHn8Dy1pW5QhD7yDFSiL4PoYOaKLzkr6tAJkYoIckq2+iQCBH1U2QOl\n         F2o7RWlTLkdHcPpISJiGbsb3CKzuRAQ5XsSnKLK2yt7fGu3iAS9LjUGDK4vFFVvGNQJI\n         oA7dRwoZCAhgQeeT1CBIH636fY/ErS7pQr7E7ntkreK0teiF+iLag24K/xz/Az2qwOBy\n         tHvw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8vyN+s/E8SY/N8K1TYGzFpx5NbpKwFiXrfPyQlgwzsmx8BYuTWEZ0NKmVC+JlJN8pJYZOysScuolQ=@vger.kernel.org","X-Gm-Message-State":"AOJu0YzEPsWrrCDgyywqW0VGtcgVJPl3dK6rQcjFC2nTa6va2DEPMvF4\n\tOwLgy6o1eO3tP1hkQwrXpJCYVdIsTKfTyuhpeKn09PfGHakKcCgc2robTSPDkvCbSOjO0UxClYV\n\tzXO7Zy0IlunlXTanRa+7CUQcDf79Mdcs=","X-Gm-Gg":"AeBDies6dl/GesrQNtqsnanLOJkJtBTWLsC6+mvKmt4+OLMRnhJbeSvnMOT1anDwCG1\n\t4wsZqFq5u4nR3ELLtGzQ8bYpL/hOXtjqRyho3L8ws255JKwKg1UZWkAUQmQx3LDRFiTCaTJwZsU\n\tkxr7aGE8PtyiabvwyMx/f8zy2RB1LQn4tUMo7b6LUZNIEvRaSnPYbuUb0/rNgP5KJCEs+8ZbVVs\n\tEmt5DfbISWasscF/8+4Js1S/DIf7gcH0cuIakmnFqzP7G6XRjVHcR61UpUw1Vahn9hV2RFgWGvn\n\t83u6gAl8Ux0Te8UKJ82k+2Tp8IYsbDQX2bOewg2av316p36rlB0jaVaV974oS82ct4R0mRs4s3o\n\tVRz579u4=","X-Received":"by 2002:a05:690c:e3eb:b0:7bd:998c:7397 with SMTP id\n 00721157ae682-7bd998c78d8mr6708707b3.26.1777857811454; Sun, 03 May 2026\n 18:23:31 -0700 (PDT)","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","References":"<20260502011446.125268-1-kartikey406@gmail.com>\n <20260503154557.GA1455207@rocinante>","In-Reply-To":"<20260503154557.GA1455207@rocinante>","From":"Deepanshu Kartikey <kartikey406@gmail.com>","Date":"Mon, 4 May 2026 06:53:19 +0530","X-Gm-Features":"AVHnY4LAzKE65UAqCQJ1ussP5u7mZnf1aw8lE27SCzqOyzz8PbJSatHCvDc7s8M","Message-ID":"\n <CADhLXY41kZbPT5EdkCRMqjvmw7iguLaTMcrGDf+-5JRW1xE7pg@mail.gmail.com>","Subject":"Re: [PATCH] PCI/proc: check __get_user() return value in\n proc_bus_pci_write()","To":"=?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kw@linux.com>","Cc":"bhelgaas@google.com, linux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tsyzbot+c7604c9fdd7580cca4e0@syzkaller.appspotmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable"}}]