Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2082609pxm; Sun, 27 Feb 2022 10:46:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhhKxoa5xUukjICAj7v9AWze9aBP+hsTtdLAW1XiaRgiomfkRsrtrvnHIBr02sYzfEB7N4 X-Received: by 2002:a17:902:8492:b0:14d:5ddc:9df6 with SMTP id c18-20020a170902849200b0014d5ddc9df6mr16970254plo.15.1645987584583; Sun, 27 Feb 2022 10:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645987584; cv=none; d=google.com; s=arc-20160816; b=B3DW4m4wMIMS24JNumxeN85tijaB+SgoDrz3cL7EWVxvKyiP6UlK0ph5SP2jpDO/ww 3NaIgg6OHpUJKPApSsuqFER22gp6oLatY584xH41v2yUPhW1Tw4YLEDuxho+dV38+vFF zEKi/hx5wqtsUC1RyqQsZi+FWl9UwgaGG9GF/CENSnCZysQsCwl2DLeaqkJUOKYmq38W OR8vE6agnuUnblQTbPGc24e7cOYHjcJs149NJLZDsptY1U4V+0nocDvJlXwfLrcfgpi7 sZHTAKaNVweIPLLabDDQR5jnjC0o62eZrWSIte5XRm0y60Avypg5LAPk9cW3ZT8JPXvN F2jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1ie9R3kn8UrFErPZNTabZX+bV5rPgBvbemFazR1ScXg=; b=QHPdL+vqYtbui+Dmt/9TqMHvhDZQ7iCzrYELQKGRMmxitcUqt6SsUQDoYhJH+GFomV 4CyJs8f4PSwu6whbFpZgsPcoHOobecXw9qIRjS6jE4ZgVobwNkCRBPCBHFKEqciBsSDQ b09k5jgN1Y0FDzg5O7A+T5URG64LW1hkPCdbyh/SHODLA/pXNPljCXSJYpmWX9lu1psW weqCR86Fb0lMksbUJMQ4v4rjxl2gwmtmNK3GW4zU87WOcYnyPdfbGK0uQV9tv4AWeLOi eCyhDXXHausumsBG1itjfwaDdPtCrexF55nuIec/UoPSHaMHcDQo/HwMXTkN13QiU2Co 3+JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G85nEoEf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a630f54000000b00372d1de0d2csi7334228pgp.508.2022.02.27.10.46.08; Sun, 27 Feb 2022 10:46:24 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=G85nEoEf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbiB0SNC (ORCPT + 99 others); Sun, 27 Feb 2022 13:13:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiB0SNA (ORCPT ); Sun, 27 Feb 2022 13:13:00 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C61C7639F for ; Sun, 27 Feb 2022 10:12:22 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id q4so8451224ilt.0 for ; Sun, 27 Feb 2022 10:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1ie9R3kn8UrFErPZNTabZX+bV5rPgBvbemFazR1ScXg=; b=G85nEoEfvkSdaMqOwXlse+RXA7cNSbZR9kA8ylgZjHjkq3SGUzugLktvSJBAOcBC8v PGHJBNtVRuup/vBLcdUDzESV9vi1n+Pe40mnZBmOYVcesNQf9jQrBnbI0GdjbedrN/rI GlqwPah7aV/S5f8D+0tCPmEf3PMOHVSMjo+Wiong8t6PEcUxx/nKyOtyAMaTCQU2AuhL +rtea4Da/29yBkeV9RwIdT43Np8OKn2S6RRmtUIo5kSnpk5cqlzwblRFWcOMDWwv9FIN ns8k7J88cjRQmFtfdpZGF8Xq0+W6ZKL1ae61++9iYdVVK4NqRZgtIjzsn73IIb68PBpB EcCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1ie9R3kn8UrFErPZNTabZX+bV5rPgBvbemFazR1ScXg=; b=WrmYhXXSkOJK0p1618fu3a3UiaWti8sbHDN+5KlqIoTlFiLpsZmEVOYkS9pTOLupFH 7geOFLLv+DDMA8hlqELjs/su3CQM8UqFaEmMEoZ1rfhYVkU/aSqZmYU/6K5l7NdjJUpf LqDkb3AVRqnLSLc2B/TgrwSUVXKy946sP/yW1oQPpmUB41Uhu5pxaSD72WJ5HYnNgFtJ zgJ7m5EFz5PflyyHbt/ZyFWVW+QTGdLX9sM3yGWmYXXUOTq8r5e0MVOvt24QRl9txJ/y YLQSBOA3akfkAYyARonVfLCiClPDn4OzXXm0gGnjXMs7STfzZr4rDFxRuSaTm/fivElI dYEw== X-Gm-Message-State: AOAM533nklGa6Hv1OIc73BAnMnYjP26NYx164CT4k4OrEC5pkeUfxDiB EVOPHgASp6yd5WrqwrcuEfrOd3l6w7yUMfYjJAg= X-Received: by 2002:a05:6e02:188b:b0:2c2:5444:afb9 with SMTP id o11-20020a056e02188b00b002c25444afb9mr14970812ilu.237.1645985542219; Sun, 27 Feb 2022 10:12:22 -0800 (PST) MIME-Version: 1.0 References: <979af7ae9b7e8baf080ef6f8d42d48d7f5d2c5b4.camel@tugraz.at> In-Reply-To: <979af7ae9b7e8baf080ef6f8d42d48d7f5d2c5b4.camel@tugraz.at> From: Miguel Ojeda Date: Sun, 27 Feb 2022 19:12:11 +0100 Message-ID: Subject: Re: [RFC PATCH 03/13] usb: remove the usage of the list iterator after the loop To: Martin Uecker Cc: Linus Torvalds , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, Feb 26, 2022 at 3:43 AM Martin Uecker wrote: > > Roughly the same group of people / companies that > write the compilers also control what goes into the > standard. They then like to point to the standard Indeed, at least to a substantial degree. > For signed overflow, I am not entirely sure what the > right choice is. Wrapping for signed overflow also seems > dangerous. I use UBsan to find such issues in my code, and > this would not really work if signed overflow was defined > to wrap. UBsan and similar tooling may still be used to find whatever behavior one wants, whether defined or not. UBSan already has non-UB checks. Cheers, Miguel