Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5868154pxv; Wed, 7 Jul 2021 13:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRp7YhWoMIAiiXoQceDmVgb3Kk/fpoCwieoYIEkLvzoyx0Ip41dXH106AL5+lIvG56EmDy X-Received: by 2002:a05:6638:d4d:: with SMTP id d13mr14337912jak.140.1625690535040; Wed, 07 Jul 2021 13:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625690535; cv=none; d=google.com; s=arc-20160816; b=NKf7vvZN2Anrjh8YSPxjHXh/hojZyP3hK52OZCkPTo2tDrtuF7V7vzQupwJsscUUnK GBoMg/XPUPAjhKXymM+pkStAw7wppkX/f6iFj7+xF6kON47mn7Zhnvm1MiNd7DzIzLXc CXgjXAGjSveJWl1CtgRlSQ2DwdyeOEsqT/IGK6pj69gM+uFCGJxxr10Hn5YMa3vWIP9P o5YRfwe6fqyXXRu7E9ypVTxerFghEjn6NjDF5/UXh4mawzSgIjwUjKdsoN4iDMvdJz+c FdwKZo6YdfdZ8bx3J3nOtk7zal7wuJT8bDFiFhB7RnxUVzQgmTTP+b1RytOPltQy86EN t7ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=4wsQrZJX/JS3gSy95ivb045B6144toShZct45ZBG+Po=; b=Mq8WuJKPWioZeeJ6qlIVfqFxKqyXXvYFCh1JrulQiP5nrPYoyPHLaKPo1DfVUgc4CR JooloxNEMxLeDAd+KpS1h93IVIsdkNaXGgYyRalkAL87BQMYRQ7hl6ArG9MpBQwmBxDv dHULRqWle6Zhg+vNokmPhruX9+Nbff4Kab84h3MPnbUQfRhjQkgv9cMDpxzW6Kng9tan bzaVvzxalJ2q4yhO3oJTPONLkfjpAKNAGyJBdU+TKhF2UGebvXcnCKvsleypt45XveB0 Jv0VDbw/2dIYLJjHV157S8aS7urFBLQ6hu6LrHLXw85T7YuMgO5lE1AQ+viVD9ovPxRW APrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si19394370jat.44.2021.07.07.13.42.03; Wed, 07 Jul 2021 13:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbhGGTP6 (ORCPT + 99 others); Wed, 7 Jul 2021 15:15:58 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:36526 "EHLO mail-ej1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230130AbhGGTP5 (ORCPT ); Wed, 7 Jul 2021 15:15:57 -0400 Received: by mail-ej1-f45.google.com with SMTP id nd37so5049983ejc.3; Wed, 07 Jul 2021 12:13:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4wsQrZJX/JS3gSy95ivb045B6144toShZct45ZBG+Po=; b=lJ+NsrcVm1dMmRoJjtVrV/y2k3kBWaZyHbWpEJ2HLO8bmsEyHXnjdZWslH1S6TprhY Tsi4GTT2v12tZgqllZ5mz8nMo7oVss3qOWtmhcqDSEBmQpiv4/SCWH3m6LDp/NdrVtW6 Cr+WcW3poQrtTj99gF3ueXHGun5cLmqotn48fWnanyxFeqrA2YTugZoz5BkI8tQVPzmi ZGSkdYLZCjSicqmrvC80tLNs3MvrhrNtIPC93IG3ZmHswr9413aR/PilqiEQ/F/vLW6A /lwbzPxKy/MwbJVI3fhdWDT0hUVCBARm9doOxyyXwAcGlElXRegJkBs1Grs7DmDldcpT U6bQ== X-Gm-Message-State: AOAM530VsVEBPFBHwiKANyBnGVFRReyvvt/nEaIMrDJ+I/SdHDDGAsgK 159RE/PrI2KvRyY1H1TbYjNRNOQXw4yjrw== X-Received: by 2002:a17:906:49ce:: with SMTP id w14mr25987913ejv.273.1625685195191; Wed, 07 Jul 2021 12:13:15 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id v7sm2354edd.4.2021.07.07.12.13.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jul 2021 12:13:14 -0700 (PDT) Subject: Re: [PATCH v4] tty: serial: jsm: allocate queue buffer at probe time To: Andy Shevchenko Cc: Zheyu Ma , Greg Kroah-Hartman , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List References: <1625489588-26079-1-git-send-email-zheyuma97@gmail.com> From: Jiri Slaby Message-ID: Date: Wed, 7 Jul 2021 21:13:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07. 07. 21, 14:52, Andy Shevchenko wrote: > On Wed, Jul 7, 2021 at 10:50 AM Jiri Slaby wrote: >> On 05. 07. 21, 14:53, Zheyu Ma wrote: > >> So how it comes an interrupt came before >> neo_param() in jsm_tty_open was called? > > If IRQ is shared we have a special debug feature to test shared IRQs > on freeing IRQ stage (*). > But it doesn't matter, the IRQ handler must survive at any stage after > the action has been listed. Yes, but IRQ_NONE is returned from the ISR in that case. The issue the patch is fixing is for a "malicious" device and I am not sure we want to fix this -- if I can put in a malicious device, I can use hammer to kill the box too… thanks, -- js