Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6652456rwr; Tue, 2 May 2023 03:41:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zBs3A9EXl7/x8bVyUBA+pWnTc5mV2zVsu/1ko9h0WifX06EF8XxcUSlbE7nRX/lY2OKPM X-Received: by 2002:a05:6a20:914f:b0:ef:8de0:6a5 with SMTP id x15-20020a056a20914f00b000ef8de006a5mr20536669pzc.3.1683024104742; Tue, 02 May 2023 03:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683024104; cv=none; d=google.com; s=arc-20160816; b=Td9Rqmi13kgxmfEBC2nktBFMDSfQsc1bqIi+94UMP9VYsoqKzCLkiDePQbmu55EEas Xwa9h3+76Zg0akaLwNKOlfW0/I1LUA9eGIBTn67Rl955sSmJ4w3VY7i0OJ92dP0j81V+ 09tNHiGfmjRDYEdEFA/fbAavVyyKt1ZwnA9lm9s9fYT293sioiBUtJOwhnKxcJ4APpj8 aNpM40ql1Z+fobPAqp4O60Aog8uNDj//hk0g/9TRFKVMRTBtgK4ZMftYfaEkx68/sXxv W0MpKCylYS6hqWkGvpi4NhZM7gyKt5g8C/w7l++f0KwuH7e8q3YHFB00YGLKnRNrj0g3 OjXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MuOjRmgjtLhSlTYCy2tb4/lYCbxRspWajmTs/M9Mi5o=; b=X0nJ/BpoFbmYo7RMup8ogmugp2FszGZdTQs0rT6qPxH5J0HNXjB5faPSqt6NvkZB3K b6d5f7DmxxrikNe1IYUn6Aum5YSWLqDltxlD94bgB0dr/tmXnPMf13GVwCp7oKqsatKq kxvzo7NeNigoa4D5zqHf6tm7h0bWOM9OOB2m1c8D07i6VClN+5OMN66IOl5Eso6FSa3V iYYSfZRKxId9BWx4I8Gy1AG0PXncNwX9/CZQIQ2+vp+rHXyDTt7CPyxMQEtPiL+opjbL fmdByoy2dOdPPoUXBoLmpE09+S9I/8JIwLizNQ7azmrk53kD56QOTiKIEPFTkFVhrX2q TSRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kCk2ro6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a636303000000b004df18fa49aesi30375154pgb.796.2023.05.02.03.41.33; Tue, 02 May 2023 03:41:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kCk2ro6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234023AbjEBKfe (ORCPT + 99 others); Tue, 2 May 2023 06:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233847AbjEBKek (ORCPT ); Tue, 2 May 2023 06:34:40 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B81A91BC for ; Tue, 2 May 2023 03:34:20 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f193ca059bso21132515e9.3 for ; Tue, 02 May 2023 03:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683023659; x=1685615659; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MuOjRmgjtLhSlTYCy2tb4/lYCbxRspWajmTs/M9Mi5o=; b=kCk2ro6a6YQX9+tLrqSnk2dY0vqPBD7XtM6X7zlR7e6aO8TX8mHsbm9ij8O3z6T9LZ +CosefXJJij23PSJfFdeb4YvWiu1Y74TIZGHqygaG1JT74s3wjtumzVFUj0VFzGi3qVA XOxqkvw3yEKx08Q2ua61LBfY+gcUsOj/qic1XTGva4Zw4vrZILrB7MGxPnNu/NC9Uz2L jKfgofFg7AP556IKUGSC+aM6R+gy6NNTZE6+HAqYzuZqtRu+w+aJoxtRtBYqmqgl2Qy4 8sOo6pnaDmf3NgP5uB6tDXhKxY/P9NHsN5IsVBMZ4FOUGMOlW08Dar51dnzxlYQRoIHe kiWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683023659; x=1685615659; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MuOjRmgjtLhSlTYCy2tb4/lYCbxRspWajmTs/M9Mi5o=; b=V/1ZeFQ5U8f2fe414hL0U1mgjN2amsrDD+/sLpIXg/5ZUQy9P87DMInJnrBb/NaLOd 0rwdZOAnNIhpKAeNZzDaCBIzZ5RrdhCTxvnfDEw1d5X8MC6QXI9n/9F63YdlfPFyghbe o0Hy18yTtxC3ymSumsCso4W9Y5M24GwTESy2/9O7HTROPNxdy91fNwZfQB68rdUYO+dN c9rbA2YxLaJ+17V7SbNHYMRV8UITBehh2LVMNnoZHkR7R+KZiSKbZPnLAfxkbiD+UAm+ r4ikp0TgVDin2tDC1yNZE4IbsVNwNuNCiycDTcFd1Ktqyk8tYaS5woW1z3/ADGXMxGnm QExQ== X-Gm-Message-State: AC+VfDwk20zK5CaYHEUstlOxKYHSWd9d6sofefkP/qNAYZCTA+6z/nZq 96Mljth1R850fv7s6sGBMeJGhQ== X-Received: by 2002:adf:ec4e:0:b0:2ef:ba4f:c821 with SMTP id w14-20020adfec4e000000b002efba4fc821mr12223707wrn.36.1683023659238; Tue, 02 May 2023 03:34:19 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id u7-20020a5d5147000000b002cde25fba30sm30764590wrt.1.2023.05.02.03.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 03:34:17 -0700 (PDT) Date: Tue, 2 May 2023 13:34:12 +0300 From: Dan Carpenter To: Dongliang Mu , smatch@vger.kernel.org Cc: Dan Carpenter , Vicki Pfau , kernel-janitors@vger.kernel.org, Dmitry Torokhov , Pavel Rojtberg , Nate Yocom , Mattijs Korpershoek , John Butler , Matthias Benkmann , Christopher Crockett , Santosh De Massari , hust-os-kernel-patches@googlegroups.com, syzbot+a3f758b8d8cb7e49afec@syzkaller.appspotmail.com, "Pierre-Loup A. Griffais" , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: xpad - fix GPF in xpad_probe Message-ID: References: <20230414125603.686123-1-dzm91@hust.edu.cn> <011c00e7-c351-4331-8be4-1c184d5773e1@kili.mountain> <3ccc85bd-0541-4ffb-a207-dfc533a2c0aa@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 23, 2023 at 10:33:29AM +0800, Dongliang Mu wrote: > BTW, do you have any plans to improve the code readability, directory > orgranization, documentation etc. of Smatch? It's hard even for senior > students to start with. I have created some documentation. Read the following blogs in order: https://staticthinking.wordpress.com/2023/04/24/smatch-data-types/ https://staticthinking.wordpress.com/2023/04/25/first-smatch-check/ https://staticthinking.wordpress.com/2023/04/25/merging-states/ https://staticthinking.wordpress.com/2023/05/02/the-cross-function-db/ https://staticthinking.wordpress.com/2023/05/02/the-param-key-api/ https://staticthinking.wordpress.com/2023/05/02/smatch-hooks-and-modules/ https://staticthinking.wordpress.com/2023/05/02/debugging-smatch-checks/ Email the smatch@vger.kernel.org mailing list with any questions. regards, dan carpenter