From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 813E6C4707F for ; Thu, 27 May 2021 15:56:44 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A05E61059 for ; Thu, 27 May 2021 15:56:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A05E61059 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1lmINB-0004xi-CR; Thu, 27 May 2021 11:56:37 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <42.hyeyoo@gmail.com>) id 1lmINA-0004xO-0Z for kernelnewbies@kernelnewbies.org; Thu, 27 May 2021 11:56:36 -0400 Received: by mail-pj1-x1032.google.com with SMTP id n6-20020a17090ac686b029015d2f7aeea8so2643616pjt.1 for ; Thu, 27 May 2021 08:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=otzmIPTsU7me9VhjDZqsQnc40VlJhdamkMEr5sS4/dU=; b=EogyEicW6gcNJ+W6PIGnnQSXTjAKTThaZPXZEZPd6Ea13TEO3DrkqnFF50Eoj0mXSz 2FiLZd1m/EbWtUu95Nc5KAz1CIPnQ8JUrrxf/lL+OszIyd9PYCxgwAqVxqvsXoRnQ8ju 3G5S3oWTpmUqIodfZVixLMebRmBeCo7OxDFW8wjWmo9wlkUSgOv8yMTCtTSmEGHuSZwA VWbCTTmUVv4g4A/Sw+xlPA5rC4IL0cH/sLezOTJWxDrem0NlWgnjHFeA9l4ttnDWGvS7 1VWR1IKGwz8VEAgFR/wLBMRb4g/z3YevRUWNmioCQxbZZooUpbk2wwYrhzIZGSqa6CVk dAzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=otzmIPTsU7me9VhjDZqsQnc40VlJhdamkMEr5sS4/dU=; b=C4ihBVLt3V/17TSZnqjDdM5UGFgriDnr4Y9ZPq9LbyNksDnsIPxWN6u9IF222GeZ9A 1vWhU3TI80UBJKNpiXcIuH5OnU8BajOma/fIJc/xNEBC6WWkF3BbCpHCEpBvF22RUhs8 iRAyVOXZHEZThdJczhKaBpYqrDbX6jK5mVj4RibMaF7m27V17z4zSCMN7wI8tVbXk8Za Xx9LZde0++/FL8xEViH7GOIXedq1cLKRY/EqAIHDHvmsn5B+rddIgltMU7do78czAdmA sz3PDVOC/mBYxY6JAOZ8eG7NJS+3qVEuW7eHDpvdYKo2R8iH9SMDmN9GjBuIHIb3KMXw gK+A== X-Gm-Message-State: AOAM531dC4wSKy6TLU53VPa0+fWwIc5RKA36I37/c/JMR7gbDTmpet7S hL6/pRoQwUsj09D9Jy+wYEw= X-Google-Smtp-Source: ABdhPJzCQq0YWwwO3EDd7jpZ0rBhA4pw+VuROU+NkDnoniFYk2nSy1/WgXCukgSX+X5e6Qq6mw+tQQ== X-Received: by 2002:a17:902:ed8b:b029:f6:7750:c301 with SMTP id e11-20020a170902ed8bb02900f67750c301mr3909522plj.24.1622130994953; Thu, 27 May 2021 08:56:34 -0700 (PDT) Received: from hyeyoo ([183.99.11.150]) by smtp.gmail.com with ESMTPSA id l126sm2195910pga.41.2021.05.27.08.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 08:56:34 -0700 (PDT) Date: Fri, 28 May 2021 00:56:30 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Lukas Bulwahn Subject: Re: Performing pointer arithmetic on a null pointer? Message-ID: <20210527155630.GA139168@hyeyoo> References: <20210527151443.GA138263@hyeyoo> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, May 27, 2021 at 05:27:06PM +0200, Lukas Bulwahn wrote: > Hyeonggon, > > there is a patch series from Arnd Bergmann, a well-known kernel > developer and janitor, hanging around here: > > https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=warnings-5.10-2 > Oh, Arnd Bergmann was already working on it! > It includes a patch to address this issue: > > https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?h=warnings-5.10-2&id=cda293a8ee8a2bc763c33828cbc9ff21af987d45 > > The patch title and commit message indicates that this was submitted > in multiple versions to the mailing list. > > You can find more on its progress on the mailing list here: > https://lore.kernel.org/lkml/?q=seq_file%3A+fix+clang+warning+for+NULL+pointer+arithmetic > Thank you for giving some informations, it's always fun to read mailing list that I can understand :) > It seems that it has not landed in linux-next yet, though: > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/?qt=grep&q=seq_file%3A+fix+clang+warning+for+NULL+pointer+arithmetic > Yes I was doing it on linux-next.. :D > The commit and discussion around it will give you much more technical > details on the issue and its resolution. > > I hope this helps. > > Lukas Thank you for giving some links. it will be much helpful. I'm going to read it now! Hyeonggon _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies