tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-5 head: 7ad779b1f6bf68ab038767ff0e45be400a1e9424 commit: 1312457cf8bd0f2a70be8ed32ffd9f3322fbbbc7 [57/63] rxrpc: Remove call->state_lock config: hexagon-randconfig-r045-20221121 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/1312457cf8bd0f2a70be8ed32ffd9f3322fbbbc7 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-5 git checkout 1312457cf8bd0f2a70be8ed32ffd9f3322fbbbc7 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/rxrpc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ net/rxrpc/input.c:606:3: error: expected expression unsigned long timo = READ_ONCE(call->next_req_timo); ^ net/rxrpc/input.c:609:7: error: use of undeclared identifier 'timo' if (timo) { ^ net/rxrpc/input.c:611:26: error: use of undeclared identifier 'timo' expect_req_by = now + timo; ^ >> net/rxrpc/input.c:607:17: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement] unsigned long now, expect_req_by; ^ 7 warnings and 3 errors generated. vim +607 net/rxrpc/input.c d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 559 d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 560 /* d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 561 * Process a DATA packet, adding the packet to the Rx ring. The caller's d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 562 * packet ref must be passed on or discarded. d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 563 */ d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 564 static void rxrpc_input_data(struct rxrpc_call *call, struct sk_buff *skb) d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 565 { d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 566 struct rxrpc_skb_priv *sp = rxrpc_skb(skb); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 567 rxrpc_serial_t serial = sp->hdr.serial; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 568 rxrpc_seq_t seq0 = sp->hdr.seq; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 569 bfe8254fa0757f net/rxrpc/input.c David Howells 2022-10-17 570 _enter("{%x,%x,%x},{%u,%x}", bfe8254fa0757f net/rxrpc/input.c David Howells 2022-10-17 571 call->ackr_window, call->ackr_wtop, call->rx_highest_seq, 5d7edbc9231ec6 net/rxrpc/input.c David Howells 2022-08-27 572 skb->len, seq0); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 573 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 574 if (__rxrpc_call_is_complete(call)) 20e65ec6fb7573 net/rxrpc/input.c David Howells 2022-10-06 575 return; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 576 d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 577 /* Unshare the packet so that it can be modified for in-place d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 578 * decryption. d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 579 */ d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 580 if (sp->hdr.securityIndex != 0) { 71bddd2547cca6 net/rxrpc/input.c David Howells 2020-01-23 581 struct sk_buff *nskb = skb_unshare(skb, GFP_NOFS); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 582 if (!nskb) { e6caffdc1c04f2 net/rxrpc/input.c David Howells 2022-10-21 583 rxrpc_eaten_skb(skb, rxrpc_skb_eaten_by_unshare_nomem); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 584 return; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 585 } d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 586 d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 587 if (nskb != skb) { e6caffdc1c04f2 net/rxrpc/input.c David Howells 2022-10-21 588 rxrpc_eaten_skb(skb, rxrpc_skb_eaten_by_unshare); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 589 skb = nskb; e6caffdc1c04f2 net/rxrpc/input.c David Howells 2022-10-21 590 rxrpc_new_skb(skb, rxrpc_skb_new_unshared); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 591 sp = rxrpc_skb(skb); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 592 } d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 593 } d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 594 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 595 switch (__rxrpc_call_state(call)) { 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 596 case RXRPC_CALL_CLIENT_SEND_REQUEST: 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 597 case RXRPC_CALL_CLIENT_AWAIT_REPLY: 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 598 /* Received data implicitly ACKs all of the request 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 599 * packets we sent when we're acting as a client. 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 600 */ 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 601 if (!rxrpc_receiving_reply(call)) 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 602 goto out_notify; 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 603 break; 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 604 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 605 case RXRPC_CALL_SERVER_RECV_REQUEST: d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 606 unsigned long timo = READ_ONCE(call->next_req_timo); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 @607 unsigned long now, expect_req_by; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 608 d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 609 if (timo) { d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 610 now = jiffies; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 611 expect_req_by = now + timo; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 612 WRITE_ONCE(call->expect_req_by, expect_req_by); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 613 rxrpc_reduce_call_timer(call, expect_req_by, now, d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 614 rxrpc_timer_set_for_idle); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 615 } 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 616 break; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 617 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 618 default: 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 619 break; 1312457cf8bd0f net/rxrpc/input.c David Howells 2022-10-27 620 } d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 621 d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 622 if (!rxrpc_input_split_jumbo(call, skb)) { 5f19a06494d72e net/rxrpc/input.c David Howells 2022-10-06 623 rxrpc_proto_abort(call, sp->hdr.seq, rxrpc_badmsg_bad_jumbo); 71bddd2547cca6 net/rxrpc/input.c David Howells 2020-01-23 624 goto out_notify; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 625 } d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 626 skb = NULL; d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 627 71bddd2547cca6 net/rxrpc/input.c David Howells 2020-01-23 628 out_notify: d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 629 trace_rxrpc_notify_socket(call->debug_id, serial); d4d02d8bb5c412 net/rxrpc/input.c David Howells 2022-10-07 630 rxrpc_notify_socket(call); 17926a79320afa net/rxrpc/ar-input.c David Howells 2007-04-26 631 } 17926a79320afa net/rxrpc/ar-input.c David Howells 2007-04-26 632 :::::: The code at line 607 was first introduced by commit :::::: d4d02d8bb5c412d977af7ea7c7ea91977a6a64dc rxrpc: Clone received jumbo subpackets and queue separately :::::: TO: David Howells :::::: CC: David Howells -- 0-DAY CI Kernel Test Service https://01.org/lkp